[MITgcm-support] a quick compile question

Jens-Olaf Beismann jbeismann at hpce.nec.com
Thu Jul 15 03:10:57 EDT 2010


Li,

> 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 )

as Oliver already mentioned this has nothing to do with the compiler or MPI library you're using. For some reason the preprocessor (cpp) did not replace _EXCH_XYZ_R8 with the appropriate subroutine call.

Please make sure that the preprocessing step is successful. If I remember correctly, *.f files are generated from the corresponding *.F in a separate step in the MITgcm make process. From the stdout/stderr you should be able to check the cpp command for any missing options/defines. You can re-run just the cpp command interactively to find out what is needed for the correct expansion of this macro.

Cheers,

Jens-Olaf
---
Dr. Jens-Olaf Beismann         Senior Benchmarking Analyst
High Performance Computing     NEC Deutschland GmbH
Tel: +49 431 2372063 (office)       +49 160 1835289 (mobile)
Fax: +49 431 2372170        www.nec.com/de/prod/servers/hpc/
---
NEC Deutschland GmbH, Hansaallee 101, D-40549 Düsseldorf
Geschäftsführer: Richard Hanscott
Handelsregister Düsseldorf, HRB 57941, VAT ID DE129424743


More information about the MITgcm-support mailing list