LCOV - code coverage report
Current view: top level - include/problems - FEProblem.h (source / functions) Hit Total Coverage
Test: idaholab/moose framework: 2bf808 Lines: 2 4 50.0 %
Date: 2025-07-17 01:28:37 Functions: 1 3 33.3 %
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             : #pragma once
      11             : 
      12             : #include "FEProblemBase.h"
      13             : 
      14             : class NonlinearSystem;
      15             : 
      16             : /**
      17             :  * Specialization of SubProblem for solving nonlinear equations plus auxiliary equations
      18             :  *
      19             :  */
      20             : class FEProblem : public FEProblemBase
      21             : {
      22             : public:
      23             :   static InputParameters validParams();
      24             : 
      25             :   FEProblem(const InputParameters & parameters);
      26             : 
      27           0 :   virtual bool getUseNonlinear() const { return _use_nonlinear; }
      28           0 :   virtual void setUseNonlinear(bool use_nonlinear) { _use_nonlinear = use_nonlinear; }
      29             : 
      30             :   virtual void setInputParametersFEProblem(InputParameters & parameters) override;
      31             : 
      32             :   virtual NonlinearSystem & getNonlinearSystem(const unsigned int nl_sys_num) override;
      33             : 
      34             :   virtual void addLineSearch(const InputParameters & parameters) override;
      35             :   virtual void init() override;
      36             : 
      37             : protected:
      38             :   bool _use_nonlinear;
      39             :   std::vector<std::shared_ptr<NonlinearSystem>> _nl_sys;
      40             : 
      41             : private:
      42             :   using FEProblemBase::_nl;
      43             : };
      44             : 
      45             : using FVProblem = FEProblem;
      46             : 
      47             : inline NonlinearSystem &
      48        1559 : FEProblem::getNonlinearSystem(const unsigned int nl_sys_num)
      49             : {
      50        1559 :   return *_nl_sys[nl_sys_num];
      51             : }

Generated by: LCOV version 1.14