48 virtual int order()
override {
return 2; }
52 const dof_id_type & dof,
53 ADReal & ad_u_dotdot)
const override;
54 virtual void solve()
override;
55 virtual void postResidual(NumericVector<Number> & residual)
override;
62 template <
typename T,
typename T2>
71template <
typename T,
typename T2>
DualNumber< Real, DNDerivativeType, true > ADReal
Second-order Runge-Kutta (implicit midpoint) time integration.
virtual int order() override
virtual void computeTimeDerivatives() override
Computes the time derivative and the Jacobian of the time derivative.
static InputParameters validParams()
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 bool overridesSolve() const override
virtual void solve() override
Solves the time step and sets the number of nonlinear and linear iterations.
virtual void postResidual(NumericVector< Number > &residual) override
Callback to the NonLinearTimeIntegratorInterface called immediately after the residuals are computed ...
NumericVector< Number > * _residual_stage1
Buffer to store non-time residual from the first stage.
void computeTimeDerivativeHelper(T &u_dot, const T2 &u_old) const
Helper function that actually does the math for computing the time derivative.
const InputParameters & parameters() const
Get the parameters of the object.
Base class for time integrators.
Real & _dt
The current time step size.