https://mooseframework.inl.gov
Loading...
Searching...
No Matches
ComputeResidualFunctor.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{
15}
16
17void
18ComputeResidualFunctor::residual(const NumericVector<Number> & soln,
19 NumericVector<Number> & residual,
21{
22 libmesh_parallel_only(soln.comm());
23
25 {
29 }
30}
ComputeResidualFunctor(FEProblemBase &fe_problem)
void residual(const NumericVector< Number > &soln, NumericVector< Number > &residual, libMesh::NonlinearImplicitSystem &sys) override
Specialization of SubProblem for solving nonlinear equations plus auxiliary equations.
bool getFailNextNonlinearConvergenceCheck() const
Whether it will skip further residual evaluations and fail the next nonlinear convergence check(s)
void computingNonlinearResid(bool computing_nonlinear_residual) final
Set whether or not the problem is in the process of computing the nonlinear residual.
virtual void computeResidualSys(libMesh::NonlinearImplicitSystem &sys, const NumericVector< libMesh::Number > &soln, NumericVector< libMesh::Number > &residual)
This function is called by Libmesh to form a residual.