underworldcode / underworld3

https://underworldcode.github.io/underworld3/
Other
21 stars 10 forks source link

[BUG] - PetscViewerHDF5GetGroup() requires HDF5 #233

Open guit-hub opened 2 months ago

guit-hub commented 2 months ago

Describe the bug

bknight1 commented 2 months ago

Looks like hdf5 isn't installed? You can try to pip install, but this will be the serial version.

guit-hub commented 2 months ago

Looks like hdf5 isn't installed? You can try to pip install, but this will be the serial version.

Sorry,when I type pip install hdf5,an error just occured: image btw,I have installed h5py,but it doesn't work to fix the bug.

bknight1 commented 2 months ago

Try:

pip install h5py

julesghub commented 2 months ago

@bknight1 is right, petsc wasn't compiled against your hdf5.

@guit-hub How are you installing petsc?

When configuring petsc, if you're compiling it, you need something like --with-hdf5-dir=/your/path/to/hdf5 to refer to a previously install hdf5 installation or --download-hdf5=1 to make petsc download and install a compatible hdf5 automatically.

guit-hub commented 2 months ago

@bknight1 is right, petsc wasn't compiled against your hdf5.

@guit-hub How are you installing petsc?

When configuring petsc, if you're compiling it, you need something like --with-hdf5-dir=/your/path/to/hdf5 to refer to a previously install hdf5 installation or --download-hdf5=1 to make petsc download and install a compatible hdf5 automatically.

Thanks for both of your answers,but I think I've compiled PETSc against hdf5-1.14.4.3, image

maybe this version doesn't work or maybe I should run the installation again

knepley commented 2 months ago

Post your $PETSC_DIR/configure.log which will show exactly what was configured. You cannot get that error message if PETSc was successfully configured with HDF5.