Classes | Functions
MooseObject.h File Reference

Go to the source code of this file.


class  MooseObject
 Every object that can be built by the factory should be derived from this class. More...


InputParameters validParams< MooseObject > ()
void callMooseErrorRaw (std::string &msg, MooseApp *app)

Function Documentation

void callMooseErrorRaw ( std::string &  msg,
MooseApp app 

Definition at line 45 of file MooseObject.C.

Referenced by MooseObject::mooseError().

46 {
48  std::string prefix;
49  if (!app->isUltimateMaster())
50  prefix = app->name();
51  moose::internal::mooseErrorRaw(msg, prefix);
52 }
const std::string & name() const
Get the name of the object.
Definition: MooseApp.h:70
void mooseErrorRaw(std::string msg, const std::string prefix="")
Definition: MooseError.C:34
void mooseConsole()
Send current output buffer to Console output objects.
bool isUltimateMaster()
Whether or not this app is the ultimate master app.
Definition: MooseApp.h:476
OutputWarehouse & getOutputWarehouse()
Get the OutputWarehouse objects.
Definition: MooseApp.C:841

Definition at line 22 of file MooseObject.C.

Referenced by validParams< AuxKernel >(), validParams< AuxScalarKernel >(), validParams< BoundaryCondition >(), validParams< Constraint >(), validParams< Control >(), validParams< Damper >(), validParams< DGKernel >(), validParams< DiracKernel >(), validParams< Distribution >(), validParams< Executioner >(), validParams< Function >(), validParams< Indicator >(), validParams< InitialCondition >(), validParams< InterfaceKernel >(), validParams< KernelBase >(), validParams< Marker >(), validParams< Material >(), validParams< MeshModifier >(), validParams< MooseMesh >(), validParams< MoosePartitioner >(), validParams< MoosePreconditioner >(), validParams< MultiApp >(), validParams< NodalKernel >(), validParams< Output >(), validParams< Predictor >(), validParams< Problem >(), validParams< Sampler >(), validParams< ScalarInitialCondition >(), validParams< ScalarKernel >(), validParams< Split >(), validParams< TimeIntegrator >(), validParams< TimeStepper >(), validParams< Transfer >(), and validParams< UserObject >().

23 {
24  InputParameters params;
25  params.addParam<bool>("enable", true, "Set the enabled status of the MooseObject.");
26  params.addParam<std::vector<std::string>>(
27  "control_tags",
28  "Adds user-defined labels for accessing object parameters via control logic.");
29  params.addPrivateParam<std::string>("_object_name"); // the name passed to Factory::create
30  params.addParamNamesToGroup("enable control_tags", "Advanced");
32  return params;
33 }
void addPrivateParam(const std::string &name, const T &value)
These method add a parameter to the InputParameters object which can be retrieved like any other para...
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
void addParam(const std::string &name, const S &value, const std::string &doc_string)
These methods add an option parameter and a documentation string to the InputParameters object...
void addParamNamesToGroup(const std::string &space_delim_names, const std::string group_name)
This method takes a space delimited list of parameter names and adds them to the specified group name...