编译Fortran程序,其中的一段
[Fortran] 纯文本查看 复制代码 #ifdef COUPLING
if (modele2d==1) then
#endif
call is_in_cell(x,y,kvol,in_cell)
#ifdef COUPLING
else
call is_in_cell_1d(x,y,kvol,in_cell)
endif
#endif
编译不通过:1>src\prepare_obs.f90(131): warning #5117: Bad # preprocessor line
1>src\prepare_obs.f90(133): warning #5117: Bad # preprocessor line
1>src\prepare_obs.f90(135): warning #5117: Bad # preprocessor line
1>src\prepare_obs.f90(139): warning #5117: Bad # preprocessor line
所选平台是VS2012+IVF2013,请问有什么办法可以解决?
|