@@ -1233,17 +1233,6 @@ int mriStep_Init(ARKodeMem ark_mem, int init_type)
1233
1233
}
1234
1234
}
1235
1235
1236
- /* get timestep adaptivity type, and return an error if an
1237
- incompatible type is detected */
1238
- adapt_type = SUNAdaptController_GetType (ark_mem -> hadapt_mem -> hcontroller );
1239
- if ((adapt_type != SUN_ADAPTCONTROLLER_MRI_TOL ) &&
1240
- (adapt_type != SUN_ADAPTCONTROLLER_H ))
1241
- {
1242
- arkProcessError (ark_mem , ARK_ILL_INPUT , __LINE__ , __func__ , __FILE__ ,
1243
- "SUNAdaptController type is unsupported by MRIStep" );
1244
- return (ARK_ILL_INPUT );
1245
- }
1246
-
1247
1236
/*** Perform timestep adaptivity checks and initial setup ***/
1248
1237
1249
1238
if (ark_mem -> fixedstep )
@@ -1259,6 +1248,18 @@ int mriStep_Init(ARKodeMem ark_mem, int init_type)
1259
1248
}
1260
1249
else
1261
1250
{
1251
+
1252
+ /* get timestep adaptivity type, and return an error if an
1253
+ incompatible type is detected */
1254
+ adapt_type = SUNAdaptController_GetType (ark_mem -> hadapt_mem -> hcontroller );
1255
+ if ((adapt_type != SUN_ADAPTCONTROLLER_MRI_TOL ) &&
1256
+ (adapt_type != SUN_ADAPTCONTROLLER_H ))
1257
+ {
1258
+ arkProcessError (ark_mem , ARK_ILL_INPUT , __LINE__ , __func__ , __FILE__ ,
1259
+ "SUNAdaptController type is unsupported by MRIStep" );
1260
+ return (ARK_ILL_INPUT );
1261
+ }
1262
+
1262
1263
/* Controller provides adaptivity (at least at the slow time scale):
1263
1264
- verify that the MRI method includes an embedding, and
1264
1265
- estimate initial slow step size (store in ark_mem->hin) */
0 commit comments