LCOV - code coverage report
Current view: top level - src/actions - THMInitComponentsAction.C (source / functions) Hit Total Coverage
Test: idaholab/moose thermal_hydraulics: #31039 (75bfb3) with base bb0a08 Lines: 11 11 100.0 %
Date: 2025-11-03 14:57:48 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 "THMInitComponentsAction.h"
      11             : #include "THMProblem.h"
      12             : 
      13             : registerMooseAction("ThermalHydraulicsApp", THMInitComponentsAction, "THM:init_components");
      14             : 
      15             : InputParameters
      16        5438 : THMInitComponentsAction::validParams()
      17             : {
      18        5438 :   InputParameters params = Action::validParams();
      19             : 
      20        5438 :   return params;
      21             : }
      22             : 
      23        5438 : THMInitComponentsAction::THMInitComponentsAction(const InputParameters & parameters)
      24        5438 :   : Action(parameters)
      25             : {
      26        5438 : }
      27             : 
      28             : void
      29        5374 : THMInitComponentsAction::act()
      30             : {
      31        5374 :   THMProblem * thm_problem = dynamic_cast<THMProblem *>(_problem.get());
      32        5374 :   if (thm_problem)
      33        3913 :     thm_problem->initComponents();
      34        5372 : }

Generated by: LCOV version 1.14