[MITgcm-support] Reading errors

Estanislao Gavilan Pascual-Ahuir dramauh at hotmail.com
Thu Aug 22 04:51:28 EDT 2019


Hi Community,

 I have just started using MITgcm model. Last week I spent some time learning how to open boundary conditions. I was able to sort out everything except for this (error 1). It turns out that the model cannot find the bin file. After doing some research in the mailbox of mitgcm. I found out that is due to the compiler settings. As it was advice, I set -DWORDLENGTH=1. Now, I am having a different error (error 2).

 error 1 forrtl: severe (36): attempt to access non-existent record, unit 16, file /estanis/MITgcm/verification/tutorial_circular_polar_basin/run/obzonalv.bin
 error 2 'forrtl: severe (66): output statement overflows record'

I went again to the emailbox and I found out I need to change this.



  case nas+pgi:
     set LN         = ( '/bin/ln -s' )
     set CPP        = ( '/lib/cpp -traditional -P' )
     set DEFINES    = ( ${DEFINES} '-DALLOW_USE_MPI -DALWAYS_USE_MPI
-DWORDLENGTH=4' )
     set FC         = ( 'ifort' )
     set FFLAGS     = ( '-fp-model strict -132 -r8 -i4 -w95 -W0 -WB -convert
big_endian -assume byterecl' )
     set FOPTIM     = ( '-O0 -noalign')
     set LINK       = ( 'ifort' )
     set INCLUDES   = ( '-I/opt/sgi/mpt/1.12.0.nas/include
-I/opt/pd/netcdf/3.6.0-p1/include' )
     set LIBS       = ( '-L/opt/sgi/mpt/1.12.0.nas/lib -lmpi
-L/opt/pd/netcdf/3.6.0-p1/lib -lnetcdf' )
     breaksw

However, this solution was for a specific configuration for a cluster in Columbia (I think). My build file is a bit different:

#  tested on faulks, 20030818
#
#  Build options for the intel 8.0 fortran compiler
#  the compiler is now called ifort (not ifc) and it appears to
#  need -DWORDLENGTH=1 and not -DWORDLENGTH=4 (which is what ifc 6.0) used to have.
#  ph: use ifort compiler options -convert big_endian -assume byterecl
FC=mpif90
F90C=mpif90
CC=mpicc
DEFINES="-DWORDLENGTH=4 -DALLOW_USE_MPI -DALWAYS_USE_MPI"
#DEFINES="-DALLOW_USE_MPI -DALWAYS_USE_MPI"
LINK=mpif90
CPP="cpp  -traditional -P"
#INCLUDES='-I/usr/include/netcdf'
#INCLUDES="-I. -I$NETCDF/include -I/nuist/p/public/app/mvapich2/2.0b/intel/include"
#LIBS="-L$NETCDF/lib -lnetcdff -lnetcdf -L/nuist/p/public/app/mvapich2/2.0b/intel/lib -lmpich -lpthread"
INCLUDES="-I. -I$NETCDF/include -I/WORK/app/netcdf/4.3.2/01-CF-14/include -I/usr/local/mpi3-dynamic/include"
LIBS="-L$NETCDF/lib -lnetcdff -lnetcdf  -I/WORK/app/netcdf/4.3.2/01-CF-14/lib"
#  Note that the -mp switch is for ieee "maintain precision" and is
#  roughly equivalent to -ieee
if test "x$IEEE" = x ; then
# lz(   FOPTIM='-O3 -align' )
    FOPTIM=
#P3 FOPTIM=$FOPTIM' -tpp6 -xWKM'
#P4 FOPTIM=$FOPTIM' -tpp7 -xWKM'
    FFLAGS="-132 -r8 -i4  -g -convert big_endian -assume byterecl $INCLUDES -I/usr/local/mpi3-dynamic/include"
    FOPTIM="-O1 -align"
else
    FOPTIM="-O0 -noalign"
    FFLAGS="-132 -r8 -i4 -w95 -W0 -WB -xN -pc64 -convert big_endian -assume byterecl $INCLUDES -I/usr/local/mpi3-dynamic/include"
   #FFLAGS='-mp -132 -r8 -i4 -w95 -W0 -WB'
fi
#if test "x$IEEE" = x ; then
#    FFLAGS='-Wimplicit -Wunused -Wuninitialized  -fno-second-underscore'
#    FOPTIM='-O3 -funroll-loops'
#else
#    FFLAGS='-Wimplicit -Wunused -ffloat-store'
#    FOPTIM='-O0 '
#fi

Thanks in advance for all your help

 Kind regards,

Estanis




[https://ipmcdn.avast.com/images/icons/icon-envelope-tick-round-orange-animated-no-repeat-v1.gif]<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>  Virus-free. www.avast.com<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.mitgcm.org/pipermail/mitgcm-support/attachments/20190822/f4f9e3d8/attachment.html>


More information about the MITgcm-support mailing list