MeteoSwiss-APN / serialbox

Data serialization library and tools for C/C++ and Fortran
BSD 2-Clause "Simplified" License
2 stars 6 forks source link

issue with #define ACC_PREFIX !$acc in include function #49

Open lxavier opened 8 years ago

lxavier commented 8 years ago

Error with PGI because of #define ACC_PREFIX !$acc in the beginning of an included file: ''' PGF90-S-0021-Label field of continuation line is not blank (/project/c01/lapixa/PGI/20160211_sdeldon/cosmo_gpu/pp/statement_functs.incf: 1) 0 inform, 0 warnings, 1 severes, 0 fatal for turbdiff make[1]: *\ [turbulence_diff.o] Error 2 make[1]: Leaving directory `/project/c01/lapixa/PGI/20160211_sdeldon/cosmo_gpu/obj' '''

lxavier commented 8 years ago

removing the line in the pp/ folder solves the problem

clementval commented 8 years ago

@lxavier It means that the PGI compiler does not execute a preprocessing pass ?

lxavier commented 8 years ago

either that or due to the include the spacing is not correct (I think it needs to have no space before the #ifdef). The problem is only for included files, the other files are fine.

havogt commented 7 years ago

@lxavier Is this still an issue? Can you provide an example to reproduce?

lxavier commented 7 years ago

I have not seen that recently, but I assume it could still be an issue, I think we should not add the "#define ACC_PREFIX !$acc" in a Fortran include file (so pp_ser should ignore them), because the ACC_PREFIX is set in the file which is doing the incule already

havogt commented 7 years ago

@lxavier Should I copy the issue over to serialbox2 or we wait until it reappears?

lxavier commented 7 years ago

move it over for now (in case someone triggered it again)