Closed GC-enriched closed 2 years ago
Could you provide the whole xdmf
file as one would need to see which grid the Grid the topology is situated in.
Edited. Sorry about that
I would Need the h5 dataset as well.
@GC-enriched I cannot reproduce this error using the docker image dolfinx/dolfinx
:
import dolfinx
from mpi4py import MPI
with dolfinx.io.XDMFFile(MPI.COMM_WORLD, "MC_TetMesh_2_slim.xdmf", "r") as xdmf:
mesh = xdmf.read_mesh(name = "Grid")
print(mesh.topology.index_map(mesh.topology.dim).size_local)
prints 11487 matching the number of cells in your mesh (by inspecting it in Paraview).
This means that something has gone wrong with the hdf5
installation in spack.
The docker image uses: HDF5_SERIES=1.12 HDF5_PATCH=1 which matches the one in your spack.
@chrisrichardson Do you have any ideas?
Solved, was an error on my side, thanks!
Hi there, I'm using the latest Spack release of dolfinx and having trouble reading an Xdmf (version 3) file pointing to an HDF5:
Here's my Xdmf:
The Xdmf mesh is visualizable in Paraview so I assume the error should be when FEniCS tries to read the HDF5 file (which is compressed with gzip). Is H5Dopen2 expecting another syntax for the HDF5 reference? Thanks for the help.
MC_TetMesh_2_slim.h5.gz