Skip to content

Commit

Permalink
Add changes for 113d701
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Apr 10, 2024
1 parent 1773873 commit 4350f65
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion _modules/mphys/mphys_group.html
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ <h1>Source code for mphys.mphys_group</h1><div class="highlight"><pre>
<span class="bp">self</span><span class="o">.</span><span class="n">_mphys_promote_coupling_variables</span><span class="p">()</span>
<span class="bp">self</span><span class="o">.</span><span class="n">_mphys_promote_inputs</span><span class="p">()</span>
<span class="bp">self</span><span class="o">.</span><span class="n">_mphys_promote_mesh_coordinates</span><span class="p">()</span>
<span class="bp">self</span><span class="o">.</span><span class="n">_mphys_promote_results</span><span class="p">()</span></div>
<span class="bp">self</span><span class="o">.</span><span class="n">_mphys_promote_results</span><span class="p">()</span>
<span class="bp">self</span><span class="o">.</span><span class="n">_mphys_promote_time_derivatives</span><span class="p">()</span></div>

<span class="k">def</span> <span class="nf">_mphys_promote_by_tag</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">iotype</span><span class="p">,</span> <span class="n">tag</span><span class="p">):</span>
<span class="k">for</span> <span class="n">subsystem</span> <span class="ow">in</span> <span class="bp">self</span><span class="o">.</span><span class="n">mphys_subsystems</span><span class="p">:</span>
Expand All @@ -76,6 +77,9 @@ <h1>Source code for mphys.mphys_group</h1><div class="highlight"><pre>
<span class="bp">self</span><span class="o">.</span><span class="n">promotes</span><span class="p">(</span><span class="n">subsystem</span><span class="o">.</span><span class="n">name</span><span class="p">,</span> <span class="nb">any</span><span class="o">=</span><span class="p">[</span><span class="n">variable</span><span class="p">])</span>
<span class="n">promoted</span><span class="o">.</span><span class="n">append</span><span class="p">(</span><span class="n">variable</span><span class="p">)</span>

<span class="k">def</span> <span class="nf">_mphys_promote_time_derivatives</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
<span class="bp">self</span><span class="o">.</span><span class="n">_mphys_promote_by_tag</span><span class="p">([</span><span class="s1">&#39;input&#39;</span><span class="p">,</span> <span class="s1">&#39;output&#39;</span><span class="p">],</span> <span class="s1">&#39;mphys_time_derivative&#39;</span><span class="p">)</span>

<span class="k">def</span> <span class="nf">_mphys_promote_coupling_variables</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
<span class="bp">self</span><span class="o">.</span><span class="n">_mphys_promote_by_tag</span><span class="p">([</span><span class="s1">&#39;input&#39;</span><span class="p">,</span> <span class="s1">&#39;output&#39;</span><span class="p">],</span> <span class="s1">&#39;mphys_coupling&#39;</span><span class="p">)</span>

Expand Down

0 comments on commit 4350f65

Please sign in to comment.