Skip to content

Commit

Permalink
testing
Browse files Browse the repository at this point in the history
  • Loading branch information
jrenaud90 committed Jan 21, 2024
1 parent 15efeec commit 9ec267e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/push_tests_mac.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
shell: bash -el {0}

name: Test CyRK on MacOS
runs-on: macos-latest
runs-on: macos-12.7.2
strategy:
matrix:
python-version:
Expand Down
6 changes: 3 additions & 3 deletions Tests/C_Cython_Tests/test_c_cython.py
Original file line number Diff line number Diff line change
Expand Up @@ -550,11 +550,11 @@ def correct_answer(t, c1_, c2_):
real_answer = correct_answer(CySolverAccuracyTestInst.t, c1, c2)

if rk_method == 0:
assert np.allclose(CySolverAccuracyTestInst.y, real_answer, rtol=1.0e-2, atol=1.0e-3)
assert np.allclose(CySolverAccuracyTestInst.y, real_answer, rtol=1.0e-3, atol=1.0e-6)
elif rk_method == 1:
assert np.allclose(CySolverAccuracyTestInst.y, real_answer, rtol=1.0e-2, atol=1.0e-3)
assert np.allclose(CySolverAccuracyTestInst.y, real_answer, rtol=1.0e-4, atol=1.0e-7)
else:
assert np.allclose(CySolverAccuracyTestInst.y, real_answer, rtol=1.0e-2, atol=1.0e-3)
assert np.allclose(CySolverAccuracyTestInst.y, real_answer, rtol=1.0e-5, atol=1.0e-8)

# Check the accuracy of the results
# import matplotlib.pyplot as plt
Expand Down

0 comments on commit 9ec267e

Please sign in to comment.