[MITgcm-support] Reading errors
Martin Losch
Martin.Losch at awi.de
Thu Aug 22 05:57:46 EDT 2019
Hi Estanis,
this looks like a convoluted problem. We would need more information about the problem:
what is the platform, the compiler?
details of the configuration (content of code-directory and namelist files)
are you using latest code (some of the flags in the build-option look very outdated …)?
Your error message (attempt to access non-existent record) usually means that you are reading beyond the end of the file (i.e. not enough data in the file)
Not finding an input file usually does not have anything to do with the compiler setting, especially not the WORDLENGTH.
Martin
> On 22. Aug 2019, at 10:51, Estanislao Gavilan Pascual-Ahuir <dramauh at hotmail.com> wrote:
>
> 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
>
>
>
>
> Virus-free. www.avast.com
> _______________________________________________
> MITgcm-support mailing list
> MITgcm-support at mitgcm.org
> http://mailman.mitgcm.org/mailman/listinfo/mitgcm-support
More information about the MITgcm-support
mailing list