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

Generated by: LCOV version 1.14