build based on b5efc3d

This commit is contained in:
Documenter.jl
2024-09-23 14:37:12 +00:00
parent 468c8dd0ca
commit af2b7c5a0d
26 changed files with 106 additions and 75 deletions

View File

@@ -7832,7 +7832,7 @@ a.anchor-link {
<div class="jp-CodeMirrorEditor jp-Editor jp-InputArea-editor" data-type="inline">
<div class="cm-editor cm-s-jupyter">
<div class="highlight hl-julia"><pre><span></span><span class="n">n</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">5</span>
<span class="n">tol</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mf">1e-9</span>
<span class="n">tol</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mf">1e-10</span>
<span class="n">jacobi_with_tol</span><span class="p">(</span><span class="n">n</span><span class="p">,</span><span class="n">tol</span><span class="p">)</span>
</pre></div>
</div>
@@ -9261,7 +9261,7 @@ d) This implementation does not work when distributing over just a single MPI ra
<span class="w"> </span><span class="n">u</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">jacobi_mpi</span><span class="p">(</span><span class="n">n</span><span class="p">,</span><span class="n">niters</span><span class="p">,</span><span class="n">comm</span><span class="p">)</span>
<span class="w"> </span><span class="nd">@show</span><span class="w"> </span><span class="n">u</span>
<span class="k">end</span>
<span class="n">run</span><span class="p">(</span><span class="sb">`</span><span class="si">$</span><span class="p">(</span><span class="n">mpiexec</span><span class="p">())</span><span class="sb"> -np 1 julia --project=. -e </span><span class="si">$code</span><span class="sb">`</span><span class="p">);</span>
<span class="n">run</span><span class="p">(</span><span class="sb">`</span><span class="si">$</span><span class="p">(</span><span class="n">mpiexec</span><span class="p">())</span><span class="sb"> -np 3 julia --project=. -e </span><span class="si">$code</span><span class="sb">`</span><span class="p">);</span>
</pre></div>
</div>
</div>
@@ -9681,7 +9681,7 @@ d) MPI_Sendrecv</code></pre>
</div>
<div class="jp-InputArea jp-Cell-inputArea"><div class="jp-InputPrompt jp-InputArea-prompt">
</div><div class="jp-RenderedHTMLCommon jp-RenderedMarkdown jp-MarkdownOutput" data-mime-type="text/markdown">
<h3 id="Exercise-2">Exercise 2<a class="anchor-link" href="#Exercise-2"></a></h3><p>In the parallel implementation of the Jacobi method, we assumed that the method runs for a given number of iterations. In function, <code>jacobi_with_tol</code> at the beginning of the notebook shows how the Jacobi iterations can be stopped when the difference between iterations is small. Implement a parallel version of this function. Start with the in Exercise 1 and add the stopping criterion implemented in <code>jacobi_with_tol</code>. Use a text editor and the Julia REPL. Do not try to implement the code in a notebook.</p>
<h3 id="Exercise-2">Exercise 2<a class="anchor-link" href="#Exercise-2"></a></h3><p>In the parallel implementation of the Jacobi method, we assumed that the method runs for a given number of iterations. In function, <code>jacobi_with_tol</code> at the beginning of the notebook shows how the Jacobi iterations can be stopped when the difference between iterations is small. Implement a parallel version of this function. Start with the code in Exercise 1 and add the stopping criterion implemented in <code>jacobi_with_tol</code>. Use a text editor and the Julia REPL. Do not try to implement the code in a notebook.</p>
</div>
</div>
</div>