LLNL / sundials

Official development repository for SUNDIALS - a SUite of Nonlinear and DIfferential/ALgebraic equation Solvers. Pull requests are welcome for bug fixes and minor changes.
https://computing.llnl.gov/projects/sundials
BSD 3-Clause "New" or "Revised" License
526 stars 130 forks source link

Feature: Add option to disable interpolation in ARKODE #474

Closed gardner48 closed 6 months ago

gardner48 commented 7 months ago

Add support for disabling interpolated output in ARKODE steppers by passing ARK_INTERP_NONE to ARKodeSetInterpolantType. Disabling interpolation can reduce the memory footprint of an integrator by two or more state vectors (depending on the interpolation type and degree) which can be beneficial when interpolation is not needed e.g., when integrating to a final time without output in between or using an explicit fast time scale integrator with MRIStep.

When interpolation is disabled, rootfinding is not supported, implicit methods must use the trivial predictor, interpolation at stop times cannot be used, and calls to ARKodeEvolve in ARK_NORMAL mode will return at or past the requested output time.