Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
drreynolds committed Sep 12, 2024
1 parent f30ebc8 commit 4269e12
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/arkode/arkode_mristep.c
Original file line number Diff line number Diff line change
Expand Up @@ -1235,6 +1235,9 @@ int mriStep_Init(ARKodeMem ark_mem, int init_type)

/*** Perform timestep adaptivity checks and initial setup ***/

/* get timestep adaptivity type */
adapt_type = SUNAdaptController_GetType(ark_mem->hadapt_mem->hcontroller);

if (ark_mem->fixedstep)
{
/* Non-adaptive controller: user must have supplied initial step
Expand All @@ -1249,9 +1252,7 @@ int mriStep_Init(ARKodeMem ark_mem, int init_type)
else
{

/* get timestep adaptivity type, and return an error if an
incompatible type is detected */
adapt_type = SUNAdaptController_GetType(ark_mem->hadapt_mem->hcontroller);
/* ensure that a compatible adaptivity controller is provided */
if ((adapt_type != SUN_ADAPTCONTROLLER_MRI_TOL) &&
(adapt_type != SUN_ADAPTCONTROLLER_H))
{
Expand Down

0 comments on commit 4269e12

Please sign in to comment.