LCOV - code coverage report
Current view: top level - src/actions - InitProblemAction.C (source / functions) Hit Total Coverage
Test: idaholab/moose framework: 2bf808 Lines: 8 9 88.9 %
Date: 2025-07-17 01:28:37 Functions: 3 3 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 "InitProblemAction.h"
      11             : #include "FEProblem.h"
      12             : 
      13             : registerMooseAction("MooseApp", InitProblemAction, "init_problem");
      14             : 
      15             : InputParameters
      16       61934 : InitProblemAction::validParams()
      17             : {
      18       61934 :   InputParameters params = Action::validParams();
      19       61934 :   return params;
      20             : }
      21             : 
      22       61934 : InitProblemAction::InitProblemAction(const InputParameters & params) : Action(params) {}
      23             : 
      24             : void
      25       56104 : InitProblemAction::act()
      26             : {
      27       56104 :   if (_problem.get())
      28       56104 :     _problem->init();
      29             :   else
      30           0 :     mooseError("Problem doesn't exist in InitProblemAction!");
      31       56104 : }

Generated by: LCOV version 1.14