https://mooseframework.inl.gov
Loading...
Searching...
No Matches
ComputeResidualAndJacobian.C
Go to the documentation of this file.
1//* This file is part of the MOOSE framework
2//* https://mooseframework.inl.gov
3//*
4//* All rights reserved, see COPYRIGHT for full restrictions
5//* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6//*
7//* Licensed under LGPL 2.1, please see LICENSE for details
8//* https://www.gnu.org/licenses/lgpl-2.1.html
9
11#include "FEProblemBase.h"
12
14 : _fe_problem(fe_problem)
15{
16}
17
18void
20 NumericVector<Number> * R,
21 SparseMatrix<Number> * J,
23{
24 mooseAssert(R, "This should be non-null");
25 mooseAssert(J, "This should be non-null");
29}
void residual_and_jacobian(const libMesh::NumericVector< libMesh::Number > &u, libMesh::NumericVector< libMesh::Number > *R, libMesh::SparseMatrix< libMesh::Number > *J, libMesh::NonlinearImplicitSystem &) override
ComputeResidualAndJacobian(FEProblemBase &fe_problem)
Specialization of SubProblem for solving nonlinear equations plus auxiliary equations.
void computeResidualAndJacobian(const NumericVector< libMesh::Number > &soln, NumericVector< libMesh::Number > &residual, libMesh::SparseMatrix< libMesh::Number > &jacobian)
Form a residual and Jacobian with default tags.
void computingNonlinearResid(bool computing_nonlinear_residual) final
Set whether or not the problem is in the process of computing the nonlinear residual.