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 "IdentifyLoopsAction.h" 11 : #include "THMProblem.h" 12 : 13 : registerMooseAction("ThermalHydraulicsApp", IdentifyLoopsAction, "THM:identify_loops"); 14 : 15 : InputParameters 16 5416 : IdentifyLoopsAction::validParams() 17 : { 18 5416 : InputParameters params = Action::validParams(); 19 : 20 5416 : return params; 21 : } 22 : 23 5416 : IdentifyLoopsAction::IdentifyLoopsAction(const InputParameters & parameters) : Action(parameters) {} 24 : 25 : void 26 5350 : IdentifyLoopsAction::act() 27 : { 28 5350 : THMProblem * thm_problem = dynamic_cast<THMProblem *>(_problem.get()); 29 5350 : if (thm_problem) 30 3889 : thm_problem->identifyLoops(); 31 5350 : }