Closed drreynolds closed 2 months ago
Other than the minor suggestion to remove an erroneous new line, do
arkPrintAdaptMem
andarkAdapt
also need checks for aNULL
controller?
The NULL
check was indeed necessary in arkPrintAdaptMem
. I added it to arkAdapt
as well just in case, but since any non-adaptive stepper (who leaves a NULL
-valued SUNAdaptController) must also set ark_mem->fixedstep
to SUNTRUE
, that check should be redundant.
Updated stepper
SetDefaults
routines to deallocate pre-existing structures before nullifying, and moved initial creation of theSUNAdaptController
into stepperSetDefaults
routines instead ofarkCreate
. This allows non-adaptive steppers to leave the SUNAdaptController object unallocated.