#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,请问有什么办法可以解决?
!DEC$ IF DEFINED ( COUPLING )
if (modele2d==1) then
!DEC$ endif
call is_in_cell(x,y,kvol,in_cell)
!DEC$ IF DEFINED ( COUPLING )
else
call is_in_cell_1d(x,y,kvol,in_cell)
endif
!DEC$ endif