[MITgcm-support] Compilation error - mdsio_writefield.f
Martin Losch
Martin.Losch at awi.de
Fri Apr 11 03:03:14 EDT 2008
Marcelo,
not only do you have a version from the "stone ages" (o:, but also it
seems to have been modified. The file mdsio_writefield.F does not
even exist anymore in the current version (for 15months now). I had a
quick look at an old version of this file (first line looks like this:
C $Header: /u/gcmpack/MITgcm/pkg/mdsio/mdsio_writefield.F,v 1.7
2004/01/26 19:44:46 afe Exp $
)
and there is no "write(0,*)" nor " '.OGCM.' " anywhere (and these
statements are not likely to be found in that kind of general file
anyway). To me it looks like some sort of syntax error that you or
someone who handed down this code to you introduced.
I strongly recommend updating your code to a recent version,
otherwise you are pretty much on your own.
Martin
On 10 Apr 2008, at 14:53, Marcelo Barreiro wrote:
> 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
>
> _______________________________________________
> MITgcm-support mailing list
> MITgcm-support at mitgcm.org
> http://mitgcm.org/mailman/listinfo/mitgcm-support
More information about the MITgcm-support
mailing list