Skip to content

Commit

Permalink
Reduce order expectation for new tests
Browse files Browse the repository at this point in the history
  • Loading branch information
isuruf committed Jun 27, 2022
1 parent d81e16c commit e445b42
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion test/test_stokes.py
Original file line number Diff line number Diff line change
Expand Up @@ -356,12 +356,17 @@ def test_exterior_stokes(actx_factory, ambient_dim, method, nu, visualize=False)
error_format="%.8e",
eoc_format="%.2f"))

extra_order = 0
if method == "biharmonic":
extra_order += 1
elif nu != 0.5:
extra_order += 0.5
for eoc in eocs:
# This convergence data is not as clean as it could be. See
# https://github.com/inducer/pytential/pull/32
# for some discussion.
order = min(target_order, qbx_order)
assert eoc.order_estimate() > order - 0.5
assert eoc.order_estimate() > order - 0.5 - extra_order

# }}}

Expand Down

0 comments on commit e445b42

Please sign in to comment.