<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:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:DengXian;
panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:"\@DengXian";
panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Calibri",sans-serif;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:12.0pt;}
@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="#0563C1" vlink="#954F72"><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt'>Hi everyone, <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'>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. <o:p></o:p></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). <o:p></o:p></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. <o:p></o:p></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. <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'>Thanks,<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt'>Yilang <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><p class=MsoNormal><b><span style='font-size:11.0pt'>Error message: <o:p></o:p></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]<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt'> COMMON/MULTICATEGORY/TICES<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'>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]<o:p></o:p></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)<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'>compilation aborted for ptracers_reset.f (code 1)<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt'>make[1]: *** [ptracers_reset.o] Error 1<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt'>make[1]: Leaving directory `/vortexfs1/home/yxu/MITgcm/verification/isomip/20200408_build'<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt'>make: *** [fwd_exe_target] Error 2<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><p class=MsoNormal><span style='font-size:11.0pt'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Times New Roman",serif;color:black'>________________________________</span><span style='color:black'><o:p></o:p></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'><o:p></o:p></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'><o:p></o:p></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'><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Times New Roman",serif;color:black'>MIT-WHOI Joint Program</span><o:p></o:p></p></div></body></html>