Skip to content

Commit

Permalink
fix flake8 errors
Browse files Browse the repository at this point in the history
  • Loading branch information
majosm committed Aug 10, 2022
1 parent b6a9732 commit f45abf8
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions test/test_multiphysics.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,8 @@ def get_rhs(t, u):
linf_err_lower = actx.to_numpy(op.norm(dcoll, rhs[0], np.inf, dd=dd_vol_lower))
linf_err_upper = actx.to_numpy(op.norm(dcoll, rhs[1], np.inf, dd=dd_vol_upper))

assert(linf_err_lower < 1e-9)
assert(linf_err_upper < 1e-9)
assert linf_err_lower < 1e-9
assert linf_err_upper < 1e-9


@pytest.mark.parametrize("order", [2, 3])
Expand Down Expand Up @@ -375,8 +375,8 @@ def cv_from_temp(temp):
op.norm(dcoll, rhs[1], np.inf, dd=dd_vol_wall)
/ op.norm(dcoll, wall_temp, np.inf, dd=dd_vol_wall))

assert(linf_err_fluid < 1e-6)
assert(linf_err_wall < 1e-6)
assert linf_err_fluid < 1e-6
assert linf_err_wall < 1e-6

# Now check accuracy/stability

Expand Down Expand Up @@ -460,10 +460,12 @@ def cv_from_temp(temp):
print("L^inf error (wall):")
print(eoc_rec_wall)

assert(eoc_rec_fluid.order_estimate() >= order - 0.5
or eoc_rec_fluid.max_error() < 1e-11)
assert(eoc_rec_wall.order_estimate() >= order - 0.5
or eoc_rec_wall.max_error() < 1e-11)
assert (
eoc_rec_fluid.order_estimate() >= order - 0.5
or eoc_rec_fluid.max_error() < 1e-11)
assert (
eoc_rec_wall.order_estimate() >= order - 0.5
or eoc_rec_wall.max_error() < 1e-11)


if __name__ == "__main__":
Expand Down

0 comments on commit f45abf8

Please sign in to comment.