24 virtual void reinit()
override;
ADScalarKernel(const InputParameters ¶meters)
std::vector< ADReal > _residuals
Residuals for each order.
bool _jacobian_already_computed
Flag indicating that the Jacobian has already been computed.
Base class for AD scalar kernels.
virtual void computeJacobian() override
Compute this object's contribution to the diagonal Jacobian entries.
DualNumber< Real, DNDerivativeType, true > ADReal
virtual void computeOffDiagJacobianScalar(unsigned int jvar) override
Computes jacobian block with respect to a scalar variable.
void computeADJacobian()
Computes the Jacobian using automatic differentiation.
virtual void computeResidual() override
Compute this object's contribution to the residual.
static InputParameters validParams()
virtual void reinit() override
Reinitialization method called before each call to computeResidual()
const ADVariableValue & _u
The current solution.
virtual ADReal computeQpResidual()=0
Base class shared by AD and non-AD scalar kernels.
const InputParameters & parameters() const
Get the parameters of the object.
virtual void computeOffDiagJacobian(unsigned int jvar) override
Computes this object's contribution to off-diagonal blocks of the system Jacobian matrix...