Hello,
I'm attempting to load a hdf5/xdmf file using the following dolfin commands
from dolfin import *
mesh = Mesh('example.xdmf')
When I do this I get the following error message
HDF5-DIAG: Error detected in HDF5 (1.8.11) MPI-process 0:
#000: ../../../src/H5L.c line 824 in H5Lexists(): unable to get link info
major: Symbol table
minor: Object not found
#001: ../../../src/H5L.c line 2765 in H5L_exists(): path doesn't exist
major: Symbol table
minor: Object already exists
#002: ../../../src/H5Gtraverse.c line 861 in H5G_traverse(): internal path traversal failed
major: Symbol table
minor: Object not found
#003: ../../../src/H5Gtraverse.c line 755 in H5G_traverse_real(): component not found
major: Symbol table
minor: Object not found
HDF5-DIAG: Error detected in HDF5 (1.8.11) MPI-process 0:
#000: ../../../src/H5L.c line 824 in H5Lexists(): unable to get link info
major: Symbol table
minor: Object not found
#001: ../../../src/H5L.c line 2765 in H5L_exists(): path doesn't exist
major: Symbol table
minor: Object already exists
#002: ../../../src/H5Gtraverse.c line 861 in H5G_traverse(): internal path traversal failed
major: Symbol table
minor: Object not found
#003: ../../../src/H5Gtraverse.c line 755 in H5G_traverse_real(): component not found
major: Symbol table
minor: Object not found
HDF5-DIAG: Error detected in HDF5 (1.8.11) MPI-process 0:
#000: ../../../src/H5D.c line 334 in H5Dopen2(): not found
major: Dataset
minor: Object not found
#001: ../../../src/H5Gloc.c line 430 in H5G_loc_find(): can't find object
major: Symbol table
minor: Object not found
#002: ../../../src/H5Gtraverse.c line 861 in H5G_traverse(): internal path traversal failed
major: Symbol table
minor: Object not found
#003: ../../../src/H5Gtraverse.c line 755 in H5G_traverse_real(): component not found
major: Symbol table
minor: Object not found
HDF5-DIAG: Error detected in HDF5 (1.8.11) MPI-process 0:
#000: ../../../src/H5D.c line 437 in H5Dget_space(): not a dataset
major: Invalid arguments to routine
minor: Inappropriate type
HDF5-DIAG: Error detected in HDF5 (1.8.11) MPI-process 0:
#000: ../../../src/H5S.c line 794 in H5Sget_simple_extent_ndims(): not a dataspace
major: Invalid arguments to routine
minor: Inappropriate type
Traceback (most recent call last):
File "test2.py", line 3, in
mesh = Mesh('example.xdmf')
File "/home/les/install/fenics/1.4.0/lib/python2.7/site-packages/dolfin/mesh/meshes.py", line 66, in init
cpp.Mesh.cppinit(self, *args, **kwargs)
File "/home/les/install/fenics/1.4.0/lib/python2.7/site-packages/dolfin/cpp/mesh.py", line 1592, in __init__
_mesh.Mesh_swiginit(self,_mesh.new_Mesh(*args))
Exception: std::bad_alloc
When I run the command h5ls -r example.h5
I get the following output
/ Group
/mesh Group
/mesh/coordinates Dataset {284, 3}
/mesh/topology Dataset {1147, 4}
/mesh/values Dataset {1147, 1}
Also when I run h5dump
the output looks OK to me. It also looks fine when I open the file in paraview. I've generated both hdf5 and xdmf files using a python script I wrote based on the xml to hdf5 conversion script by Garth - my script converts from exodusII. The hdf5 file and xdmf files I'm using are available at example.hd5 and example.xdmf. Can anyone give me some indication as to what may be wrong?
Kind regards
Les