[MITgcm-support] compiler flags to make output human readable
Jean-Michel Campin
jmc at ocean.mit.edu
Tue Aug 5 12:21:22 EDT 2014
Hi Jonny,
I don't know if this will help, but you could check (where you compile)
the end of "genmake.log" if you have the flush system command
available (HAVE_FLUSH='t'). If you have it, then adding
debugMode=.TRUE.,
in eedata will force to flush STDOUT and STDERR unit after each write.
This way, you might get an idea of where this error comes from by
checking the end of all STDOUT.*
Cheers,
Jean-Michel
On Tue, Aug 05, 2014 at 12:10:27PM +0100, Jonny Williams wrote:
> Hi there
>
> With regard to some emails on another thread ("Forcing files in data.dic
> (biogeochemistry)") I am trying to get more output on a failure where I am
> trying to restart a model with the OBCS, EXF, DIC, GCHEM, and PTRACERS
> packages turned on.
>
> Currently I am getting output of the form...
>
> *forrtl: severe (64): input conversion error, unit -5, file Internal
> Formatted Read*
> *Image PC Routine Line Source
> *
> *mitgcmuv 0000000000BAB3FE Unknown Unknown
> Unknown*
> *mitgcmuv 0000000000BA973A Unknown Unknown
> Unknown*
> *mitgcmuv 000000000051D78C Unknown Unknown
> Unknown*
> *mitgcmuv 00000000005CE598 Unknown Unknown
> Unknown*
> *mitgcmuv 00000000007410B0 Unknown Unknown
> Unknown*
> *mitgcmuv 000000000070FE8E Unknown Unknown
> Unknown*
> *mitgcmuv 0000000000735AD2 Unknown Unknown
> Unknown*
> *mitgcmuv 000000000075BCEF Unknown Unknown
> Unknown*
> *mitgcmuv 000000000075BF19 Unknown Unknown
> Unknown*
> *mitgcmuv 00000000006A2B14 Unknown Unknown
> Unknown*
> *mitgcmuv 0000000000400F26 Unknown Unknown
> Unknown*
> *mitgcmuv 0000000000C5DBA4 Unknown Unknown
> Unknown*
> *mitgcmuv 0000000000400D8D Unknown Unknown
> Unknown*
>
> *... *which clearly isn't of much use. I am trying to implement something
> like the FORTRAN "-g" flag to get human readable output. My build script
> (compilation script) is below and I have highlighted where I have added the
> "-g" options, which do not give me any more output at the moment.
>
> Does anyone have any ideas about how to get more useful output?
>
> Many thanks!
>
>
> *#!/bin/bash*
>
> *FC=ftn*
> *F90C=ftn*
> *CC=cc*
> *CPP='cpp -P -traditional'*
>
> *MPI='true'*
> *DEFINES='-DALLOW_USE_MPI -DALWAYS_USE_MPI -DWORDLENGTH=4'*
>
> *FFLAGS=' -g -m64 -fPIC -W0 -WB -convert big_endian -assume byterecl'*
> *FOPTIM=' -g -O3 -align -ip -mp1 -prec-div'*
>
> *INCLUDES='-I/usr/local/include -I${MPICH_DIR}/include
> -I${NETCDF_DIR}/include'*
>
> *LIBS=' '*
>
>
> --
> Dr Jonny Williams
> School of Geographical Sciences
> University of Bristol
> University Road
> BS8 1SS
>
> +44 (0)117 3318352
> jonny.williams at bristol.ac.uk
> bit.ly/jonnywilliams
> _______________________________________________
> MITgcm-support mailing list
> MITgcm-support at mitgcm.org
> http://mitgcm.org/mailman/listinfo/mitgcm-support
More information about the MITgcm-support
mailing list