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