You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
gfortran -C -g -O0 -c lfric_abort_mod.F90
lfric_abort_mod.F90:5:6:
5 | #ifdef NO_MPI
| 1
Error: Invalid character in name at (1)
And intel issues a warning:
ifort -C -g -O0 -c lfric_abort_mod.F90
lfric_abort_mod.F90(5): warning #5117: Bad # preprocessor line
#ifdef NO_MPI
-----^
Using the pre-processor explicitly (cpp -P) works.
As a discussion: It might be useful to avoid indentation for preprocessor directives. I don't strongly needed it, I can add a pre-processing step instead, but I think it could be useful for some applications? But I am equally happy to close this ticket since our preprocessor support is documented to be very limited.
The text was updated successfully, but these errors were encountered:
fparser has limited support for preprocessor directives. Example:
But the indentation causes gfortran to abort:
And intel issues a warning:
Using the pre-processor explicitly (
cpp -P
) works.As a discussion: It might be useful to avoid indentation for preprocessor directives. I don't strongly needed it, I can add a pre-processing step instead, but I think it could be useful for some applications? But I am equally happy to close this ticket since our preprocessor support is documented to be very limited.
The text was updated successfully, but these errors were encountered: