LCOV - code coverage report
Current view: top level - src/actions - SetupDampersAction.C (source / functions) Hit Total Coverage
Test: idaholab/moose framework: 909fe5 Lines: 10 10 100.0 %
Date: 2025-08-29 20:01:24 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 "SetupDampersAction.h"
      11             : #include "FEProblem.h"
      12             : #include "ActionWarehouse.h"
      13             : 
      14             : registerMooseAction("MooseApp", SetupDampersAction, "setup_dampers");
      15             : 
      16             : InputParameters
      17       67606 : SetupDampersAction::validParams()
      18             : {
      19       67606 :   InputParameters params = Action::validParams();
      20       67606 :   return params;
      21             : }
      22             : 
      23       67606 : SetupDampersAction::SetupDampersAction(const InputParameters & params) : Action(params) {}
      24             : 
      25             : void
      26       62363 : SetupDampersAction::act()
      27             : {
      28             :   // if we have add_damper action, we will setup dampers ;-)
      29      124726 :   ActionIterator it_beg = _awh.actionBlocksWithActionBegin("add_damper");
      30      124726 :   ActionIterator it_end = _awh.actionBlocksWithActionEnd("add_damper");
      31       62363 :   if (it_beg != it_end)
      32         163 :     _problem->setupDampers();
      33       62363 : }

Generated by: LCOV version 1.14