<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;} @font-face
        {font-family:"Cambria Math"}
@font-face
        {font-family:DengXian}
@font-face
        {font-family:Calibri}
@font-face
        {}
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Calibri",sans-serif}
span.EmailStyle17
        {font-family:"Calibri",sans-serif;
        color:windowtext}
.MsoChpDefault
        {font-size:12.0pt}
@page WordSection1
        {margin:1.0in 1.0in 1.0in 1.0in}
div.WordSection1
        {}--></style>
</head>
<body dir="ltr" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p>Hi Yilang,</p>
<p><br>
</p>
<p>I added </p>
<p><br>
</p>
<p>#include "SEAICE_SIZE.h"<br>
#include "SEAICE_PARAMS.h"<br>
#include "SEAICE.h"</p>
<p><br>
</p>
<p>in my ptracers_forcing_surf.F file to include ice AREA and it has compiled well.</p>
<p><br>
</p>
<p>Hope this helps.</p>
<p><br>
</p>
<p>Cheers,</p>
<p><br>
</p>
<p><span id="ms-rterangepaste-end">Sandy</span><br>
</p>
<div style="color: rgb(33, 33, 33);">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><b>De :</b> MITgcm-support <mitgcm-support-bounces@mitgcm.org> de la part de Yilang Xu <yxu@whoi.edu><br>
<b>Envoyé :</b> mercredi 8 avril 2020 14:08<br>
<b>À :</b> mitgcm-support@mitgcm.org<br>
<b>Objet :</b> [MITgcm-support] use seaice variables in ptracers</font>
<div> </div>
</div>
<div>
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt">Hi everyone, </span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> </span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">I want to use variables such as AREA from seaice pkg in ptracers pkg. My modification occurs in ptracers_reset.F, and I put #include "SEAICE.h" among others like #include "SIZE.h", etc.
</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">However, when I compile the code, error messages occur near the beginning of compilation (shown below).
</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">There is no seaice*.f in the directory, so the compilation hasn’t reached the seaice pkg yet.
</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">If I exclude all the seaice part in ptracers_reset.F, the code works well. I am wondering what should be modified.
</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> </span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Thanks,</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Yilang </span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> </span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> </span></p>
<p class="MsoNormal"><b><span style="font-size:11.0pt">Error message: </span></b></p>
<p class="MsoNormal"><span style="font-size:11.0pt">ptracers_reset.f(3560): error #6756: A COMMON block data object must not be an automatic object.   [TICES]</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">      COMMON/MULTICATEGORY/TICES</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">---------------------------^</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">ptracers_reset.f(3561): error #6219: This variable, used in a specification expression, must be a dummy argument, a COMMON block object, or an object accessible through host or use association.   [NITD]</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">      Real*8 TICES      (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nITD,nSx,nSy)</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">-----------------------------------------------------^</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">compilation aborted for ptracers_reset.f (code 1)</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">make[1]: *** [ptracers_reset.o] Error 1</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">make[1]: Leaving directory `/vortexfs1/home/yxu/MITgcm/verification/isomip/20200408_build'</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">make: *** [fwd_exe_target] Error 2</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> </span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> </span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> </span></p>
<p class="MsoNormal"><span style="font-size:10.0pt; font-family:"Times New Roman",serif; color:black">________________________________</span><span style="color:black"></span></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt; font-family:"Times New Roman",serif; color:black">Yilang Xu</span></b><span style="color:black"></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt; font-family:"Times New Roman",serif; color:black">Ph.D. Student </span><span style="color:black"></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt; font-family:"Times New Roman",serif; color:black">Applied Ocean Physics and Engineering</span><span style="color:black"></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt; font-family:"Times New Roman",serif; color:black">MIT-WHOI Joint Program</span></p>
</div>
</div>
</div>
</body>
</html>