Skip to content

Commit 619d41c

Browse files
committed
Fix exit code check in VODE error message
1 parent 0ad950a commit 619d41c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

integration/VODE/actual_integrator.H

+1-1
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ void actual_integrator (BurnT& state, Real dt, bool is_retry=false)
177177
#ifndef AMREX_USE_GPU
178178
std::cout << Font::Bold << FGColor::Red << "[ERROR] integration failed in net" << ResetDisplay << std::endl;
179179
std::cout << "istate = " << istate << std::endl;
180-
if (istate == 2) {
180+
if (istate == IERR_SUCCESS) {
181181
std::cout << " VODE exited successfully, but a check on the data values failed" << std::endl;
182182
}
183183
std::cout << "zone = (" << state.i << ", " << state.j << ", " << state.k << ")" << std::endl;

0 commit comments

Comments
 (0)