Hi,
I am trying to create a library to OpenFOAM (CFD toolbox from www.openfoam.org) to write the solution field to HDF5 archives.
Creating the file and dataspace seems to go well, but the creation of the dataset with H5Dcreate2 fails miserably. I have followed the example/tutorial found on http://www.hdfgroup.org/HDF5/Tutor/pcrtaccd.html
The error message is:
HDF5-DIAG: Error detected in HDF5 (1.8.4-patch1) MPI-process 0:
#000: ../../../src/H5D.c line 171 in H5Dcreate2(): unable to create dataset
major: Dataset
minor: Unable to initialize object
#001: ../../../src/H5Dint.c line 428 in H5D_create_named(): unable to create and link to dataset
major: Dataset
minor: Unable to initialize object
#002: ../../../src/H5L.c line 1639 in H5L_link_object(): unable to create new link to object
major: Links
minor: Unable to initialize object
#003: ../../../src/H5L.c line 1862 in H5L_create_real(): can't insert link
major: Symbol table
minor: Unable to insert object
#004: ../../../src/H5Gtraverse.c line 877 in H5G_traverse(): internal path traversal failed
major: Symbol table
minor: Object not found
#005: ../../../src/H5Gtraverse.c line 776 in H5G_traverse_real(): component not found
major: Symbol table
minor: Object not found
and similar for other ranks. The source code is attached. When
meshInit();
meshWrite();
meshClose();
is called, the error occures (in H5DCreate2).
The following is in the h5Write.H header file:
#define H5T_SCALAR H5T_NATIVE_DOUBLE
(to include the possibility to compile with support for single precision).
The system is Ubuntu 12.04 with system OpenMPI and HDF5-OpenMPI libraries installed. Compiler is GCC. I have tried to compile the same code on another system with SLES 11sp1, Intel compilers and SGI-MPI. Same error message occurs on that system.
Do you have any hints to help me? Thanks in advance.
Best regards,
Håkon Strandenes
Norway
h5WriteMesh.C (4.24 KB)