https://mooseframework.inl.gov
THMDebugAction.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 
10 #include "THMDebugAction.h"
11 #include "THMProblem.h"
12 
13 registerMooseAction("ThermalHydraulicsApp", THMDebugAction, "THM:debug_action");
14 
17 {
19  params.addParam<bool>("check_jacobian", false, "Set to true to check jacobian");
20  params.addClassDescription("Add specific THM debugging option.");
21 
22  return params;
23 }
24 
26 
27 void
29 {
30  THMProblem * thm_problem = dynamic_cast<THMProblem *>(_problem.get());
31  if (thm_problem)
32  thm_problem->setCheckJacobian(getParam<bool>("check_jacobian"));
33 }
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)
THMDebugAction(const InputParameters &params)
virtual void act()
static InputParameters validParams()
void setCheckJacobian(bool state)
Enable Jacobian checking.
Definition: Simulation.h:345
static InputParameters validParams()
void addClassDescription(const std::string &doc_string)
std::shared_ptr< FEProblemBase > & _problem
registerMooseAction("ThermalHydraulicsApp", THMDebugAction, "THM:debug_action")