diff --git a/.github/workflows/push_tests_mac.yml b/.github/workflows/push_tests_mac.yml index d27d91b..9504f8c 100644 --- a/.github/workflows/push_tests_mac.yml +++ b/.github/workflows/push_tests_mac.yml @@ -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: diff --git a/Tests/C_Cython_Tests/test_c_cython.py b/Tests/C_Cython_Tests/test_c_cython.py index 8d48acc..21e12a8 100644 --- a/Tests/C_Cython_Tests/test_c_cython.py +++ b/Tests/C_Cython_Tests/test_c_cython.py @@ -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