Skip to content

Commit

Permalink
Bump tolerance in calculus tests
Browse files Browse the repository at this point in the history
Apparently rounding errors have changed in Julia-1.11, so the tolerance
for one of the calculus tests needs to be relaxed slightly.
  • Loading branch information
johnomotani committed Feb 5, 2025
1 parent 71114eb commit 114b314
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion moment_kinetics/test/calculus_tests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -701,7 +701,7 @@ function runtests()
# something like p*(round-off) for x^p (?) so error on expected_df would
# be p*p*(round-off), or plausibly 1024*(round-off), so tolerance of
# 2e-11 isn't unreasonable.
@test isapprox(df, expected_df, rtol=2.0e-11, atol=6.0e-12,
@test isapprox(df, expected_df, rtol=3.0e-11, atol=6.0e-12,
norm=maxabs_norm)
end
end
Expand Down

0 comments on commit 114b314

Please sign in to comment.