Skip to content

Commit

Permalink
switch gravity to collisions -- gravity is 0 at time zero
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeffrey Reep authored and Jeffrey Reep committed May 21, 2024
1 parent 16a81bf commit d89ed82
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pydrad/parse/tests/test_strand.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,9 @@ def test_term_file_output(strand):
np.zeros_like(p.electron_numerical_viscosity),
rtol=0.0, atol=1e-8*u.erg/u.s/u.cm**3,
)
# The hydrogen energy equation's gravity term is never 0:
# The hydrogen energy equation's collision rate is never 0 at all positions:
assert not u.allclose(p.hydrogen_gravity,
np.zeros_like(p.hydrogen_gravity),
np.zeros_like(p.hydrogen_collisions),
rtol=0.0, atol=1e-8*u.erg/u.s/u.cm**3,
)

Expand Down

0 comments on commit d89ed82

Please sign in to comment.