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