Skip to content

Commit

Permalink
Renamed mriStepInnerStepper_GetError and mriStepInnerStepper_ResetErr…
Browse files Browse the repository at this point in the history
…or to mriStepInnerStepper_GetAccumulatedError and mriStepInnerStepper_ResetAccumulatedError
  • Loading branch information
drreynolds committed Oct 25, 2024
1 parent 676535a commit b01b640
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
16 changes: 8 additions & 8 deletions src/arkode/arkode_mristep.c
Original file line number Diff line number Diff line change
Expand Up @@ -1708,7 +1708,7 @@ int mriStep_TakeStepMRIGARK(ARKodeMem ark_mem, sunrealtype* dsmPtr, int* nflagPt
{
need_inner_dsm = SUNTRUE;
step_mem->inner_dsm = ZERO;
retval = mriStepInnerStepper_ResetError(step_mem->stepper);
retval = mriStepInnerStepper_ResetAccumulatedError(step_mem->stepper);
if (retval != ARK_SUCCESS)
{
arkProcessError(ark_mem, ARK_INNERSTEP_FAIL, __LINE__, __func__, __FILE__,
Expand Down Expand Up @@ -2168,7 +2168,7 @@ int mriStep_TakeStepMRISR(ARKodeMem ark_mem, sunrealtype* dsmPtr, int* nflagPtr)
{
need_inner_dsm = SUNTRUE;
step_mem->inner_dsm = ZERO;
retval = mriStepInnerStepper_ResetError(step_mem->stepper);
retval = mriStepInnerStepper_ResetAccumulatedError(step_mem->stepper);
if (retval != ARK_SUCCESS)
{
arkProcessError(ark_mem, ARK_INNERSTEP_FAIL, __LINE__, __func__, __FILE__,
Expand Down Expand Up @@ -2634,7 +2634,7 @@ int mriStep_TakeStepMERK(ARKodeMem ark_mem, sunrealtype* dsmPtr, int* nflagPtr)
{
need_inner_dsm = SUNTRUE;
step_mem->inner_dsm = ZERO;
retval = mriStepInnerStepper_ResetError(step_mem->stepper);
retval = mriStepInnerStepper_ResetAccumulatedError(step_mem->stepper);
if (retval != ARK_SUCCESS)
{
arkProcessError(ark_mem, ARK_INNERSTEP_FAIL, __LINE__, __func__, __FILE__,
Expand Down Expand Up @@ -3348,8 +3348,8 @@ int mriStep_StageERKFast(ARKodeMem ark_mem, ARKodeMRIStepMem step_mem,
/* if the fast integrator uses adaptive steps, retrieve the error estimate */
if (adapt_type == SUN_ADAPTCONTROLLER_MRI_H_TOL)
{
retval = mriStepInnerStepper_GetError(step_mem->stepper,
&(step_mem->inner_dsm));
retval = mriStepInnerStepper_GetAccumulatedError(step_mem->stepper,
&(step_mem->inner_dsm));
if (retval != ARK_SUCCESS)
{
arkProcessError(ark_mem, ARK_INNERSTEP_FAIL, __LINE__, __func__,
Expand Down Expand Up @@ -4436,8 +4436,8 @@ int mriStepInnerStepper_Reset(MRIStepInnerStepper stepper, sunrealtype tR,
}

/* Gets the inner (fast) stepper accumulated error */
int mriStepInnerStepper_GetError(MRIStepInnerStepper stepper,
sunrealtype* accum_error)
int mriStepInnerStepper_GetAccumulatedError(MRIStepInnerStepper stepper,
sunrealtype* accum_error)
{
if (stepper == NULL) { return ARK_ILL_INPUT; }
if (stepper->ops == NULL) { return ARK_ILL_INPUT; }
Expand All @@ -4451,7 +4451,7 @@ int mriStepInnerStepper_GetError(MRIStepInnerStepper stepper,
}

/* Resets the inner (fast) stepper accumulated error */
int mriStepInnerStepper_ResetError(MRIStepInnerStepper stepper)
int mriStepInnerStepper_ResetAccumulatedError(MRIStepInnerStepper stepper)
{
if (stepper == NULL) { return ARK_ILL_INPUT; }
if (stepper->ops == NULL) { return ARK_ILL_INPUT; }
Expand Down
6 changes: 3 additions & 3 deletions src/arkode/arkode_mristep_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -314,9 +314,9 @@ int mriStepInnerStepper_FullRhs(MRIStepInnerStepper stepper, sunrealtype t,
N_Vector y, N_Vector f, int mode);
int mriStepInnerStepper_Reset(MRIStepInnerStepper stepper, sunrealtype tR,
N_Vector yR);
int mriStepInnerStepper_GetError(MRIStepInnerStepper stepper,
sunrealtype* accum_error);
int mriStepInnerStepper_ResetError(MRIStepInnerStepper stepper);
int mriStepInnerStepper_GetAccumulatedError(MRIStepInnerStepper stepper,
sunrealtype* accum_error);
int mriStepInnerStepper_ResetAccumulatedError(MRIStepInnerStepper stepper);
int mriStepInnerStepper_SetRTol(MRIStepInnerStepper stepper, sunrealtype rtol);
int mriStepInnerStepper_AllocVecs(MRIStepInnerStepper stepper, int count,
N_Vector tmpl);
Expand Down

0 comments on commit b01b640

Please sign in to comment.