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