<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:Helvetica;
panose-1:0 0 0 0 0 0 0 0 0 0;}
@font-face
{font-family:"MS Mincho";
panose-1:2 2 6 9 4 2 5 8 3 4;}
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Aptos;
panose-1:2 11 0 4 2 2 2 2 2 4;}
@font-face
{font-family:Menlo;
panose-1:2 11 6 9 3 8 4 2 2 4;}
@font-face
{font-family:"\@MS Mincho";
panose-1:2 2 6 9 4 2 5 8 3 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
font-size:10.0pt;
font-family:"Aptos",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;
mso-ligatures:none;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style>
</head>
<body lang="EN-US" link="blue" vlink="purple" style="word-wrap:break-word;line-break:after-white-space">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt">Hi Madeleine,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Can you share your version of diagnostics_ini_io.f and diagnostics_ini_io.F? I would think the error is related to a broken link to “DIAGNOSTICS.h”, not something related to the opt file. Also, did the compilation
successfully generate diagnostics_check.f, which uses the variable “diagMdsDir” as well?
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">It would be helpful if you can also share your versions of diagnostics_check.f and diagnostics_check.F.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Best,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Ou Wang<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<div id="mail-editor-reference-message-container">
<div>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal" style="margin-bottom:12.0pt"><b><span style="font-size:12.0pt;color:black">From:
</span></b><span style="font-size:12.0pt;color:black">MITgcm-support <mitgcm-support-bounces@mitgcm.org> on behalf of Madeleine Youngs <myoungs@umd.edu><br>
<b>Date: </b>Tuesday, August 13, 2024 at 8:08</span><span style="font-size:12.0pt;font-family:"Arial",sans-serif;color:black"> </span><span style="font-size:12.0pt;color:black">PM<br>
<b>To: </b>mitgcm-support@mitgcm.org <mitgcm-support@mitgcm.org><br>
<b>Subject: </b>[EXTERNAL] Re: [MITgcm-support] Compiling Problems<o:p></o:p></span></p>
</div>
<p class="MsoNormal"><span style="font-size:12.0pt">Hi Takaya,<o:p></o:p></span></p>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt">That didn’t seem to fix the issue, but thank you for sending this along!<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt">Madeleine<o:p></o:p></span></p>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt"><br>
<br>
<o:p></o:p></span></p>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<div>
<p class="MsoNormal"><span style="font-size:12.0pt">On Aug 13, 2024, at 6:10 PM, Takaya Uchida <tu22@fsu.edu> wrote:<o:p></o:p></span></p>
</div>
<p class="MsoNormal"><span style="font-size:12.0pt"><o:p> </o:p></span></p>
<div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt">Hi Madeleine, <o:p></o:p></span></p>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt">I’ve copy and pasted below the opt file I ended up using to compile MITgcm on Derecho.<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt"><o:p> </o:p></span></p>
</div>
<div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-family:Menlo;color:#2CABBA">#<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-family:Menlo;color:#2CABBA"># Build options for Derecho at NCAR<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-family:Menlo;color:#2CABBA">#<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-family:Menlo;color:#525B6B"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-family:Menlo;color:#525B6B">FC=ftn<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-family:Menlo;color:#525B6B">CC=cc<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-family:Menlo;color:#525B6B">DEFINES=</span><span style="font-family:Menlo;color:#740B8D">'-DALLOW_USE_MPI -DALWAYS_USE_MPI -DWORDLENGTH=4 -DNML_TERMINATOR'<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-family:Menlo;color:#525B6B">CPP=</span><span style="font-family:Menlo;color:#740B8D">'cpp -P -traditional'<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-family:Menlo;color:#525B6B">EXTENDED_SRC_FLAG=</span><span style="font-family:Menlo;color:#740B8D">'-132'</span><span style="font-family:Menlo;color:#525B6B"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-family:Menlo;color:#525B6B">NOOPTFLAGS=</span><span style="font-family:Menlo;color:#740B8D">'-O2 -g -march=core-avx2'<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-family:Menlo;color:#525B6B">LIBS=</span><span style="font-family:Menlo;color:#740B8D">''</span><span style="font-family:Menlo;color:#525B6B"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-family:Menlo;color:#525B6B">INCLUDES=</span><span style="font-family:Menlo;color:#740B8D">'-I/opt/cray/pe/mpich/8.1.25/ofi/intel/19.0/include/'<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-family:Menlo;color:#525B6B"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-family:Menlo;color:#525B6B">if test
</span><span style="font-family:Menlo;color:#740B8D">"x$DEVEL"</span><span style="font-family:Menlo;color:#525B6B"> != x ; then<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-family:Menlo;color:#525B6B"> FFLAGS=</span><span style="font-family:Menlo;color:#740B8D">"$FFLAGS -W0 -WB -convert big_endian -assume byterecl -fPIC -O0 -g -noalign -fpstkchk -check all -fpe0
-traceback -ftrapuv -fpmodel except -warn all -march=core-avx2"<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-family:Menlo;color:#525B6B">else<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-family:Menlo;color:#525B6B"> FFLAGS=</span><span style="font-family:Menlo;color:#740B8D">"$FFLAGS -W0 -WB -convert big_endian -assume byterecl -fPIC -march=core-avx2 -g"<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-family:Menlo;color:#525B6B">fi<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-family:Menlo;color:#525B6B"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-family:Menlo;color:#525B6B">if test
</span><span style="font-family:Menlo;color:#740B8D">"x$IEEE"</span><span style="font-family:Menlo;color:#525B6B"> = x ; then<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-family:Menlo;color:#525B6B"> FOPTIM=</span><span style="font-family:Menlo;color:#740B8D">'-O2 -align -ip'<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-family:Menlo;color:#525B6B"> else<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-family:Menlo;color:#525B6B"> FOPTIM=</span><span style="font-family:Menlo;color:#740B8D">'-O2 -align -ip -mp'<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-family:Menlo;color:#525B6B">fi<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-family:Menlo;color:#525B6B">CFLAGS=</span><span style="font-family:Menlo;color:#740B8D">'-O2 -ip -fPIC'<o:p></o:p></span></p>
</div>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt">The list of modules I load are:<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt"><o:p> </o:p></span></p>
</div>
<div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-family:Menlo;color:#525B6B">module load ncarenv/</span><span style="font-family:Menlo;color:#740B8D">23</span><span style="font-family:Menlo;color:#525B6B">.</span><span style="font-family:Menlo;color:#740B8D">09</span><span style="font-family:Menlo;color:#525B6B">
craype/</span><span style="font-family:Menlo;color:#740B8D">2</span><span style="font-family:Menlo;color:#525B6B">.</span><span style="font-family:Menlo;color:#740B8D">7</span><span style="font-family:Menlo;color:#525B6B">.</span><span style="font-family:Menlo;color:#740B8D">23</span><span style="font-family:Menlo;color:#525B6B">
intel-classic/</span><span style="font-family:Menlo;color:#740B8D">2023</span><span style="font-family:Menlo;color:#525B6B">.</span><span style="font-family:Menlo;color:#740B8D">2</span><span style="font-family:Menlo;color:#525B6B">.</span><span style="font-family:Menlo;color:#740B8D">1</span><span style="font-family:Menlo;color:#525B6B">
ncarcompilers/</span><span style="font-family:Menlo;color:#740B8D">1</span><span style="font-family:Menlo;color:#525B6B">.</span><span style="font-family:Menlo;color:#740B8D">0</span><span style="font-family:Menlo;color:#525B6B">.</span><span style="font-family:Menlo;color:#740B8D">0</span><span style="font-family:Menlo;color:#525B6B">
cray-mpich/</span><span style="font-family:Menlo;color:#740B8D">8</span><span style="font-family:Menlo;color:#525B6B">.</span><span style="font-family:Menlo;color:#740B8D">1</span><span style="font-family:Menlo;color:#525B6B">.</span><span style="font-family:Menlo;color:#740B8D">27</span><span style="font-family:Menlo;color:#525B6B">
hdf5/</span><span style="font-family:Menlo;color:#740B8D">1</span><span style="font-family:Menlo;color:#525B6B">.</span><span style="font-family:Menlo;color:#740B8D">12</span><span style="font-family:Menlo;color:#525B6B">.</span><span style="font-family:Menlo;color:#740B8D">2</span><span style="font-family:Menlo;color:#525B6B">
netcdf/</span><span style="font-family:Menlo;color:#740B8D">4</span><span style="font-family:Menlo;color:#525B6B">.</span><span style="font-family:Menlo;color:#740B8D">9</span><span style="font-family:Menlo;color:#525B6B">.</span><span style="font-family:Menlo;color:#740B8D">2</span><span style="font-family:Menlo;color:#525B6B"><o:p></o:p></span></p>
</div>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt"><o:p> </o:p></span></p>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Helvetica">----------------------------------<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Helvetica">Takaya Uchida (</span><span style="font-size:9.0pt;font-family:"MS Mincho"">内田貴也</span><span style="font-size:9.0pt;font-family:Helvetica">)<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Helvetica">Assistant Research Scientist<br>
Florida State University<br>
Center for Ocean-Atmospheric Prediction Studies<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><a href="https://urldefense.us/v3/__https:/roxyboy.github.io/__;!!PvBDto6Hs4WbVuu7!NnRx5vlbDYZWIRraW2gZnWzzXsE782jeSZ_0N-DP52xAVkHbj-uEwC3rZ_U5PHL8Ay0r9294n_QD_ImbsRJV$"><span style="font-size:9.0pt;font-family:Helvetica">https://roxyboy.github.io/</span></a><span style="font-size:9.0pt;font-family:Helvetica"><o:p></o:p></span></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<p class="MsoNormal"><span style="font-size:12.0pt"><br>
<Center for Ocean-Atmospheric Prediction Studies signature alt.png> <o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt"><br>
<br>
<o:p></o:p></span></p>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<div>
<p class="MsoNormal"><span style="font-size:12.0pt">On Aug 13, 2024, at 8:51</span><span style="font-size:12.0pt;font-family:"Arial",sans-serif"> </span><span style="font-size:12.0pt">PM, Madeleine Youngs <myoungs@umd.edu> wrote:<o:p></o:p></span></p>
</div>
<p class="MsoNormal"><span style="font-size:12.0pt"><o:p> </o:p></span></p>
<div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt">Hi Everyone, <o:p></o:p></span></p>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt">I am working on compiling </span><span style="font-size:8.5pt;font-family:Menlo">checkpoint68y on Derecho using no opt file (?) and I am getting this error. Any advice on what the issue is?</span><span style="font-size:12.0pt"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt"><o:p> </o:p></span></p>
</div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:8.5pt;font-family:Menlo">mpif90 -W0 -WB -msse2 -convert big_endian -assume byterecl -O2 -align -lmpich -lnetcdff -lnetcdf -c diagnostics_fract_fill.f<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:8.5pt;font-family:Menlo">cat diagnostics_ini_io.F | cpp -traditional -P -DALLOW_USE_MPI -DALWAYS_USE_MPI -DWORDLENGTH=4 -DALLOW_USE_MPI -DHAVE_SYSTEM -DHAVE_FDATE -DHAVE_ETIME_FCT -DHAVE_CLOC -DHAVE_SETRLSTK -DHAVE_SIGREG
-DHAVE_STAT -DHAVE_FLUSH -I. | ../../../tools/set64bitConst.sh > diagnostics_ini_io.f<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:8.5pt;font-family:Menlo">mpif90 -W0 -WB -msse2 -convert big_endian -assume byterecl -O2 -align -lmpich -lnetcdff -lnetcdf -c diagnostics_ini_io.f<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:8.5pt;font-family:Menlo">Cannot disable Fortran error message 6404<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:8.5pt;font-family:Menlo">diagnostics_ini_io.f(2005): error #6404: This name does not have a type, and must have an explicit type. [DIAGMDSDIR]<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:8.5pt;font-family:Menlo"> IF ( diag_mdsio .AND. (diagMdsDir.NE.' ') .AND.<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:8.5pt;font-family:Menlo">-----------------------------^<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:8.5pt;font-family:Menlo">Cannot disable Fortran error message 6404<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:8.5pt;font-family:Menlo">diagnostics_ini_io.f(2006): error #6404: This name does not have a type, and must have an explicit type. [DIAGMDSDIRCREATE]<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:8.5pt;font-family:Menlo"> & diagMdsDirCreate .AND. (mdsioLocalDir.EQ.' ') ) THEN<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:8.5pt;font-family:Menlo">-----------^<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:8.5pt;font-family:Menlo">Cannot disable Fortran error message 6514<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:8.5pt;font-family:Menlo">diagnostics_ini_io.f(2009): error #6514: Substring or array slice notation requires CHARACTER type or array. [DIAGMDSDIR]<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:8.5pt;font-family:Menlo"> WRITE(namBuf,'(3A)') ' mkdir -p ', diagMdsDir(1:iL), ' '<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:8.5pt;font-family:Menlo">-------------------------------------------^<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:8.5pt;font-family:Menlo">compilation aborted for diagnostics_ini_io.f (code 1)<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:8.5pt;font-family:Menlo">make[1]: *** [Makefile:1776: diagnostics_ini_io.o] Error 1<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:8.5pt;font-family:Menlo">make[1]: Leaving directory '/glade/derecho/scratch/myoungs/MITgcm/MultiWidthExperiments/Present9.20.16/build'<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:8.5pt;font-family:Menlo">make: *** [Makefile:1688: fwd_exe_target] Error 2<o:p></o:p></span></p>
</div>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt"><br>
<br>
<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt"><br>
<br>
<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt">Thanks,<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt">Madeleine<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><span style="font-size:12.0pt">_______________________________________________<br>
MITgcm-support mailing list<br>
MITgcm-support@mitgcm.org<br>
</span><a href="https://urldefense.us/v3/__http:/mailman.mitgcm.org/mailman/listinfo/mitgcm-support__;!!PvBDto6Hs4WbVuu7!NnRx5vlbDYZWIRraW2gZnWzzXsE782jeSZ_0N-DP52xAVkHbj-uEwC3rZ_U5PHL8Ay0r9294n_QD_GmOPdGy$"><span style="font-size:12.0pt">http://mailman.mitgcm.org/mailman/listinfo/mitgcm-support</span></a><span style="font-size:12.0pt"><o:p></o:p></span></p>
</div>
</blockquote>
</div>
<p class="MsoNormal"><span style="font-size:12.0pt"><o:p> </o:p></span></p>
</div>
</div>
<p class="MsoNormal"><span style="font-size:12.0pt">_______________________________________________<br>
MITgcm-support mailing list<br>
MITgcm-support@mitgcm.org<br>
</span><a href="https://urldefense.us/v3/__http:/mailman.mitgcm.org/mailman/listinfo/mitgcm-support__;!!PvBDto6Hs4WbVuu7!NnRx5vlbDYZWIRraW2gZnWzzXsE782jeSZ_0N-DP52xAVkHbj-uEwC3rZ_U5PHL8Ay0r9294n_QD_GmOPdGy$"><span style="font-size:12.0pt">http://mailman.mitgcm.org/mailman/listinfo/mitgcm-support</span></a><span style="font-size:12.0pt"><o:p></o:p></span></p>
</div>
</blockquote>
</div>
<p class="MsoNormal"><span style="font-size:12.0pt"><o:p> </o:p></span></p>
</div>
</div>
</div>
</div>
</div>
</body>
</html>