File physics/module_sf_noahmplsm.f90 (and possibly others) contain preprocessor (CPP) directives, but the extension is lowercase .f90. This requires the build system to explicitly set -fpp to force preprocessing of all Fortran files.
The correct way to do this is to use .F90 so that the compiler knows from the extension whether preprocessing is required or not.
Steps to Reproduce
Check out the ufs-weather-model code and remove -fpp from cmake/Intel.cmake
Description
File
physics/module_sf_noahmplsm.f90
(and possibly others) contain preprocessor (CPP) directives, but the extension is lowercase.f90
. This requires the build system to explicitly set-fpp
to force preprocessing of all Fortran files.The correct way to do this is to use
.F90
so that the compiler knows from the extension whether preprocessing is required or not.Steps to Reproduce
-fpp
fromcmake/Intel.cmake