Skip to content

Commit

Permalink
revert change in sprkstep
Browse files Browse the repository at this point in the history
  • Loading branch information
balos1 committed Jan 19, 2025
1 parent e932a3e commit 30aafe8
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/arkode/arkode_sprkstep.c
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ int SPRKStepReInit(void* arkode_mem, ARKRhsFn f1, ARKRhsFn f2, sunrealtype t0,
step_mem->istage = 0;

/* Zero yerr for compensated summation */
N_VConst(ZERO, step_mem->yerr);
if (ark_mem->use_compensated_sums) { N_VConst(ZERO, step_mem->yerr); }

return (ARK_SUCCESS);
}
Expand Down Expand Up @@ -309,7 +309,10 @@ int sprkStep_Reset(ARKodeMem ark_mem, SUNDIALS_MAYBE_UNUSED sunrealtype tR,
retval = sprkStep_AccessStepMem(ark_mem, __func__, &step_mem);
if (retval != ARK_SUCCESS) { return (retval); }

N_VConst(SUN_RCONST(0.0), step_mem->yerr);
if (ark_mem->use_compensated_sums)
{
N_VConst(SUN_RCONST(0.0), step_mem->yerr);
}
return (ARK_SUCCESS);
}

Expand Down

0 comments on commit 30aafe8

Please sign in to comment.