<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;">
Hi Siwen,
<div><br>
</div>
<div>This usually occurs when there’s a numerical instability within your simulation.</div>
<div>It seems that your domain is realistic so I would suggest checking the bathymetry and/or boundary conditions of your domain as a starter.</div>
<div>Saving the model outputs at higher frequency also helps in identifying where the instability is propagating from.</div>
<div><br>
</div>
<div>- Takaya
<div>
<div dir="auto" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;">
<div dir="auto" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;">
<div dir="auto" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;">
<br class="Apple-interchange-newline">
</div>
<br class="Apple-interchange-newline">
</div>
<br class="Apple-interchange-newline">
</div>
<br class="Apple-interchange-newline">
<br class="Apple-interchange-newline">
</div>
<div><br>
<blockquote type="cite">
<div>On Oct 11, 2023, at 5:07 PM, Siwen Chen <siwen.chen@mail.mcgill.ca> wrote:</div>
<br class="Apple-interchange-newline">
<div>
<div class="elementToProof" style="font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt;">
Hi</div>
<div class="elementToProof" style="font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt;">
I'm using the MITgcm for a realistic simulation. I ran the model, and it went well at first, but after 5 steps, it ended run automatically and gives the following error:</div>
<div class="elementToProof" style="font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt;">
<pre class="c-mrkdwn__pre ContentPasted0" data-stringify-type="pre" style="margin: 4px 0px; padding: 8px; overflow-wrap: break-word; font-size: 12px; font-variant-ligatures: none; line-height: 1.50001; tab-size: 4; border: 1px solid var(--saf-0); border-radius: 4px; overflow-y: hidden; counter-reset: list-0 0 list-1 0 list-2 0 list-3 0 list-4 0 list-5 0 list-6 0 list-7 0 list-8 0 list-9 0; text-align: left; color: rgb(29, 28, 29); font-family: Monaco, Menlo, Consolas, "Courier New", monospace !important;">(PID.TID 0024.0001) SOLUTION IS HEADING OUT OF BOUNDS: tMin,tMax= -6.713E+08 9.737E+08
(PID.TID 0024.0001) exceeds allowed range (monSolutionMaxRange= 1.000E+03)
(PID.TID 0024.0001) MON_SOLUTION: STOPPING CALCULATION at Iter= 22711
(PID.TID 0024.0001) *** ERROR *** S/R ALL_PROC_DIE: ending the run</pre>
The size.H file is set as follows:</div>
<div class="elementToProof ContentPasted1 ContentPasted2" style="font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt;">
<pre class="c-mrkdwn__pre ContentPasted3" data-stringify-type="pre" style="margin: 4px 0px; padding: 8px; overflow-wrap: break-word; font-size: 12px; font-variant-ligatures: none; line-height: 1.50001; tab-size: 4; border: 1px solid var(--saf-0); border-radius: 4px; overflow-y: hidden; counter-reset: list-0 0 list-1 0 list-2 0 list-3 0 list-4 0 list-5 0 list-6 0 list-7 0 list-8 0 list-9 0; text-align: left; color: rgb(29, 28, 29); font-family: Monaco, Menlo, Consolas, "Courier New", monospace !important;"> PARAMETER (
& sNx = 60,
& sNy = 20,
& OLx = 3,
& OLy = 3,
& nSx = 1,
& nSy = 1,
& nPx = 4,
& nPy = 16,
& Nx = sNx*nSx*nPx,
& Ny = sNy*nSy*nPy,
& Nr = 55)
C MAX_OLX :: Set to the maximum overlap region size of any array
C MAX_OLY that will be exchanged. Controls the sizing of exch
C routine buffers.
INTEGER MAX_OLX
INTEGER MAX_OLY
PARAMETER ( MAX_OLX = OLx,
& MAX_OLY = OLy )</pre>
And I did't notice where appears the tMin and tMax. And the data file is set as:</div>
<div class="elementToProof ContentPasted1 ContentPasted2" style="font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt;">
<pre class="c-mrkdwn__pre ContentPasted4" data-stringify-type="pre" style="margin: 4px 0px; padding: 8px; overflow-wrap: break-word; font-size: 12px; font-variant-ligatures: none; line-height: 1.50001; tab-size: 4; border: 1px solid var(--saf-0); border-radius: 4px; overflow-y: hidden; counter-reset: list-0 0 list-1 0 list-2 0 list-3 0 list-4 0 list-5 0 list-6 0 list-7 0 list-8 0 list-9 0; text-align: left; color: rgb(29, 28, 29); font-family: Monaco, Menlo, Consolas, "Courier New", monospace !important;"># Model parameters
# Continuous equation parameters
&PARM01
# ---------------------
# I/O parameters
readBinaryPrec=32,
writeBinaryPrec=32,
useSingleCpuIO=.TRUE.,
# ---------------------
# activate partial cells
hFacMinDr=5.,
hFacMin=0.1,
# ---------------------
# free surface parameters
implicitFreeSurface=.TRUE.,
useRealFreshWaterFlux=.TRUE.
exactConserv=.TRUE.,
# ---------------------
# Coriolis parameters at 60deg S for beta plane
f0=-1.405e-4,
beta=1.145e-11,
selectCoriScheme=1,
# ---------------------
# Density and equation of state
eosType='JMD95Z',
tRef= 55*0.,
sRef= 55*34.8,
rhoConst=1035.,
rhoConstFresh=1000.,
# ---------------------
# advection scheme
tempAdvScheme=80,
saltAdvScheme=80,
staggerTimeStep=.TRUE.,
vectorInvariantMomentum=.TRUE.,
# ---------------------
# Viscosity
# viscA4 maximum is ~8.0E13
viscA4=4.6E10
viscAr=1.E-5,
implicitViscosity=.TRUE.,
bottomDragQuadratic = 5E-2,
# ---------------------
# Diffusivity and convection
diffKhT=0.,
diffKrT=1.E-5,
diffKhS=0.,
diffKrS=1.E-5,
implicitDiffusion=.TRUE.,
&
# Elliptic solver parameters
&PARM02
cg2dTargetResidual=1.E-17,
cg2dMaxIters=1000,
&
# Time stepping parameters
&PARM03
# for the longer (50 years) run set pickup frequency to 1 year and
# rolling pickup to 1 month, monitor monthly
deltaT=600.0,
nIter0=0,
nTimeSteps=518400,
# pChkptFreq=31104000.,
# chkptFreq=2592000.,
# monitorFreq=2592000.,
# general settings
dumpFreq=0.,
dumpInitAndLast=.FALSE.,
abEps=0.1,
forcing_In_AB=.FALSE.,
momDissip_In_AB=.FALSE.,
&
# Gridding parameters
&PARM04
usingCartesianGrid=.TRUE.,
delX=240*10.E3,
delY=320*10.E3,
delR= 2.12950489, 2.4308905 , 2.77490323, 3.1675587 , 3.61571496,
4.1271872 , 4.71087665, 5.37691441, 6.13682095, 7.00368101,
7.99233291, 9.11956927, 10.40434342, 11.86797199, 13.5343178 ,
15.42992871, 17.58409559, 20.02877577, 22.79830608, 25.92880133,
29.4571029 , 33.41911167, 37.8473202 , 42.7673766 , 48.19359034,
54.12347726, 60.5317637 , 67.36473409, 74.53630909, 81.92757038,
89.39130539, 96.76222993, 103.87196047, 110.56607025, 116.71949717,
122.24691006, 127.10620628, 131.29541339, 134.84493639, 137.80768112,
140.2493299 , 142.24020421, 143.84931689, 145.14057911, 146.17078598,
146.98889983, 147.63617797, 148.14678645, 148.54864422, 148.86433209,
149.11196865, 149.30600265, 149.45790119, 149.57673112, 149.66964071,
interDiffKr_pCell=.TRUE.,
interViscAr_pCell=.TRUE.,
&
# I/O datasets
&PARM05
bathyFile='TESTSETUP-SOMECONFIG-bathymetry_shelf.bin',
hydrogThetaFile='TESTSETUP-SOMECONFIG-woa18_temperature_3D.bin',
hydrogSaltFile='TESTSETUP-SOMECONFIG-woa18_salinity_3D.bin',
&</pre>
What can I do to avoid such error?</div>
<div class="elementToProof ContentPasted1 ContentPasted2" style="font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt;">
<br>
</div>
<div class="elementToProof ContentPasted1 ContentPasted2" style="font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt;">
Thanks very much!</div>
<div class="elementToProof ContentPasted1 ContentPasted2" style="font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt;">
<br>
</div>
<div class="elementToProof ContentPasted1 ContentPasted2" style="font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt;">
Best,</div>
<div class="elementToProof ContentPasted1 ContentPasted2" style="font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt;">
Siwen</div>
<span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;">_______________________________________________</span><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;">
<span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;">MITgcm-support
mailing list</span><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;">
<a href="mailto:MITgcm-support@mitgcm.org" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;">MITgcm-support@mitgcm.org</a><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;">
<a href="https://urldefense.com/v3/__http://mailman.mitgcm.org/mailman/listinfo/mitgcm-support__;!!PhOWcWs!yHCfZujDzmxH8Vi6b8FsgXAwwiltfxUZFDKJe7CDxNI4-Akf6VjXiXulghsHJKJL0MOY-9U0mRHlc3PadA-A6jcB$" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;">https://urldefense.com/v3/__http://mailman.mitgcm.org/mailman/listinfo/mitgcm-support__;!!PhOWcWs!yHCfZujDzmxH8Vi6b8FsgXAwwiltfxUZFDKJe7CDxNI4-Akf6VjXiXulghsHJKJL0MOY-9U0mRHlc3PadA-A6jcB$</a><span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;"></span></div>
</blockquote>
</div>
<br>
</div>
</body>
</html>