Skip to content

Commit

Permalink
Assert grid corner < CLIGHT not needed with FORCE_SPHERICAL_ESCAPE_SU…
Browse files Browse the repository at this point in the history
…RFACE (#57)
  • Loading branch information
ccollins22 authored and lukeshingles committed May 15, 2024
1 parent d16500c commit d64aae6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion grid.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2024,7 +2024,9 @@ static void setup_grid_cartesian_3d()
// have a higher expansion velocity than the sides
const double vmax_corner = sqrt(3 * pow(globals::vmax, 2));
printout("corner vmax %g [cm/s] (%.2fc)\n", vmax_corner, vmax_corner / CLIGHT);
assert_always(vmax_corner < CLIGHT);
if (!FORCE_SPHERICAL_ESCAPE_SURFACE) {
assert_always(vmax_corner < CLIGHT);
}

/// Set grid size for uniform xyz grid
if (get_model_type() == GRID_CARTESIAN3D) {
Expand Down

0 comments on commit d64aae6

Please sign in to comment.