LCOV - code coverage report
Current view: top level - src/systems - ComputeResidualAndJacobian.C (source / functions) Hit Total Coverage
Test: idaholab/moose framework: 2bf808 Lines: 8 8 100.0 %
Date: 2025-07-17 01:28:37 Functions: 2 2 100.0 %
Legend: Lines: hit not hit

          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 "ComputeResidualAndJacobian.h"
      11             : #include "FEProblemBase.h"
      12             : 
      13       56513 : ComputeResidualAndJacobian::ComputeResidualAndJacobian(FEProblemBase & fe_problem)
      14       56513 :   : _fe_problem(fe_problem)
      15             : {
      16       56513 : }
      17             : 
      18             : void
      19        3345 : ComputeResidualAndJacobian::residual_and_jacobian(const NumericVector<Number> & u,
      20             :                                                   NumericVector<Number> * R,
      21             :                                                   SparseMatrix<Number> * J,
      22             :                                                   libMesh::NonlinearImplicitSystem &)
      23             : {
      24             :   mooseAssert(R, "This should be non-null");
      25             :   mooseAssert(J, "This should be non-null");
      26        3345 :   _fe_problem.computingNonlinearResid(true);
      27        3345 :   _fe_problem.computeResidualAndJacobian(u, *R, *J);
      28        3345 :   _fe_problem.computingNonlinearResid(false);
      29        3345 : }

Generated by: LCOV version 1.14