Skip to content

Commit

Permalink
More testing for hipert_two_fluids.
Browse files Browse the repository at this point in the history
  • Loading branch information
vitenti committed May 20, 2024
1 parent c0a93d9 commit 9daa3cb
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/test_py_hipert_two_fluids.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,3 +112,11 @@ def spec_params(Omegars=1.0e-5, w=1.0e-3, E0=1.0):
Pk0 = s.eval(lnk, np.log(w))
Pk1 = s_calib.eval(lnk, np.log(w))
assert_allclose(Pk0, Pk1, rtol=1.0e-3)


def test_evolve_array(two_fluids, cosmo_qgrw):
"""Test NcHIPertTwoFluids evolve_array."""
two_fluids.props.reltol = 1.0e-9
m = two_fluids.evolve_array(cosmo=cosmo_qgrw, alphaf=-1.0e-1)

assert all(np.isfinite(m.dup_array()))

0 comments on commit 9daa3cb

Please sign in to comment.