Skip to content

Commit accfb5e

Browse files
committed
eliminate some divides in SDC integration clean-up
1 parent 485aaa0 commit accfb5e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

integration/integrator_setup_sdc.H

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,11 +186,11 @@ void integrator_cleanup (IntegratorT& int_state, BurnT& state,
186186
}
187187

188188
for (int n = 0; n < NumSpec; ++n) {
189-
if (state.y[SFS+n] / state.rho < -species_failure_tolerance) {
189+
if (state.y[SFS+n] < -state.rho * species_failure_tolerance) {
190190
state.success = false;
191191
}
192192

193-
if (state.y[SFS+n] / state.rho > 1.0_rt + species_failure_tolerance) {
193+
if (state.y[SFS+n] > state.rho * (1.0_rt + species_failure_tolerance)) {
194194
state.success = false;
195195
}
196196
}

0 commit comments

Comments
 (0)