29 virtual void init()
override;
30 virtual int order()
override {
return 2; }
34 DualReal & ad_u_dotdot)
const override;
42 template <
typename T,
typename T2>
48 template <
typename T,
typename T2>
virtual void postResidual(NumericVector< Number > &residual) override
Callback to the TimeIntegrator called immediately after the residuals are computed in NonlinearSystem...
void computeTimeDerivativeHelper(T &u_dot, const T2 &u_old) const
Helper function that actually does the math for computing the time derivative.
virtual void init() override
Called only before the very first timestep (t_step = 0) Never called again (not even during recover/r...
DualNumber< Real, DNDerivativeType, true > DualReal
virtual void postStep() override
Callback to the TimeIntegrator called at the very end of time step.
virtual int order() override
NumericVector< Number > & _residual_old
void computeADTimeDerivatives(DualReal &ad_u_dot, const dof_id_type &dof, DualReal &ad_u_dotdot) const override
method for computing local automatic differentiation time derivatives
CrankNicolson(const InputParameters ¶meters)
Base class for time integrators.
const InputParameters & parameters() const
Get the parameters of the object.
static InputParameters validParams()
virtual void computeTimeDerivatives() override
Computes the time derivative and the Jacobian of the time derivative.
Crank-Nicolson time integrator.