Line data Source code
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 : 10 : #include "ComputeFDResidualFunctor.h" 11 : #include "FEProblemBase.h" 12 : 13 56513 : ComputeFDResidualFunctor::ComputeFDResidualFunctor(FEProblemBase & fe_problem) 14 56513 : : _fe_problem(fe_problem) 15 : { 16 56513 : } 17 : 18 : void 19 1945146 : ComputeFDResidualFunctor::residual(const NumericVector<Number> & soln, 20 : NumericVector<Number> & residual, 21 : libMesh::NonlinearImplicitSystem & sys) 22 : { 23 1945146 : _fe_problem.computingNonlinearResid(false); 24 1945146 : _fe_problem.computeResidualSys(sys, soln, residual); 25 1945146 : }