LCOV - code coverage report
Current view: top level - src/executioners - Steady.C (source / functions) Hit Total Coverage
Test: idaholab/moose framework: #32971 (54bef8) with base c6cf66 Lines: 19 23 82.6 %
Date: 2026-05-29 20:35:17 Functions: 4 4 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             : // MOOSE includes
      11             : #include "Steady.h"
      12             : #include "FEProblem.h"
      13             : #include "Factory.h"
      14             : #include "MooseApp.h"
      15             : #include "NonlinearSystem.h"
      16             : 
      17             : registerMooseObject("MooseApp", Steady);
      18             : 
      19             : InputParameters
      20       77367 : Steady::validParams()
      21             : {
      22       77367 :   InputParameters params = SteadyBase::validParams();
      23       77367 :   params.addClassDescription("Executioner for steady-state simulations.");
      24       77367 :   params += FEProblemSolve::validParams();
      25       77367 :   return params;
      26           0 : }
      27             : 
      28       29204 : Steady::Steady(const InputParameters & parameters) : SteadyBase(parameters), _feproblem_solve(*this)
      29             : {
      30       29192 :   _fixed_point_solve->setInnerSolve(_feproblem_solve);
      31       29192 : }
      32             : 
      33             : void
      34       28177 : Steady::init()
      35             : {
      36       28177 :   checkIntegrity();
      37       28177 :   _problem.execute(EXEC_PRE_MULTIAPP_SETUP);
      38       28177 :   _problem.initialSetup();
      39       27856 :   _fixed_point_solve->initialSetup();
      40       27853 :   _feproblem_solve.initialSetup();
      41       27850 : }
      42             : 
      43             : void
      44       28177 : Steady::checkIntegrity()
      45             : {
      46             :   // check to make sure that we don't have any time kernels in this simulation (Steady State)
      47       56466 :   for (const auto & system : _feproblem_solve.systemsToSolve())
      48       28289 :     if (system->containsTimeKernel())
      49           0 :       mooseError("You have specified time kernels in your steady-state simulation in system ",
      50           0 :                  system->name(),
      51             :                  " on the following variables: ",
      52           0 :                  Moose::stringify(system->timeKernelVariableNames()));
      53       28177 : }

Generated by: LCOV version 1.14