<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
{}
@font-face
{}
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Calibri",sans-serif}
span.EmailStyle21
{font-family:"Calibri",sans-serif;
color:windowtext}
.MsoChpDefault
{font-size:10.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>excellent :)</p>
<p><br>
</p>
<p>Cheers,</p>
<p><br>
</p>
<p>Sandy<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:24<br>
<b>À :</b> mitgcm-support@mitgcm.org<br>
<b>Objet :</b> Re: [MITgcm-support] use seaice variables in ptracers</font>
<div> </div>
</div>
<div>
<div class="WordSection1">
<p class="MsoNormal">Hi Sandy, </p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Yes this has solved the problem. Thank you very much! </p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Best,</p>
<p class="MsoNormal">Yilang </p>
<p class="MsoNormal"> </p>
<div style="border:none; border-top:solid #B5C4DF 1.0pt; padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="color:black">From: </span></b><span style="color:black">MITgcm-support <mitgcm-support-bounces@mitgcm.org> on behalf of <Sandy.Gregorio@uqar.ca><br>
<b>Reply-To: </b><mitgcm-support@mitgcm.org><br>
<b>Date: </b>Wednesday, April 8, 2020 at 14:14<br>
<b>To: </b><mitgcm-support@mitgcm.org><br>
<b>Subject: </b>Re: [MITgcm-support] use seaice variables in ptracers</span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt"> </span></p>
</div>
<p>Hi Yilang,</p>
<p> </p>
<p>I added </p>
<p> </p>
<p>#include "SEAICE_SIZE.h"<br>
#include "SEAICE_PARAMS.h"<br>
#include "SEAICE.h"</p>
<p> </p>
<p>in my ptracers_forcing_surf.F file to include ice AREA and it has compiled well.</p>
<p> </p>
<p>Hope this helps.</p>
<p> </p>
<p>Cheers,</p>
<p> </p>
<p>Sandy</p>
<div>
<div class="MsoNormal" style="text-align:center" align="center"><span style="font-size:11.0pt; color:#212121">
<hr width="100%" size="0" align="center">
</span></div>
<div id="divRplyFwdMsg">
<p class="MsoNormal"><b><span style="font-size:11.0pt; color:black">De :</span></b><span style="font-size:11.0pt; color:black"> 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</span><span style="font-size:11.0pt; color:#212121">
</span></p>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt; color:#212121"> </span></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt; color:#212121">Hi everyone, </span>
<span style="color:#212121"></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; color:#212121"> </span><span style="color:#212121"></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; color:#212121">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><span style="color:#212121"></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; color:#212121">However, when I compile the code, error messages occur near the beginning of compilation (shown below).
</span><span style="color:#212121"></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; color:#212121">There is no seaice*.f in the directory, so the compilation hasn’t reached the seaice pkg yet.
</span><span style="color:#212121"></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; color:#212121">If I exclude all the seaice part in ptracers_reset.F, the code works well. I am wondering what should be modified.
</span><span style="color:#212121"></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; color:#212121"> </span><span style="color:#212121"></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; color:#212121">Thanks,</span><span style="color:#212121"></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; color:#212121">Yilang </span>
<span style="color:#212121"></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; color:#212121"> </span><span style="color:#212121"></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; color:#212121"> </span><span style="color:#212121"></span></p>
<p class="MsoNormal"><b><span style="font-size:11.0pt; color:#212121">Error message:
</span></b><span style="color:#212121"></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; color:#212121">ptracers_reset.f(3560): error #6756: A COMMON block data object must not be an automatic object. [TICES]</span><span style="color:#212121"></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; color:#212121"> COMMON/MULTICATEGORY/TICES</span><span style="color:#212121"></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; color:#212121">---------------------------^</span><span style="color:#212121"></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; color:#212121">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><span style="color:#212121"></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; color:#212121"> Real*8 TICES (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nITD,nSx,nSy)</span><span style="color:#212121"></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; color:#212121">-----------------------------------------------------^</span><span style="color:#212121"></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; color:#212121">compilation aborted for ptracers_reset.f (code 1)</span><span style="color:#212121"></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; color:#212121">make[1]: *** [ptracers_reset.o] Error 1</span><span style="color:#212121"></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; color:#212121">make[1]: Leaving directory `/vortexfs1/home/yxu/MITgcm/verification/isomip/20200408_build'</span><span style="color:#212121"></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; color:#212121">make: *** [fwd_exe_target] Error 2</span><span style="color:#212121"></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; color:#212121"> </span><span style="color:#212121"></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; color:#212121"> </span><span style="color:#212121"></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; color:#212121"> </span><span style="color:#212121"></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt; font-family:"Times New Roman",serif; color:black">________________________________</span><span style="color:#212121"></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:#212121"></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:#212121"></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:#212121"></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt; font-family:"Times New Roman",serif; color:black">MIT-WHOI Joint Program</span><span style="color:#212121"></span></p>
</div>
</div>
</div>
<p class="MsoNormal"><span style="font-size:11.0pt">_______________________________________________ MITgcm-support mailing list MITgcm-support@mitgcm.org http://mailman.mitgcm.org/mailman/listinfo/mitgcm-support
</span></p>
</div>
</div>
</div>
</body>
</html>