22 :
ScalarKernelBase(parameters), _u(_var.adSln()), _jacobian_already_computed(false)
ADScalarKernel(const InputParameters ¶meters)
void accumulateTaggedLocalResidual()
Local residual blocks will be appended by adding the current local kernel residual.
std::vector< ADReal > _residuals
Residuals for each order.
unsigned int number() const
Get variable number coming from libMesh.
bool _jacobian_already_computed
Flag indicating that the Jacobian has already been computed.
virtual void computeJacobian() override
Compute this object's contribution to the diagonal Jacobian entries.
MooseVariableScalar & _var
Scalar variable.
virtual void computeOffDiagJacobianScalar(unsigned int jvar) override
Computes jacobian block with respect to a scalar variable.
void addJacobian(Assembly &assembly, const Residuals &residuals, const Indices &dof_indices, Real scaling_factor)
Add the provided residual derivatives into the Jacobian for the provided dof indices.
void computeADJacobian()
Computes the Jacobian using automatic differentiation.
virtual void computeResidual() override
Compute this object's contribution to the residual.
virtual const std::vector< dof_id_type > & dofIndices() const
Get local DoF indices.
static InputParameters validParams()
Assembly & _assembly
Reference to this Kernel's assembly object.
libMesh::Order order() const
Get the order of this variable Note: Order enum can be implicitly converted to unsigned int...
virtual void reinit() override
Reinitialization method called before each call to computeResidual()
virtual ADReal computeQpResidual()=0
DenseVector< Number > _local_re
Holds local residual entries as they are accumulated by this Kernel.
Base class shared by AD and non-AD scalar kernels.
virtual void computeOffDiagJacobian(unsigned int jvar) override
Computes this object's contribution to off-diagonal blocks of the system Jacobian matrix...
void prepareVectorTag(Assembly &assembly, unsigned int ivar)
Prepare data for computing element residual according to active tags.
void scalingFactor(const std::vector< Real > &factor)
Set the scaling factor for this variable.
static InputParameters validParams()