Hi,
I was used to use the HDF5File function with Fenics 2016 (see example bollow).
from fenics import*
mesh = Mesh("grain.xml")
grains = MeshFunction("size_t", mesh,"grain_physical_region.xml")
hdf = HDF5File(mesh.mpi_comm(), "file.h5","w")
hdf.write(mesh,"/mesh")
hdf.write(grains,"/grains")
Now I use Fenics 2017.1 and it doesn't work anymore. I get this error :
Traceback (most recent call last):
File "HDF.py", line 8, in
hdf = HDF5File(mesh.mpi_comm(), "file.h5","w")
NameError: name 'HDF5File' is not defined
Abandon (core dumped)
I saw here Saving boundary-markers to HDF in FEniCS 2017.1 that it seems to work.
Can anybody help me with this issue?
Thanks