How to use the hdf5 library #32760
-
Check these boxes if you have followed the posting rules.
Issue or question about MOOSEHello, I’m facing the following problem: I want to embed an external Fortran programme into my current Moose application, and this Fortran programme uses the HDF5 library. I wish to use the external programme to link against the HDF5 link files located in the /moose/petsc/arc-moose/ directory, but I have discovered that, under Moose’s default offline compilation settings, the corresponding HDF5 link files for the Fortran option (h5fc) are not generated. I have checked the build script Note: I installed Moose on the supercomputing platform using the offline method. When I link my Fortran programme with the externally compiled HDF5 library, although the executable application compiles successfully, I am warned that there may be a library conflict. Furthermore, when I run the calculations, numerous exceptions occur when calling the HDF5 data-reading module in the external Fortran programme. (Optional) code in question / simulation log / errorsNo response Encountering Errors? Please include diagnostic outputNo response |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
|
Can your system administrators provide the HDF5 libraries you need? HDF5 is a pretty ubiquitous package. Then you wouldn't need PETSc to build HDF5 for you |
Beta Was this translation helpful? Give feedback.
moose/scripts/configure_petsc.sh
Line 60 in 227076f
Before calling
update_and_rebuild_petsc.sh, call:export HDF5_DIR=/work/home/ssct0095t/tools/hdf5-1.12.2