[MITgcm-support] a quick compile question

Oliver Jahn jahn at MIT.EDU
Wed Jul 14 08:38:59 EDT 2010


Hi Li,

it looks like the preprocessor has not expanded the macro _EXCH_XYZ_R8, 
so the compiler thinks it's an array and the statement makes no sense. 
Can you check that, in your file CPP_OPTIONS.h, you have a line

#include "CPP_EEOPTIONS.h"

(toward the end) and in CPP_EEOPTIONS.h a line

#include "CPP_EEMACROS.h"

Also, at the beginning of initialise_varia.F, there should be

#include "CPP_OPTIONS.h"

Oliver


On 2010-07-14 04:29, q li wrote:
> Hi all,
> I have a quick compile question. Does any one know why I got following
> error after I "make"
> mpif77 -132 -r8 -i4 -w95 -W0 -WB -O3 -fp -align -c initialise_varia.f
> fortcom: Error: initialise_varia.f, line 2202: Syntax error, found
> END-OF-STATEMENT when expecting one of: => = . ( %
> _EXCH_XYZ_R8(wVel,myThid)
> -------------------------------^
> compilation aborted for initialise_varia.f (code 1)
> make: *** [initialise_varia.o] Error 1
> Here is the line 2202:
> 2201 C-- Fill in overlap regions for wVel :
> 2202 _EXCH_XYZ_R8(wVel,myThid)
> 2203 C-- Finally summarise the model state
> 2204 IF (debugMode) CALL DEBUG_CALL('STATE_SUMMARY',myThid)
> 2205 CALL STATE_SUMMARY( myThid )
> I couldn't see any syntax error based on my knowledge.
> Is it because of the transformation between unix and windows? I
> uncompressed the tar file to obtain the source code of MITgcm.
> I am using ifort and mpich.
> Li
>
>
>
> _______________________________________________
> MITgcm-support mailing list
> MITgcm-support at mitgcm.org
> http://mitgcm.org/mailman/listinfo/mitgcm-support



More information about the MITgcm-support mailing list