Added check to see if a_begin < a_end
Compare changes
+ 5
− 0
@@ -487,6 +487,11 @@ void cosmology_init(struct swift_params *params, const struct unit_system *us,
Added a small check for this. If a_begin > a_end
, we get a bit of a nasty crash, and if a_begin == a_end
, we hang because there is no time-step hierarchy (dt_min
and dt_max
get set to NaN
s).