Skip to content

Commit

Permalink
Update grid.cc
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeshingles committed Mar 7, 2025
1 parent 2a2296e commit 24b3277
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions grid.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2602,8 +2602,8 @@ auto get_totmassradionuclide(const int z, const int a) -> double {
const double maxsdist = (GRID_TYPE == GridType::CARTESIAN3D)
? globals::rmax * tstart / globals::tmin
: 2 * globals::rmax * (tstart + distance / CLIGHT_PROP) / globals::tmin;
assert_always(distance <= maxsdist);
assert_always(distance >= 0);

assert_always(distance >= 0 && distance <= maxsdist);

assert_always((snext == -99) || ((snext >= 0) && (snext < grid::ngrid)));

Expand Down

0 comments on commit 24b3277

Please sign in to comment.