Skip to content

Commit

Permalink
Formatting updates
Browse files Browse the repository at this point in the history
  • Loading branch information
drreynolds committed Sep 5, 2024
1 parent ebdec7c commit 7e19b47
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
8 changes: 3 additions & 5 deletions src/arkode/arkode_mristep.c
Original file line number Diff line number Diff line change
Expand Up @@ -2772,9 +2772,8 @@ int mriStep_TakeStepMERK(ARKodeMem ark_mem, sunrealtype* dsmPtr, int* nflagPtr)
/* Evolve fast IVP for this stage:
force reset on first stage in group
potentially get inner dsm on all non-embedding stages */
retval = mriStep_StageERKFast(ark_mem, step_mem, t0, tf,
ark_mem->ycur, ytemp, is == 0,
need_inner_dsm && !embedding);
retval = mriStep_StageERKFast(ark_mem, step_mem, t0, tf, ark_mem->ycur,
ytemp, is == 0, need_inner_dsm && !embedding);
if (retval != ARK_SUCCESS) { *nflagPtr = CONV_FAIL; }

/* Update "initial time" for next stage in group */
Expand Down Expand Up @@ -3301,8 +3300,7 @@ int mriStep_CheckCoupling(ARKodeMem ark_mem)
int mriStep_StageERKFast(ARKodeMem ark_mem, ARKodeMRIStepMem step_mem,
sunrealtype t0, sunrealtype tf, N_Vector ycur,
SUNDIALS_MAYBE_UNUSED N_Vector ytemp,
sunbooleantype force_reset,
sunbooleantype get_inner_dsm)
sunbooleantype force_reset, sunbooleantype get_inner_dsm)
{
int retval; /* reusable return flag */
SUNAdaptController_Type adapt_type; /* timestep adaptivity type */
Expand Down
4 changes: 2 additions & 2 deletions src/arkode/arkode_mristep_controller.c
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@ int SUNAdaptController_EstimateStep_MRIStep(SUNAdaptController C, sunrealtype H,

/* Estimate slow stepsize from MRI controller */
retval = SUNAdaptController_EstimateStepTol(MRICONTROL_C(C), H,
step_mem->inner_control,
P, DSM, step_mem->inner_dsm, Hnew,
step_mem->inner_control, P, DSM,
step_mem->inner_dsm, Hnew,
&(step_mem->inner_control_new));
return retval;
}
Expand Down
2 changes: 1 addition & 1 deletion test/unit_tests/utilities/test_utilities.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@

#include <algorithm>
#include <iostream>
#include <vector>
#include <string>
#include <vector>

// Check function return flag
int check_flag(const int flag, const std::string funcname)
Expand Down

0 comments on commit 7e19b47

Please sign in to comment.