Skip to content

Commit 1f7c39a

Browse files
author
MFC Action
committed
Docs @ 64d9677
1 parent f96dd0b commit 1f7c39a

File tree

106 files changed

+2652
-1130
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

106 files changed

+2652
-1130
lines changed

documentation/md_testing.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ <h2><a class="anchor" id="autotoc_md84"></a>
143143
<p>To (re)generate <em>golden files</em>, append the <code>--generate</code> option: </p><div class="fragment"><div class="line">./mfc.sh test --generate -j 8</div>
144144
</div><!-- fragment --><p>It is recommended that a range be specified when generating golden files for new test cases, as described in the previous section, in an effort not to regenerate the golden files of existing test cases.</p>
145145
<p><b>Note:</b> If you output new variables and want to update the golden files to include these without modifying the original data, use the <code>--add-new-variables</code> option instead.</p>
146-
<p>Adding a new test case can be done by modifying <a href="https://github.com/MFlowCode/MFC/tree/master/toolchain/mfc/test/cases.py">cases.py</a>. The function <code>generate_cases</code> is responsible for generating the list of test cases. Loops and conditionals are used to vary parameters, whose defaults can be found in the <code>BASE_CFG</code> case object within <a href="https://github.com/MFlowCode/MFC/tree/master/toolchain/mfc/test/case.py">case.py</a>. The function operates on two variables:</p>
146+
<p>Adding a new test case can be done by modifying <a href="https://github.com/MFlowCode/MFC/tree/master/toolchain/mfc/test/cases.py">cases.py</a>. The function <code>list_cases</code> is responsible for generating the list of test cases. Loops and conditionals are used to vary parameters, whose defaults can be found in the <code>BASE_CFG</code> case object within <a href="https://github.com/MFlowCode/MFC/tree/master/toolchain/mfc/test/case.py">case.py</a>. The function operates on two variables:</p>
147147
<ul>
148148
<li><code>stack</code>: A stack that holds the variations to the default case parameters. By pushing and popping the stack inside loops and conditionals, it is easier to nest test case descriptions, as it holds the variations that are common to all future test cases within the same indentation level (in most scenarios).</li>
149149
<li><code>cases</code>: A list that holds fully-formed <code>Case</code> objects, that will be returned at the end of the function.</li>
@@ -158,7 +158,7 @@ <h2><a class="anchor" id="autotoc_md84"></a>
158158
<li><code>params</code> is the fully resolved case dictionary, as would appear in a Python case input file.</li>
159159
<li><code>ppn</code> is the number of processes per node to use when running the case.</li>
160160
</ul>
161-
<p>To illustrate, consider the following excerpt from <code>generate_cases</code>:</p>
161+
<p>To illustrate, consider the following excerpt from <code>list_cases</code>:</p>
162162
<div class="fragment"><div class="line"><span class="keywordflow">for</span> weno_order <span class="keywordflow">in</span> [3, 5]:</div>
163163
<div class="line"> stack.push(f<span class="stringliteral">&quot;weno_order={weno_order}&quot;</span>, {<span class="stringliteral">&#39;weno_order&#39;</span>: weno_order})</div>
164164
<div class="line"> </div>
@@ -169,19 +169,19 @@ <h2><a class="anchor" id="autotoc_md84"></a>
169169
<div class="line"> })</div>
170170
<div class="line"> </div>
171171
<div class="line"> <span class="keywordflow">if</span> <span class="keywordflow">not</span> (mp_weno == <span class="stringliteral">&#39;T&#39;</span> <span class="keywordflow">and</span> weno_order != 5):</div>
172-
<div class="line"> cases.append(create_case(stack, <span class="stringliteral">&#39;&#39;</span>, {}))</div>
172+
<div class="line"> cases.append(define_case_d(stack, <span class="stringliteral">&#39;&#39;</span>, {}))</div>
173173
<div class="line"> </div>
174174
<div class="line"> stack.pop()</div>
175175
<div class="line"> </div>
176176
<div class="line"> stack.pop()</div>
177-
</div><!-- fragment --><p>When pushing to the stack, or creating a new case with the <code>create_case</code> function, you must specify:</p><ul>
177+
</div><!-- fragment --><p>When pushing to the stack, or creating a new case with the <code>define_case_d</code> function, you must specify:</p><ul>
178178
<li><code>stack</code>: The current stack.</li>
179179
<li><code>trace</code>: A human-readable string describing what you are currently varying.</li>
180180
<li><code>variations</code>: A Python dictionary with case parameter variations.</li>
181181
<li>(Optional) <code>ppn</code>: The number of processes per node to use (default is 1).</li>
182182
</ul>
183183
<p>If a trace is empty (that is, the empty string <code>""</code>), it will not appear in the final trace, but any case parameter variations associated with it will still be applied.</p>
184-
<p>Finally, the case is appended to the <code>cases</code> list, which will be returned by the <code>generate_cases</code> function.</p>
184+
<p>Finally, the case is appended to the <code>cases</code> list, which will be returned by the <code>list_cases</code> function.</p>
185185
<h2><a class="anchor" id="autotoc_md85"></a>
186186
Testing Post Process</h2>
187187
<p>To test updated post process code, append the <code>-a</code> or <code>--test-all</code> option: </p><div class="fragment"><div class="line">./mfc.sh test -a -j 8</div>

post_process/doxygen_crawl.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -485,8 +485,10 @@
485485
<a href="m__helper_8fpp_8f90.html#a88808ee0f14fe4e145a538646dc9ba73"/>
486486
<a href="m__helper_8fpp_8f90.html#a8a0505b2bd4f3d8cb2bf3ce16cfe01e3"/>
487487
<a href="m__helper_8fpp_8f90.html#a91cfb5e94039510845e0bb8cdc843ee8"/>
488+
<a href="m__helper_8fpp_8f90.html#aaa9cc8944c8dfe3f302e106b0eb3efee"/>
488489
<a href="m__helper_8fpp_8f90.html#aafb2d0e9e3e66d3f3714f0ad3349bc8f"/>
489490
<a href="m__helper_8fpp_8f90.html#ab89cbe125a3f1cdf3339d2d40f48e547"/>
491+
<a href="m__helper_8fpp_8f90.html#abd1074cc9307589b2d34db68c67afb7f"/>
490492
<a href="m__helper_8fpp_8f90.html#ac1893d0dc10d4afa0f4b3f5c36b8fb8b"/>
491493
<a href="m__helper_8fpp_8f90.html#ae401e6ec49c4c7340e19c04a0abe836a"/>
492494
<a href="m__helper_8fpp_8f90.html#ae6e719f709d847b8b1a1f8e8b483158f"/>

post_process/globals.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,8 @@ <h3><a id="index_f" name="index_f"></a>- f -</h3><ul>
146146
<li>f_create_bbox()&#160;:&#160;<a class="el" href="m__helper_8fpp_8f90.html#a88808ee0f14fe4e145a538646dc9ba73">m_helper.fpp.f90</a></li>
147147
<li>f_create_transform_matrix()&#160;:&#160;<a class="el" href="m__helper_8fpp_8f90.html#aafb2d0e9e3e66d3f3714f0ad3349bc8f">m_helper.fpp.f90</a></li>
148148
<li>f_cross()&#160;:&#160;<a class="el" href="m__helper_8fpp_8f90.html#a3685fb84c52ce964157ac58fc0068249">m_helper.fpp.f90</a></li>
149+
<li>f_logical_to_int()&#160;:&#160;<a class="el" href="m__helper_8fpp_8f90.html#aaa9cc8944c8dfe3f302e106b0eb3efee">m_helper.fpp.f90</a></li>
150+
<li>f_xor()&#160;:&#160;<a class="el" href="m__helper_8fpp_8f90.html#abd1074cc9307589b2d34db68c67afb7f">m_helper.fpp.f90</a></li>
149151
</ul>
150152

151153

post_process/globals_func.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,8 @@ <h3><a id="index_f" name="index_f"></a>- f -</h3><ul>
146146
<li>f_create_bbox()&#160;:&#160;<a class="el" href="m__helper_8fpp_8f90.html#a88808ee0f14fe4e145a538646dc9ba73">m_helper.fpp.f90</a></li>
147147
<li>f_create_transform_matrix()&#160;:&#160;<a class="el" href="m__helper_8fpp_8f90.html#aafb2d0e9e3e66d3f3714f0ad3349bc8f">m_helper.fpp.f90</a></li>
148148
<li>f_cross()&#160;:&#160;<a class="el" href="m__helper_8fpp_8f90.html#a3685fb84c52ce964157ac58fc0068249">m_helper.fpp.f90</a></li>
149+
<li>f_logical_to_int()&#160;:&#160;<a class="el" href="m__helper_8fpp_8f90.html#aaa9cc8944c8dfe3f302e106b0eb3efee">m_helper.fpp.f90</a></li>
150+
<li>f_xor()&#160;:&#160;<a class="el" href="m__helper_8fpp_8f90.html#abd1074cc9307589b2d34db68c67afb7f">m_helper.fpp.f90</a></li>
149151
</ul>
150152

151153

post_process/m__helper_8fpp_8f90.html

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,10 @@
183183
<tr class="memitem:a88808ee0f14fe4e145a538646dc9ba73" id="r_a88808ee0f14fe4e145a538646dc9ba73"><td class="memItemLeft" align="right" valign="top">type(<a class="el" href="structt__bbox.html">t_bbox</a>) function&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a88808ee0f14fe4e145a538646dc9ba73">f_create_bbox</a> (model)</td></tr>
184184
<tr class="memdesc:a88808ee0f14fe4e145a538646dc9ba73"><td class="mdescLeft">&#160;</td><td class="mdescRight">This procedure creates a bounding box for a model. <br /></td></tr>
185185
<tr class="separator:a88808ee0f14fe4e145a538646dc9ba73"><td class="memSeparator" colspan="2">&#160;</td></tr>
186+
<tr class="memitem:abd1074cc9307589b2d34db68c67afb7f" id="r_abd1074cc9307589b2d34db68c67afb7f"><td class="memItemLeft" align="right" valign="top">logical function&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#abd1074cc9307589b2d34db68c67afb7f">f_xor</a> (lhs, rhs)</td></tr>
187+
<tr class="separator:abd1074cc9307589b2d34db68c67afb7f"><td class="memSeparator" colspan="2">&#160;</td></tr>
188+
<tr class="memitem:aaa9cc8944c8dfe3f302e106b0eb3efee" id="r_aaa9cc8944c8dfe3f302e106b0eb3efee"><td class="memItemLeft" align="right" valign="top">integer function&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#aaa9cc8944c8dfe3f302e106b0eb3efee">f_logical_to_int</a> (predicate)</td></tr>
189+
<tr class="separator:aaa9cc8944c8dfe3f302e106b0eb3efee"><td class="memSeparator" colspan="2">&#160;</td></tr>
186190
</table>
187191
<h2 class="groupheader">Function/Subroutine Documentation</h2>
188192
<a id="ac1893d0dc10d4afa0f4b3f5c36b8fb8b" name="ac1893d0dc10d4afa0f4b3f5c36b8fb8b"></a>
@@ -324,6 +328,70 @@ <h2 class="memtitle"><span class="permalink"><a href="#a3685fb84c52ce964157ac58f
324328
<div class="center"><iframe scrolling="no" frameborder="0" src="m__helper_8fpp_8f90_a3685fb84c52ce964157ac58fc0068249_icgraph.svg" width="294" height="36"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe></div>
325329
</div>
326330

331+
</div>
332+
</div>
333+
<a id="aaa9cc8944c8dfe3f302e106b0eb3efee" name="aaa9cc8944c8dfe3f302e106b0eb3efee"></a>
334+
<h2 class="memtitle"><span class="permalink"><a href="#aaa9cc8944c8dfe3f302e106b0eb3efee">&#9670;&#160;</a></span>f_logical_to_int()</h2>
335+
336+
<div class="memitem">
337+
<div class="memproto">
338+
<table class="mlabels">
339+
<tr>
340+
<td class="mlabels-left">
341+
<table class="memname">
342+
<tr>
343+
<td class="memname">integer function __m_helper_fpp_f90__::f_logical_to_int </td>
344+
<td>(</td>
345+
<td class="paramtype">logical, intent(in)</td> <td class="paramname"><span class="paramname"><em>predicate</em></span></td><td>)</td>
346+
<td></td>
347+
</tr>
348+
</table>
349+
</td>
350+
<td class="mlabels-right">
351+
<span class="mlabels"><span class="mlabel">private</span></span> </td>
352+
</tr>
353+
</table>
354+
</div><div class="memdoc">
355+
<div class="dynheader">
356+
Here is the caller graph for this function:</div>
357+
<div class="dyncontent">
358+
<div class="center"><iframe scrolling="no" frameborder="0" src="m__helper_8fpp_8f90_aaa9cc8944c8dfe3f302e106b0eb3efee_icgraph.svg" width="347" height="36"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe></div>
359+
</div>
360+
361+
</div>
362+
</div>
363+
<a id="abd1074cc9307589b2d34db68c67afb7f" name="abd1074cc9307589b2d34db68c67afb7f"></a>
364+
<h2 class="memtitle"><span class="permalink"><a href="#abd1074cc9307589b2d34db68c67afb7f">&#9670;&#160;</a></span>f_xor()</h2>
365+
366+
<div class="memitem">
367+
<div class="memproto">
368+
<table class="mlabels">
369+
<tr>
370+
<td class="mlabels-left">
371+
<table class="memname">
372+
<tr>
373+
<td class="memname">logical function __m_helper_fpp_f90__::f_xor </td>
374+
<td>(</td>
375+
<td class="paramtype">logical, intent(in)</td> <td class="paramname"><span class="paramname"><em>lhs</em></span>, </td>
376+
</tr>
377+
<tr>
378+
<td class="paramkey"></td>
379+
<td></td>
380+
<td class="paramtype">logical, intent(in)</td> <td class="paramname"><span class="paramname"><em>rhs</em></span>&#160;)</td>
381+
</tr>
382+
</table>
383+
</td>
384+
<td class="mlabels-right">
385+
<span class="mlabels"><span class="mlabel">private</span></span> </td>
386+
</tr>
387+
</table>
388+
</div><div class="memdoc">
389+
<div class="dynheader">
390+
Here is the caller graph for this function:</div>
391+
<div class="dyncontent">
392+
<div class="center"><iframe scrolling="no" frameborder="0" src="m__helper_8fpp_8f90_abd1074cc9307589b2d34db68c67afb7f_icgraph.svg" width="280" height="36"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe></div>
393+
</div>
394+
327395
</div>
328396
</div>
329397
<a id="a772c75c8b24c414cfaed17e2f8acc772" name="a772c75c8b24c414cfaed17e2f8acc772"></a>

post_process/m__helper_8fpp_8f90.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ var m__helper_8fpp_8f90 =
44
[ "f_create_bbox", "m__helper_8fpp_8f90.html#a88808ee0f14fe4e145a538646dc9ba73", null ],
55
[ "f_create_transform_matrix", "m__helper_8fpp_8f90.html#aafb2d0e9e3e66d3f3714f0ad3349bc8f", null ],
66
[ "f_cross", "m__helper_8fpp_8f90.html#a3685fb84c52ce964157ac58fc0068249", null ],
7+
[ "f_logical_to_int", "m__helper_8fpp_8f90.html#aaa9cc8944c8dfe3f302e106b0eb3efee", null ],
8+
[ "f_xor", "m__helper_8fpp_8f90.html#abd1074cc9307589b2d34db68c67afb7f", null ],
79
[ "s_comp_n_from_cons", "m__helper_8fpp_8f90.html#a772c75c8b24c414cfaed17e2f8acc772", null ],
810
[ "s_comp_n_from_prim", "m__helper_8fpp_8f90.html#a308591c92e68d2500ea353807d1b388b", null ],
911
[ "s_compute_finite_difference_coefficients", "m__helper_8fpp_8f90.html#a397f792e51d5a7f74131b9c72b87e071", null ],

post_process/m__helper_8fpp_8f90_a772c75c8b24c414cfaed17e2f8acc772_icgraph.svg

Lines changed: 1 addition & 1 deletion
Loading

post_process/m__helper_8fpp_8f90_a8a0505b2bd4f3d8cb2bf3ce16cfe01e3_icgraph.svg

Lines changed: 1 addition & 1 deletion
Loading
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<map id="f_logical_to_int" name="f_logical_to_int">
2+
<area shape="rect" id="Node000001" title=" " alt="" coords="220,5,341,31"/>
3+
<area shape="rect" id="Node000002" href="$m__helper_8fpp_8f90.html#ac1893d0dc10d4afa0f4b3f5c36b8fb8b" title=" " alt="" coords="5,5,172,31"/>
4+
<area shape="poly" id="edge1_Node000001_Node000002" title=" " alt="" coords="206,21,172,21,172,15,206,15"/>
5+
</map>
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
d6de4b667dd255ce6f21ed55b6d15b40

0 commit comments

Comments
 (0)