Hi All,

Does anyone encounter the problem when HDF5 related fortran code cannot be compiled in PETSc-3.16 because the 'use hdf5' cannot find the required file?

Compared to HDF5-1.12.0 and earlier versions, some object files (e.g., hdf5.mod, hdf5.o) are missing in HDF5-1.12.1 in PETSc-3.16. I checked the makefile in hdf5 folder in externalpackage, there are some difference which I guess might cause the problem.

In PETSc-3.15, HDF5-1.12.0

# Make sure that these variables are exported to the Makefiles
F9XMODEXT = mod
F9XMODFLAG = -I
F9XSUFFIXFLAG =

In PETSc-3.16, HDF5-1.12.1

# Make sure that these variables are exported to the Makefiles
F9XMODEXT =
F9XMODFLAG =
F9XSUFFIXFLAG

The configuration I use in PETSc-3.16 is the same as PETSc-3.15.

./configure --with-cc=gcc --with-cxx=g++ --with-fc=gfortran --download-mumps --download-scalapack --download-parmetis --download-metis --download-ptscotch --download-fblaslapack --download-mpich --download-hypre --download-superlu_dist --download-hdf5=yes --download-cmake --with-debugging=0 COPTFLAGS="-O2 -march=native -mtune=native" CXXOPTFLAGS="-O2 -march=native -mtune=native" FOPTFLAGS="-O2 -march=native -mtune=native"

Is this a bug or something wrong in my PETSc configuration?

Thanks,

Danyang

Reply via email to