@@ -245,11 +245,6 @@ function sync_controllers!(cache1::IControllerCache, cache2::IControllerCache)
245245 return nothing
246246end
247247
248- function sync_controllers! (cache1:: IControllerCache , cache2:: IControllerCache )
249- cache1. dtreject = cache2. dtreject
250- return nothing
251- end
252-
253248# PI step size controller
254249"""
255250 PIController(beta1, beta2)
@@ -457,20 +452,20 @@ Some standard controller parameters suggested in the literature are
457452 [DOI: 10.1145/641876.641877](https://doi.org/10.1145/641876.641877)
458453 - Söderlind, Wang (2006)
459454 Adaptive time-stepping and computational stability
460- [DOI: 10.1016/j.cam.2005.03.008](https://doi.org/10.1016/j.cam.2005.03.008) # controller coefficients
461- - Ranocha, Dalcin, Parsani, Ketcheson (2021) # history of the error estimates
462- Optimized Runge-Kutta Methods with Automatic Step Size Control for # accept a step if the predicted change of the step size
463- Compressible Computational Fluid Dynamics # is bigger than this parameter
455+ [DOI: 10.1016/j.cam.2005.03.008](https://doi.org/10.1016/j.cam.2005.03.008)
456+ - Ranocha, Dalcin, Parsani, Ketcheson (2021)
457+ Optimized Runge-Kutta Methods with Automatic Step Size Control for
458+ Compressible Computational Fluid Dynamics
464459 [arXiv:2104.06836](https://arxiv.org/abs/2104.06836) # limiter of the dt factor (before clipping)
465460"""
466- struct PIDController{QT, Limiter} <: AbstractLegacyController
461+ struct PIDController{QT, Limiter} <: AbstractController
467462 beta:: NTuple{3, QT} # controller coefficients
468463 err:: MVector{3, QT} # history of the error estimates (mutable via indexing)
469464 accept_safety:: QT # accept a step if the predicted change of the step size
470465 # is bigger than this parameter
471466 limiter:: Limiter # limiter of the dt factor (before clipping)
472- qsteady_min:: T
473- qsteady_max:: T
467+ qsteady_min:: QT
468+ qsteady_max:: QT
474469end
475470
476471@inline default_dt_factor_limiter (x) = one (x) + atan (x - one (x))
0 commit comments