Skip to content

Commit

Permalink
ODESolvers: Fixed bug when setting the RHS refill flag
Browse files Browse the repository at this point in the history
  • Loading branch information
lucass-carneiro committed Jan 9, 2025
1 parent 3aaa6a7 commit 9ed59ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ODESolvers/src/solve.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 9ed59ea

Please sign in to comment.