[MITgcm-support] a quick compile question

Yuan Lian lian at ashimaresearch.com
Thu Jul 15 02:59:54 EDT 2010


  Have you tried a different compiler like gfortran?
Also make sure the platform and compiler have
same architecture (32 ror 64bit). I remembered I
had this very similar problem when the intel compiler
was upgraded on the cluster.

Yuan


On 7/14/10 11:30 PM, q li wrote:
> Hi Oliver,
> I am feeling more and more strange. I have checked all the .h and .F 
> files. They are all there.
> The code runs well in another cluster and SGI. I moved it to a linux 
> based cluster. It does not work now.
> Any other mistake I might make?
> Thanks.
> Li
>
> ------------------------------------------------------------------------
> *From:* Oliver Jahn <jahn at MIT.EDU>
> *To:* mitgcm-support at mitgcm.org
> *Sent:* Wed, July 14, 2010 8:38:59 AM
> *Subject:* Re: [MITgcm-support] a quick compile question
>
> 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 <mailto:MITgcm-support at mitgcm.org>
> > http://mitgcm.org/mailman/listinfo/mitgcm-support
>
> _______________________________________________
> MITgcm-support mailing list
> MITgcm-support at mitgcm.org <mailto:MITgcm-support at mitgcm.org>
> http://mitgcm.org/mailman/listinfo/mitgcm-support
>
>
> _______________________________________________
> MITgcm-support mailing list
> MITgcm-support at mitgcm.org
> http://mitgcm.org/mailman/listinfo/mitgcm-support

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mitgcm.org/pipermail/mitgcm-support/attachments/20100714/ae6ab794/attachment.htm>


More information about the MITgcm-support mailing list