[MITgcm-support] MITgcm-support Digest, Vol 119, Issue 13

Jean-Michel Campin jmc at ocean.mit.edu
Thu May 23 15:04:56 EDT 2013


Hi Neil,

Since you are not trying to use NetCDF (mnc not compiled),
the problem you are having has probably little to do with MITgcm.
I would suggest:
a) to check the setting of dynamic library path (some thing like LD_LIBRARY_PATH)
b) to check that the intel compiler is correctly installed.
c) try to compile a simple fortran test program and try to run it
d) repeat (c) using the same compiler option/flags that are in your
   option file.

Cheers,
Jean-Michel

On Thu, May 23, 2013 at 02:17:07PM -0400, Neil Patel wrote:
> Thanks for the advice, but my code/packages.conf only had:
> 
> 
> gfd
> obcs
> ptracers
> rbcs
> layers
> 
> Any other ideas?
> 
> Thanks!
> 
> > 
> > Neil,
> > 
> > in code/package.conf comment out the line "mnc". That will disable the package. 
> > 
> > There is a test during the genmake2 process that checks on the netcdf libraries (and disables the package, if they are not found), but this test never runs an executable, so that this shared-library issue is not caught. 
> > 
> > Martin
> > 
> > On May 23, 2013, at 2:36 PM, Neil Patel <nigellius at gmail.com> wrote:
> > 
> >> Thanks everyone for your help. I ended up using an ifort compiler, which seemed not to need the -D_d=D option so I left it out. However, once I ran mitgcm I got this error message:
> >> 
> >> exp2/build> ./mitgcmuv > output.txt
> >> ./mitgcmuv: error while loading shared libraries: libnetcdff.so.5: cannot open shared object file: No such file or directory
> >> 
> >> I don't where (or if) NETcdf libraries are installed, nor am I interested in using them. I didn't think my opt file had any lines for NETcdf, so I'm puzzled why it's accessing netcdf. To be sure, I added the -disable=mnc keyword to make sure. Here's my optfile:
> >> 
> >> FC=/opt/intel/bin/ifort
> >> F90C=/opt/intel/bin/ifort
> >> qCC=cc
> >> LINK='/opt/intel/bin/ifort'
> >> 
> >> 
> >> DEFINES='-DWORDLENGTH=4'
> >> CPP='cpp -traditional -P'
> >> F90FIXEDFORMAT='-fixed -Tf'
> >> EXTENDED_SRC_FLAG='-132'
> >> 
> >> NOOPTFLAGS="-O0 -g -m64"
> >> NOOPTFILES=''
> >> MCMODEL='-fPIC'
> >> 
> >> 
> >> FFLAGS="$FFLAGS -W0 -WB -convert big_endian -assume byterecl $MCMODEL"
> >> 
> >> 
> >> if test "x$IEEE" = x ; then     #- with optimisation:
> >>  FOPTIM='-O3 -align'
> >>   FOPTIM='-O3 -ipo -align'
> >> else
> >> if test "x$DEVEL" = x ; then  #- no optimisation + IEEE :
> >>  FOPTIM='-O0 -noalign -fp-model precise'
> >> else    
> >>                     #- development/check options:
> >>  FOPTIM='-O0 -noalign -fp-model precise'
> >>  FOPTIM="$FOPTIM -g -check all -fpe0 -traceback -ftrapuv -fp-model except -warn all"
> >> fi
> >> fi
> >> 
> >> F90FLAGS=$FFLAGS
> >> F90OPTIM=$FOPTIM
> >> CFLAGS="-O0 $MCMODEL"
> >> 
> >> INCLUDEDIRS=''
> >> INCLUDES=''
> >> LIBS=''
> >> 
> >> 
> >> if [ -n "$MPI_INC_DIR" -a "x$MPI" = xtrue ] ; then
> >>  LIBS="$LIBS -lmpi"
> >>  INCLUDES="$INCLUDES -I$MPI_INC_DIR"
> >>  INCLUDEDIRS="$INCLUDEDIRS $MPI_INC_DIR"
> >>  MPIINCLUDEDIR="$MPI_INC_DIR"
> >>  MPI_HEADER_FILES='mpif.h mpiof.h'
> >>  MPI_HEADER_FILES_INC='./mpi_headers/mpif.h ./mpi_headers/mpiof.h'
> >> fi
> >> 
> >> else
> >> if test "x$DEVEL" = x ; then  #- no optimisation + IEEE :
> >>  FOPTIM='-O0 -noalign -fp-model precise'
> >> else                          #- development/check options:
> >>  FOPTIM='-O0 -noalign -fp-model precise'
> >>  FOPTIM="$FOPTIM -g -check all -fpe0 -traceback -ftrapuv -fp-model except -warn all"
> >> fi
> >> fi
> >> 
> >> 
> >> _______________________________________________
> >> MITgcm-support mailing list
> >> MITgcm-support at mitgcm.org
> >> http://mitgcm.org/mailman/listinfo/mitgcm-support
> > 
> > 
> > 
> > 
> > ------------------------------
> > 
> > _______________________________________________
> > MITgcm-support mailing list
> > MITgcm-support at mitgcm.org
> > http://mitgcm.org/mailman/listinfo/mitgcm-support
> > 
> > 
> > End of MITgcm-support Digest, Vol 119, Issue 13
> > ***********************************************
> 
> 
> _______________________________________________
> MITgcm-support mailing list
> MITgcm-support at mitgcm.org
> http://mitgcm.org/mailman/listinfo/mitgcm-support



More information about the MITgcm-support mailing list