LCOV - code coverage report
Current view: top level - src/executioners - Steady.C (source / functions) Hit Total Coverage
Test: idaholab/moose framework: 2bf808 Lines: 17 21 81.0 %
Date: 2025-07-17 01:28:37 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      142907 : Steady::validParams()
      21             : {
      22      142907 :   InputParameters params = SteadyBase::validParams();
      23      142907 :   params.addClassDescription("Executioner for steady-state simulations.");
      24      142907 :   params += FEProblemSolve::validParams();
      25      142907 :   return params;
      26           0 : }
      27             : 
      28       28310 : Steady::Steady(const InputParameters & parameters) : SteadyBase(parameters), _feproblem_solve(*this)
      29             : {
      30       28294 :   _fixed_point_solve->setInnerSolve(_feproblem_solve);
      31       28294 : }
      32             : 
      33             : void
      34       27014 : Steady::init()
      35             : {
      36       27014 :   checkIntegrity();
      37       27014 :   _problem.execute(EXEC_PRE_MULTIAPP_SETUP);
      38       27014 :   _problem.initialSetup();
      39       26657 : }
      40             : 
      41             : void
      42       27014 : Steady::checkIntegrity()
      43             : {
      44             :   // check to make sure that we don't have any time kernels in this simulation (Steady State)
      45       54110 :   for (const auto & system : _feproblem_solve.systemsToSolve())
      46       27096 :     if (system->containsTimeKernel())
      47           0 :       mooseError("You have specified time kernels in your steady-state simulation in system ",
      48           0 :                  system->name(),
      49             :                  " on the following variables: ",
      50           0 :                  Moose::stringify(system->timeKernelVariableNames()));
      51       27014 : }

Generated by: LCOV version 1.14