[MITgcm-support] Compilation error - mdsio_writefield.f

Marcelo Barreiro barreiro at fisica.edu.uy
Thu Apr 10 08:53:04 EDT 2008


Hello all,

I am having trouble to compile the model with MPI in an IBM e1350 Cluster with
Opteron 2218 Dual Core following the steps from chapter 3.4.3. 

Apparently the version of the model I have is not the last one as I have 
genmake and NOT genmake2. In any case I modified genmake so that it builds the
model with the options:

set CPP        = ( '/lib/cpp -traditional -P' )
    set FFLAGS     = ( '-c -i4 -r8 $(FOPTIM) $(INCLUDES)' )
    set FOPTIM     = ( '-align all -O2 -ftz' )
    set LIBS       = ( '-L/home/mb/intel/fce/9.0/lib
-L/home/mb/netcdf-3.6.2-fPIC/lib -lnetcdf -L/home/mb/MPICH_INTEL/lib -lpmpich
-lfmpich -lmpich -lmpichfsup' )
    set FC         = ( 'ifort' )
    set LINK       = ( 'ifort' )
    set DEFINES    = ( '-DWORDLENGTH=4 -DALLOW_USE_MPI -DALWAYS_USE_MPI' )
    set INCLUDES   = ( '-I/home/mb/intel/fce/9.0/include
-I/home/mb/netcdf-3.6.2-fPIC/include -I/home/mb/MPICH_INTEL/include' )

I then did:

../../../tools/genmake -mpi -platform=chpc -makefile
make depend
make

and "make" stops with the error message:

ifort -c -i4 -r8 -align all -O2 -ftz -I/home/mb/intel/fce/9.0/include
-I/home/mb/netcdf-3.6.2-fPIC/include -I/home/mb/MPICH_INTEL/include
-I../../../pkg/debug -I../../../pkg/flt -I../../../pkg/generic_advdiff
-I../../../pkg/gmredi -I../../../pkg/kpp -I../../../pkg/mdsio
-I../../../pkg/mom_fluxform -I../../../pkg/mom_vecinv -I../../../pkg/monitor
-I../../../pkg/obcs -I../../../pkg/rw -I../../../pkg/shap_filt
-I../../../pkg/timeave -I../../../pkg/zonal_filt -I../../../eesupp/inc
-I../../../model/inc -align all -O2 -ftz -c mdsio_writefield.f
fortcom: Error: <stdin>, line 130: Invalid character_kind_parameter. No underscore
     &          '.OGCM.',fName(1:IL),'.data'
------------------------^
fortcom: Error: <stdin>, line 130: Syntax error, found CHARACTER_CONSTANT
'.OGCM.' when expecting one of: .EQV. .NEQV. .XOR. .OR. .AND. .LT. < .LE. <=
.EQ. == .NE. /= .GT. > ...
     &          '.OGCM.',fName(1:IL),'.data'
----------------^
fortcom: Error: <stdin>, line 132: Syntax error, found END-OF-STATEMENT when
expecting one of: ( <IDENTIFIER> <CHAR_CON_KIND_PARAM> <CHAR_NAM_KIND_PARAM>
<CHARACTER_CONSTANT> <INTEGER_CONSTANT> ...
         write (0,*) "mdsio_writefield: length_of_rec",length_of_rec,Nx,Ny
--------------------------------------------------------------------------^
fortcom: Error: <stdin>, line 186: Invalid character_kind_parameter. No underscore
     &          '.OGCM.',fName(1:IL),'.meta'
------------------------^
fortcom: Error: <stdin>, line 186: Syntax error, found CHARACTER_CONSTANT
'.OGCM.' when expecting one of: .EQV. .NEQV. .XOR. .OR. .AND. .LT. < .LE. <=
.EQ. == .NE. /= .GT. > ...
     &          '.OGCM.',fName(1:IL),'.meta'
----------------^
compilation aborted for mdsio_writefield.f (code 1)
make: *** [mdsio_writefield.o] Error 1


Is this an error due to the building options I chose? Is it a compiler issue?
Any help will be greatly appreciated!

Marcelo




More information about the MITgcm-support mailing list