[MITgcm-support] compiler flags to make output human readable

Jonny Williams Jonny.Williams at bristol.ac.uk
Tue Aug 5 07:10:27 EDT 2014


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mitgcm.org/pipermail/mitgcm-support/attachments/20140805/3cb832d2/attachment.htm>


More information about the MITgcm-support mailing list