ONE_STEP_PP fails with HDF5
Issue #115
new
HDF5 does not recognize a .fpp file as a Fortran source, so ignores it silently. When ONE_STEP_PP=on and USE_HDF5=on, compilation fails.
One possible solution is to change the extension to .F90. But, it causes problem on systems where case-insensitive file system is used.
Comments (3)
-
-
- changed milestone to 8.2
-
assigned issue to
-
Cray compilers also have an allowed list of extensions, and therefore do not support ONE_STEP_PP.
My preferred solution is to rename all
.fpp
files to.F90
. - Log in to comment
Urgh, yes I see it has an explicit check for certain file extensions:
This is pretty gross because different compilers accept different file extensions.
Unfortunately Fortran compiler vendors seem to have conspired to make this more difficult than it needs to be. As far as I can tell, there is no file extension that will enable preprocessing across all compilers and all file systems. Luckily, there are flags to enable preprocessing for all compilers.
One way to proceed might be to rename all the
.fpp
files to.F90
and then add the preprocessing flags in the makefiles for case-insensitive file systems. I don’t think we support building on Windows, so this is likely only Mac OS