Skip to content

Commit

Permalink
update calls to SUNStepper_Reset
Browse files Browse the repository at this point in the history
  • Loading branch information
balos1 authored Jan 14, 2025
1 parent f173adf commit e76c24c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions src/arkode/arkode_forcingstep.c
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ static int forcingStep_Init(ARKodeMem ark_mem,
* state in case a user provided a different initial condition for the
* ForcingStep integrator and SUNStepper. */
SUNErrCode err = SUNStepper_Reset(step_mem->stepper[1], ark_mem->tn,
ark_mem->yn);
ark_mem->yn, 0);
if (err != SUN_SUCCESS)
{
arkProcessError(ark_mem, ARK_SUNSTEPPER_ERR, __LINE__, __func__, __FILE__,
Expand All @@ -119,15 +119,15 @@ static int forcingStep_Reset(ARKodeMem ark_mem, sunrealtype tR, N_Vector yR)
int retval = forcingStep_AccessStepMem(ark_mem, __func__, &step_mem);
if (retval != ARK_SUCCESS) { return retval; }

SUNErrCode err = SUNStepper_Reset(step_mem->stepper[0], tR, yR);
SUNErrCode err = SUNStepper_Reset(step_mem->stepper[0], tR, yR, 0);
if (err != SUN_SUCCESS)
{
arkProcessError(ark_mem, ARK_SUNSTEPPER_ERR, __LINE__, __func__, __FILE__,
"Resetting the first partition SUNStepper failed");
return ARK_SUNSTEPPER_ERR;
}

err = SUNStepper_Reset(step_mem->stepper[1], tR, yR);
err = SUNStepper_Reset(step_mem->stepper[1], tR, yR, 0);
if (err != SUN_SUCCESS)
{
arkProcessError(ark_mem, ARK_SUNSTEPPER_ERR, __LINE__, __func__, __FILE__,
Expand Down Expand Up @@ -239,7 +239,7 @@ static int forcingStep_TakeStep(ARKodeMem ark_mem, sunrealtype* dsmPtr,
/* Evolve stepper 0 on its own */
SUNLogInfo(ARK_LOGGER, "begin-partition", "partition = 0");

SUNErrCode err = SUNStepper_Reset(s0, ark_mem->tn, ark_mem->yn);
SUNErrCode err = SUNStepper_Reset(s0, ark_mem->tn, ark_mem->yn, 0);
if (err != SUN_SUCCESS)
{
SUNLogInfo(ARK_LOGGER, "end-partition",
Expand Down
2 changes: 1 addition & 1 deletion src/arkode/arkode_mristep.c
Original file line number Diff line number Diff line change
Expand Up @@ -4715,7 +4715,7 @@ int mriStepInnerStepper_ResetSUNStepper(MRIStepInnerStepper stepper,
sunrealtype tR, N_Vector yR)
{
SUNStepper sunstepper = (SUNStepper)stepper->content;
SUNErrCode err = SUNStepper_Reset(sunstepper, tR, yR);
SUNErrCode err = SUNStepper_Reset(sunstepper, tR, yR, 0);
stepper->last_flag = sunstepper->last_flag;
if (err != SUN_SUCCESS) { return ARK_SUNSTEPPER_ERR; }
return ARK_SUCCESS;
Expand Down
2 changes: 1 addition & 1 deletion src/arkode/arkode_splittingstep.c
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ static int splittingStep_SequentialMethod(ARKodeMem ark_mem,
* evolving the same partition the last step ended with (essentially a
* FSAL property). Care is needed when a reset occurs, the step direction
* changes, the coefficients change, etc. */
SUNErrCode err = SUNStepper_Reset(stepper, t_start, y);
SUNErrCode err = SUNStepper_Reset(stepper, t_start, y, 0);
if (err != SUN_SUCCESS)
{
SUNLogInfo(ARK_LOGGER, "end-partition",
Expand Down

0 comments on commit e76c24c

Please sign in to comment.