Concerning pre-processing, we had the same issue with the NEC compiler (used as pre-processor). A work-around, found by Jens-Olaf Beismann from NEC Germany, is to use a GNU based compiler as pre-processor:
- " gfortran -E " gives “subroutine lbc_nfd_sp” (The desired result.)
- “gfortran -E -C” gives “subroutine lbc_nfd_/**/sp” (Gaston’s issue)
- “nfort -fpp -E” gives “subroutine lbc_nfd_ sp” (with a space between “_” and “sp”)
Jens-Olaf thinks that we are relying on the assumption that any Fortran compiler uses a preprocessor which behaves GNU-like, which isn’t true (at least for nfort, which behaves C-like and the Intel 2016 version described above)