From d4e4a644df192e0db65caa461ebbf5337b9072fc Mon Sep 17 00:00:00 2001 From: "David J. Gardner" Date: Sun, 12 May 2024 09:22:08 -0700 Subject: [PATCH] move shared upates outside conditional --- src/arkode/arkode.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/arkode/arkode.c b/src/arkode/arkode.c index 01f299429b..6885921424 100644 --- a/src/arkode/arkode.c +++ b/src/arkode/arkode.c @@ -1062,18 +1062,15 @@ int ARKodeEvolve(void* arkode_mem, sunrealtype tout, N_Vector yout, break; } ark_mem->tretlast = *tret = tout; - ark_mem->next_h = ark_mem->hprime; - istate = ARK_SUCCESS; - break; } else { N_VScale(ONE, ark_mem->yn, yout); ark_mem->tretlast = *tret = ark_mem->tcur; - ark_mem->next_h = ark_mem->hprime; - istate = ARK_SUCCESS; - break; } + ark_mem->next_h = ark_mem->hprime; + istate = ARK_SUCCESS; + break; } /* In ONE_STEP mode, copy y and exit loop */