Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
FEniCS GitHub Actions committed Nov 24, 2023
1 parent 581837c commit 947d1f2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ffcx/main/_modules/ffcx/analysis.html
Original file line number Diff line number Diff line change
Expand Up @@ -274,8 +274,9 @@ <h1>Source code for ffcx.analysis</h1><div class="highlight"><pre>
<span class="k">if</span> <span class="n">custom_q</span> <span class="ow">is</span> <span class="kc">None</span><span class="p">:</span>
<span class="n">custom_q</span> <span class="o">=</span> <span class="n">e</span><span class="o">.</span><span class="n">custom_quadrature</span><span class="p">()</span>
<span class="k">else</span><span class="p">:</span>
<span class="k">assert</span> <span class="n">np</span><span class="o">.</span><span class="n">allclose</span><span class="p">(</span><span class="n">e</span><span class="o">.</span><span class="n">_points</span><span class="p">,</span> <span class="n">custom_q</span><span class="p">[</span><span class="mi">0</span><span class="p">])</span>
<span class="k">assert</span> <span class="n">np</span><span class="o">.</span><span class="n">allclose</span><span class="p">(</span><span class="n">e</span><span class="o">.</span><span class="n">_weights</span><span class="p">,</span> <span class="n">custom_q</span><span class="p">[</span><span class="mi">1</span><span class="p">])</span>
<span class="n">p</span><span class="p">,</span> <span class="n">w</span> <span class="o">=</span> <span class="n">e</span><span class="o">.</span><span class="n">custom_quadrature</span><span class="p">()</span>
<span class="k">assert</span> <span class="n">np</span><span class="o">.</span><span class="n">allclose</span><span class="p">(</span><span class="n">p</span><span class="p">,</span> <span class="n">custom_q</span><span class="p">[</span><span class="mi">0</span><span class="p">])</span>
<span class="k">assert</span> <span class="n">np</span><span class="o">.</span><span class="n">allclose</span><span class="p">(</span><span class="n">w</span><span class="p">,</span> <span class="n">custom_q</span><span class="p">[</span><span class="mi">1</span><span class="p">])</span>

<span class="k">if</span> <span class="n">custom_q</span> <span class="ow">is</span> <span class="kc">None</span><span class="p">:</span>
<span class="c1"># Extract quadrature degree</span>
Expand Down

0 comments on commit 947d1f2

Please sign in to comment.