From 9ed59eaa84d78cb76611eb17e26f672a2bee33f8 Mon Sep 17 00:00:00 2001 From: lucass-carneiro Date: Thu, 9 Jan 2025 11:24:55 -0600 Subject: [PATCH] ODESolvers: Fixed bug when setting the RHS refill flag --- ODESolvers/src/solve.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ODESolvers/src/solve.cxx b/ODESolvers/src/solve.cxx index ce505e892..80cdf2a52 100644 --- a/ODESolvers/src/solve.cxx +++ b/ODESolvers/src/solve.cxx @@ -1023,7 +1023,7 @@ extern "C" void ODESolvers_Solve(CCTK_ARGUMENTS) { CCTK_VINFO(" Taking RK4 step to fill prev. RHS"); } - *refill_prev_rhss -= -1; + *refill_prev_rhss -= 1; // k1 = f(y0) // k2 = f(y0 + h/2 k1) @@ -1115,7 +1115,7 @@ extern "C" void ODESolvers_Solve(CCTK_ARGUMENTS) { CCTK_VINFO(" Taking RK4 step to fill prev. RHS"); } - *refill_prev_rhss -= -1; + *refill_prev_rhss -= 1; // k1 = f(y0) // k2 = f(y0 + h/2 k1)