https://mooseframework.inl.gov
THMPrintComponentLoopsAction.C
Go to the documentation of this file.
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 
11 #include "THMProblem.h"
12 
13 registerMooseAction("ThermalHydraulicsApp",
15  "THM:print_component_loops");
16 
19 {
21  params.addParam<bool>("print_component_loops", false, "Flag to print component loops");
22  params.addClassDescription("Prints the component loops");
23  return params;
24 }
25 
27  : Action(params)
28 {
29 }
30 
31 void
33 {
34  THMProblem * thm_problem = dynamic_cast<THMProblem *>(_problem.get());
35  if (thm_problem && getParam<bool>("print_component_loops"))
36  thm_problem->printComponentLoops();
37 }
Specialization of FEProblem to run with component subsystem.
Definition: THMProblem.h:18
void addParam(const std::string &name, const std::initializer_list< typename T::value_type > &value, const std::string &doc_string)
void printComponentLoops() const
Prints the component loops.
Definition: Simulation.C:248
static InputParameters validParams()
THMPrintComponentLoopsAction(const InputParameters &params)
registerMooseAction("ThermalHydraulicsApp", THMPrintComponentLoopsAction, "THM:print_component_loops")
void addClassDescription(const std::string &doc_string)
std::shared_ptr< FEProblemBase > & _problem