Skip to content

Commit

Permalink
Update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed May 6, 2024
1 parent 88ccb60 commit 33bb7d2
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,7 @@ <h1>Source code for compass.ocean.tests.global_ocean.dynamic_adjustment</h1><div
<span class="sd"> and timers</span>
<span class="sd"> &quot;&quot;&quot;</span>
<span class="n">config</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">config</span>
<span class="n">logger</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">logger</span>
<span class="n">variables</span> <span class="o">=</span> <span class="p">[</span><span class="s1">&#39;temperature&#39;</span><span class="p">,</span> <span class="s1">&#39;salinity&#39;</span><span class="p">,</span> <span class="s1">&#39;layerThickness&#39;</span><span class="p">,</span>
<span class="s1">&#39;normalVelocity&#39;</span><span class="p">]</span>

Expand All @@ -257,7 +258,10 @@ <h1>Source code for compass.ocean.tests.global_ocean.dynamic_adjustment</h1><div
<span class="k">raise</span> <span class="ne">ValueError</span><span class="p">(</span>
<span class="sa">f</span><span class="s1">&#39;Max of </span><span class="si">{</span><span class="n">var</span><span class="si">}</span><span class="s1"> &gt; allowed threshold: &#39;</span>
<span class="sa">f</span><span class="s1">&#39;</span><span class="si">{</span><span class="n">max_in_global_stats</span><span class="si">}</span><span class="s1"> &gt; </span><span class="si">{</span><span class="n">max_value</span><span class="si">}</span><span class="s1"> &#39;</span>
<span class="sa">f</span><span class="s1">&#39;in </span><span class="si">{</span><span class="n">filename</span><span class="si">}</span><span class="s1">&#39;</span><span class="p">)</span></div>
<span class="sa">f</span><span class="s1">&#39;in </span><span class="si">{</span><span class="n">filename</span><span class="si">}</span><span class="s1">&#39;</span><span class="p">)</span>
<span class="n">logger</span><span class="o">.</span><span class="n">info</span><span class="p">(</span><span class="sa">f</span><span class="s1">&#39;As desired, max of </span><span class="si">{</span><span class="n">var</span><span class="si">}</span><span class="s1">: &#39;</span>
<span class="sa">f</span><span class="s1">&#39;</span><span class="si">{</span><span class="n">max_in_global_stats</span><span class="si">}</span><span class="s1"> &lt;= </span><span class="si">{</span><span class="n">max_value</span><span class="si">}</span><span class="s1"> in</span><span class="se">\n</span><span class="s1">&#39;</span>
<span class="sa">f</span><span class="s1">&#39; </span><span class="si">{</span><span class="n">filename</span><span class="si">}</span><span class="s1">&#39;</span><span class="p">)</span></div>


<span class="k">def</span> <span class="nf">_add_step</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">step_name</span><span class="p">,</span> <span class="n">options</span><span class="p">,</span> <span class="n">get_dt_from_min_res</span><span class="p">,</span>
Expand Down

0 comments on commit 33bb7d2

Please sign in to comment.