<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<style type="text/css" id="owaParaStyle">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body class="" style="word-wrap:break-word; line-break:after-white-space" fpstyle="1" ocsi="0">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">Hi Jody,<br>
<br>
It is indeed a CFL issue. Thanks so much for the advice!<br>
<br>
Rob<br>
<div><br>
</div>
<div style="font-family: Times New Roman; color: #000000; font-size: 16px">
<hr tabindex="-1">
<div id="divRpF899163" style="direction: ltr;"><font size="2" face="Tahoma" color="#000000"><b>From:</b> MITgcm-support [mitgcm-support-bounces@mitgcm.org] on behalf of Jody Klymak [jklymak@uvic.ca]<br>
<b>Sent:</b> Friday, October 06, 2017 3:26 PM<br>
<b>To:</b> mitgcm-support@mitgcm.org<br>
<b>Subject:</b> Re: [MITgcm-support] Adding 3D diffusivity field to model input<br>
</font><br>
</div>
<div></div>
<div>Hi Robert,
<div class=""><br class="">
</div>
<div class="">I’m pretty sure there is a CFL criterion for vertical diffusivity; basically dt < dz^2/K .  Are you sure that is being satisfied everywhere, in particular in any partial near-bottom cells you have?  Its unusual for it to be violated, but if dz
 is very small or your imposed K very large.</div>
<div class=""><br class="">
</div>
<div class="">Have you tried inputting a constant low K to make sure its being input properly?</div>
<div class=""><br class="">
</div>
<div class="">Cheers,   Jody</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
<div><br class="">
<blockquote type="cite" class="">
<div class="">On 6 Oct 2017, at  11:47 AM, Robert Nazarian <<a href="mailto:rn2@Princeton.EDU" class="" target="_blank">rn2@Princeton.EDU</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div class="" style="word-wrap:break-word"><font class="" face="Tahoma">Hi,</font>
<div class=""><font class="" face="Tahoma"><br class="">
</font></div>
<div class=""><font class="" face="Tahoma">I'm attempting to insert a 3D matrix of vertical diapycnal diffusivities that are constant in time (with no wave forcing) and comparing it with a simulation where the diapycnal diffusivities are not included (but the
 wave forcing is included). To modify the existing simulation, I've turned off the wave forcing and, based on documentation, made two changes to account for a 3D difussivity input. First, I’ve added #define ALLOW_3D_DIFFKR in CPP_OPTIONS.h. Second, I’ve added
 diffKrFile=‘FileName’ under &PARM05 in data. This file is formatted in the same manner as my initial T and S fields, so I know that the formatting is not the issue. The values of vertical diapycnal diffusivities in this 3D matrix are all greater than or equal
 to 0. I've run the model for just a few time steps and time 0 is fine, however, the first time step yields NaN velocity and temperature values, so something is clearly wrong. Any advice on what I’m missing in my setup would be much appreciated.<br class="">
<br class="">
Thanks so much, <br class="">
Rob</font></div>
</div>
_______________________________________________<br class="">
MITgcm-support mailing list<br class="">
<a href="mailto:MITgcm-support@mitgcm.org" class="" target="_blank">MITgcm-support@mitgcm.org</a><br class="">
http://mailman.mitgcm.org/mailman/listinfo/mitgcm-support<br class="">
</div>
</blockquote>
</div>
<br class="">
<div class=""><span class="Apple-style-span" style="border-collapse:separate; border-spacing:0px; color:rgb(0,0,0); font-family:'Lucida Sans Typewriter'; font-size:12px; font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; line-height:normal; text-indent:0px; text-transform:none; orphans:2; white-space:normal; widows:2; word-spacing:0px">
<div class="" style="word-wrap:break-word"><span class="Apple-style-span" style="border-collapse:separate; border-spacing:0px; color:rgb(0,0,0); font-family:'Lucida Sans Typewriter'; font-size:12px; font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; line-height:normal; text-indent:0px; text-transform:none; orphans:2; white-space:normal; widows:2; word-spacing:0px">
<div class="">--</div>
<div class="">Jody Klymak    </div>
<div class=""><a href="http://web.uvic.ca/~jklymak/" class="" target="_blank">http://web.uvic.ca/~jklymak/</a></div>
<div class=""><br class="khtml-block-placeholder">
</div>
<div class=""><br class="khtml-block-placeholder">
</div>
<br class="Apple-interchange-newline">
</span></div>
</span><br class="Apple-interchange-newline">
</div>
<br class="">
</div>
</div>
</div>
</div>
</body>
</html>