https://mooseframework.inl.gov
Public Member Functions | Private Attributes | List of all members
ComputeResidualAndJacobian Class Referenceabstract

#include <ComputeResidualAndJacobian.h>

Inheritance diagram for ComputeResidualAndJacobian:
[legend]

Public Member Functions

 ComputeResidualAndJacobian (FEProblemBase &fe_problem)
 
void residual_and_jacobian (const libMesh::NumericVector< libMesh::Number > &u, libMesh::NumericVector< libMesh::Number > *R, libMesh::SparseMatrix< libMesh::Number > *J, libMesh::NonlinearImplicitSystem &) override
 
virtual void residual_and_jacobian (const NumericVector< Number > &X, NumericVector< Number > *R, SparseMatrix< Number > *J, sys_type &S)=0
 

Private Attributes

FEProblemBase_fe_problem
 

Detailed Description

Definition at line 25 of file ComputeResidualAndJacobian.h.

Constructor & Destructor Documentation

◆ ComputeResidualAndJacobian()

ComputeResidualAndJacobian::ComputeResidualAndJacobian ( FEProblemBase fe_problem)

Definition at line 13 of file ComputeResidualAndJacobian.C.

14  : _fe_problem(fe_problem)
15 {
16 }

Member Function Documentation

◆ residual_and_jacobian()

void ComputeResidualAndJacobian::residual_and_jacobian ( const libMesh::NumericVector< libMesh::Number > &  u,
libMesh::NumericVector< libMesh::Number > *  R,
libMesh::SparseMatrix< libMesh::Number > *  J,
libMesh::NonlinearImplicitSystem  
)
override

Definition at line 19 of file ComputeResidualAndJacobian.C.

23 {
24  mooseAssert(R, "This should be non-null");
25  mooseAssert(J, "This should be non-null");
29 }
void computingNonlinearResid(bool computing_nonlinear_residual) final
Set whether or not the problem is in the process of computing the nonlinear residual.
void computeResidualAndJacobian(const NumericVector< libMesh::Number > &soln, NumericVector< libMesh::Number > &residual, libMesh::SparseMatrix< libMesh::Number > &jacobian)
Form a residual and Jacobian with default tags.

Member Data Documentation

◆ _fe_problem

FEProblemBase& ComputeResidualAndJacobian::_fe_problem
private

Definition at line 29 of file ComputeResidualAndJacobian.h.

Referenced by residual_and_jacobian().


The documentation for this class was generated from the following files: