<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="color: rgb(50, 49, 48); font-family: "Segoe UI", "Segoe UI Web (West European)", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif; font-size: 14.6667px; background-color: rgb(255, 255, 255); display: inline !important">Hi
 Community,</span><br style="color: rgb(50, 49, 48); font-family: "Segoe UI", "Segoe UI Web (West European)", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif; font-size: 14.6667px; background-color: rgb(255, 255, 255)">
<br style="color: rgb(50, 49, 48); font-family: "Segoe UI", "Segoe UI Web (West European)", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif; font-size: 14.6667px; background-color: rgb(255, 255, 255)">
<span style="color: rgb(50, 49, 48); font-family: "Segoe UI", "Segoe UI Web (West European)", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif; font-size: 14.6667px; background-color: rgb(255, 255, 255); display: inline !important"> 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
<span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 14px; display: inline !important">
set<span> </span></span><b style="color: rgb(0, 0, 0); font-family: Arial; font-size: 14px">-DWORDLENGTH=1.
</b><span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 14px">Now, I am having a different error (error 2). </span></span></div>
<div style=""><font color="#000000" face="Arial"><span style="font-size: 14px;"><br>
</span></font></div>
<div style=""><font color="#000000" face="Arial"><span style="font-size: 14px;">
<div style="margin: 0px; font-size: 12pt; font-family: Calibri, Helvetica, sans-serif">
<span style="margin: 0px; font-size: 14.6667px; font-family: "Segoe UI", "Segoe UI Web (West European)", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif; color: rgb(50, 49, 48); background-color: rgb(255, 255, 255); display: inline !important"><b><i> error
 1 forrtl: severe (36): attempt to access non-existent record, unit 16, file /estanis/MITgcm/verification/tutorial_circular_polar_basin/run/obzonalv.bin</i></b></span><br>
</div>
<div style="margin: 0px; font-size: 12pt; font-family: Calibri, Helvetica, sans-serif">
<span style="margin: 0px; font-size: 14.6667px; font-family: "Segoe UI", "Segoe UI Web (West European)", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif; color: rgb(50, 49, 48); background-color: rgb(255, 255, 255); display: inline !important"><b style="color: rgb(0, 0, 0); font-family: Arial; font-size: 14px"><i> error
 2 'forrtl: severe (66): output statement overflows record'</i></b></span></div>
<div style="margin: 0px; font-size: 12pt; font-family: Calibri, Helvetica, sans-serif">
<span style="margin: 0px; font-size: 14.6667px; font-family: "Segoe UI", "Segoe UI Web (West European)", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif; color: rgb(50, 49, 48); background-color: rgb(255, 255, 255); display: inline !important"><b style="color: rgb(0, 0, 0); font-family: Arial; font-size: 14px"><i><br>
</i></b></span></div>
<div style="margin: 0px; font-size: 12pt; font-family: Calibri, Helvetica, sans-serif">
<span style="margin: 0px; font-size: 14.6667px; font-family: "Segoe UI", "Segoe UI Web (West European)", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif; color: rgb(50, 49, 48); background-color: rgb(255, 255, 255); display: inline !important"><b style="color: rgb(0, 0, 0); font-family: Arial; font-size: 14px"><i><span style="font-family: Arial; font-style: normal; font-weight: 400; background-color: rgb(255, 255, 255); display: inline !important">I
 went again to the emailbox and I found out I need to change this.</span><br>
</i></b></span></div>
<br style="background-color: rgb(255, 255, 255);">
</span></font><span style="color: rgb(50, 49, 48); font-family: "Segoe UI", "Segoe UI Web (West European)", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif; font-size: 14.6667px; background-color: rgb(255, 255, 255); display: inline !important;"><span> 
<pre style="overflow-wrap: break-word; width: 1602.64px; color: rgb(0, 0, 0); font-size: 14px">  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</pre>
</span></span>However, this solution was for a specific configuration for a cluster in Columbia (I think). My build file is a bit different:</div>
<div style=""><br>
</div>
<div style=""><span>#  tested on faulks, 20030818<br>
</span>
<div>#<br>
</div>
<div>#  Build options for the intel 8.0 fortran compiler<br>
</div>
<div>#  the compiler is now called ifort (not ifc) and it appears to<br>
</div>
<div>#  need -DWORDLENGTH=1 and not -DWORDLENGTH=4 (which is what ifc 6.0) used to have.<br>
</div>
<div>#  ph: use ifort compiler options -convert big_endian -assume byterecl<br>
</div>
<div>FC=mpif90<br>
</div>
<div>F90C=mpif90<br>
</div>
<div>CC=mpicc<br>
</div>
<div>DEFINES="-DWORDLENGTH=4 -DALLOW_USE_MPI -DALWAYS_USE_MPI"<br>
</div>
<div>#DEFINES="-DALLOW_USE_MPI -DALWAYS_USE_MPI"<br>
</div>
<div>LINK=mpif90<br>
</div>
<div>CPP="cpp  -traditional -P"<br>
</div>
<div>#INCLUDES='-I/usr/include/netcdf'<br>
</div>
<div>#INCLUDES="-I. -I$NETCDF/include -I/nuist/p/public/app/mvapich2/2.0b/intel/include"<br>
</div>
<div>#LIBS="-L$NETCDF/lib -lnetcdff -lnetcdf -L/nuist/p/public/app/mvapich2/2.0b/intel/lib -lmpich -lpthread"<br>
</div>
<div>INCLUDES="-I. -I$NETCDF/include -I/WORK/app/netcdf/4.3.2/01-CF-14/include -I/usr/local/mpi3-dynamic/include"<br>
</div>
<div>LIBS="-L$NETCDF/lib -lnetcdff -lnetcdf  -I/WORK/app/netcdf/4.3.2/01-CF-14/lib"<br>
</div>
<div>#  Note that the -mp switch is for ieee "maintain precision" and is<br>
</div>
<div>#  roughly equivalent to -ieee<br>
</div>
<div>if test "x$IEEE" = x ; then<br>
</div>
<div># lz(   FOPTIM='-O3 -align' )<br>
</div>
<div>    FOPTIM=<br>
</div>
<div>#P3 FOPTIM=$FOPTIM' -tpp6 -xWKM'<br>
</div>
<div>#P4 FOPTIM=$FOPTIM' -tpp7 -xWKM'<br>
</div>
<div>    FFLAGS="-132 -r8 -i4  -g -convert big_endian -assume byterecl $INCLUDES -I/usr/local/mpi3-dynamic/include"<br>
</div>
<div>    FOPTIM="-O1 -align"<br>
</div>
<div>else<br>
</div>
<div>    FOPTIM="-O0 -noalign"<br>
</div>
<div>    FFLAGS="-132 -r8 -i4 -w95 -W0 -WB -xN -pc64 -convert big_endian -assume byterecl $INCLUDES -I/usr/local/mpi3-dynamic/include"<br>
</div>
<div>   #FFLAGS='-mp -132 -r8 -i4 -w95 -W0 -WB'<br>
</div>
<div>fi<br>
</div>
<div>#if test "x$IEEE" = x ; then<br>
</div>
<div>#    FFLAGS='-Wimplicit -Wunused -Wuninitialized  -fno-second-underscore'<br>
</div>
<div>#    FOPTIM='-O3 -funroll-loops'<br>
</div>
<div>#else<br>
</div>
<div>#    FFLAGS='-Wimplicit -Wunused -ffloat-store'<br>
</div>
<div>#    FOPTIM='-O0 '<br>
</div>
<span>#fi</span><br>
</div>
<div style=""><br>
</div>
<div style="">Thanks in advance for all your help</div>
<div style=""><br style="color: rgb(50, 49, 48); font-family: "Segoe UI", "Segoe UI Web (West European)", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif; background-color: rgb(255, 255, 255);">
<span style="color: rgb(50, 49, 48); font-family: "Segoe UI", "Segoe UI Web (West European)", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif; font-size: 14.6667px; background-color: rgb(255, 255, 255); display: inline !important;"> Kind
 regards,</span><br style="color: rgb(50, 49, 48); font-family: "Segoe UI", "Segoe UI Web (West European)", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif; font-size: 14.6667px; background-color: rgb(255, 255, 255)">
<br style="color: rgb(50, 49, 48); font-family: "Segoe UI", "Segoe UI Web (West European)", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif; font-size: 14.6667px; background-color: rgb(255, 255, 255)">
<span style="color: rgb(50, 49, 48); font-family: "Segoe UI", "Segoe UI Web (West European)", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif; font-size: 14.6667px; background-color: rgb(255, 255, 255); display: inline !important;">Estanis</span><br style="color: rgb(50, 49, 48); font-family: "Segoe UI", "Segoe UI Web (West European)", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif; font-size: 14.6667px; background-color: rgb(255, 255, 255)">
<span style="color: rgb(50, 49, 48); font-family: "Segoe UI", "Segoe UI Web (West European)", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif; font-size: 14.6667px; background-color: rgb(255, 255, 255); display: inline !important;"><span> </span></span><br style="color: rgb(50, 49, 48); font-family: "Segoe UI", "Segoe UI Web (West European)", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif; font-size: 14.6667px; background-color: rgb(255, 255, 255)">
<br style="color: rgb(50, 49, 48); font-family: "Segoe UI", "Segoe UI Web (West European)", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif; font-size: 14.6667px; background-color: rgb(255, 255, 255)">
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="color: rgb(50, 49, 48); font-family: "Segoe UI", "Segoe UI Web (West European)", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif; font-size: 14.6667px; background-color: rgb(255, 255, 255); display: inline !important"><br>
</span></div>
<div id="DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2"><br>
<table style="border-top: 1px solid #D3D4DE;">
<tbody>
<tr>
<td style="width: 55px; padding-top: 13px;"><a href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail" target="_blank"><img alt="" width="46" height="29" style="width: 46px; height: 29px;" src="https://ipmcdn.avast.com/images/icons/icon-envelope-tick-round-orange-animated-no-repeat-v1.gif"></a></td>
<td style="width: 470px; padding-top: 12px; color: #41424e; font-size: 13px; font-family: Arial, Helvetica, sans-serif; line-height: 18px;">
Virus-free. <a href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail" target="_blank" style="color: #4453ea;">
www.avast.com</a> </td>
</tr>
</tbody>
</table>
<a href="#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2" width="1" height="1"></a></div>
</body>
</html>