Skip to content

Commit

Permalink
Deploying to gh-pages from @ e56da22 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
RoryBarnes committed Jun 21, 2024
1 parent f358373 commit f57661c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
4 changes: 2 additions & 2 deletions _sources/primaryvariable.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ We then need to add some lines to ```module.c```. In InitializeModule, add
.. code-block:: bash
module->fnFinalizeUpdatePhysics =
module->fnFinalizeUpdatePhysics =
malloc(iNumBodies * sizeof(fnFinalizeUpdateCarbManModule));
and in FinalizeModule, add
Expand All @@ -214,7 +214,7 @@ and
.. code-block:: bash
module->fnFinalizeUpdatePhysics[iBody][iModule] = &FinalizeUpdateNULL;
module->fnFinalizeUpdatePhysics[iBody][iModule] = &FinalizeUpdateNULL;
Please add them next to the other similar statements
Expand Down
7 changes: 2 additions & 5 deletions primaryvariable.html
Original file line number Diff line number Diff line change
Expand Up @@ -282,13 +282,10 @@ <h2>Initialization<a class="headerlink" href="#initialization" title="Link to th
derivative (which would be bad!).</p>
</div>
<p>We then need to add some lines to <code class="docutils literal notranslate"><span class="pre">`module.c`</span></code>. In InitializeModule, add</p>
<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span>
<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span>module-&gt;fnFinalizeUpdatePhysics<span class="w"> </span><span class="o">=</span>
<span class="w"> </span>malloc<span class="o">(</span>iNumBodies<span class="w"> </span>*<span class="w"> </span>sizeof<span class="o">(</span>fnFinalizeUpdateCarbManModule<span class="o">))</span><span class="p">;</span>
</pre></div>
</div>
<dl class="simple">
<dt>module-&gt;fnFinalizeUpdatePhysics =</dt><dd><p>malloc(iNumBodies * sizeof(fnFinalizeUpdateCarbManModule));</p>
</dd>
</dl>
<p>and in FinalizeModule, add</p>
<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span>module-&gt;fnFinalizeUpdatePhysics<span class="o">[</span>iBody<span class="o">]</span><span class="w"> </span><span class="o">=</span>
<span class="w"> </span>malloc<span class="o">(</span>iNumModules<span class="w"> </span>*<span class="w"> </span>sizeof<span class="o">(</span>fnFinalizeUpdateCarbManModule<span class="o">))</span><span class="p">;</span>
Expand Down

0 comments on commit f57661c

Please sign in to comment.