https://mooseframework.inl.gov
Loading...
Searching...
No Matches
GlobalParamsAction.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 "GlobalParamsAction.h"
11
12#include "MooseApp.h"
14
15registerMooseAction("MooseApp", GlobalParamsAction, "set_global_params");
16
19{
21 params.addClassDescription("Action used to aid in the application of parameters defined in the "
22 "GlobalParams input block.");
23 std::vector<std::string> blocks(1, "");
24
25 /* GlobalParams should not have children or other standard public Action attributes */
26 params.addPrivateParam<std::vector<std::string>>("active", blocks);
27 params.addPrivateParam<std::vector<std::string>>("inactive", blocks);
28 return params;
29}
30
32
33void
registerMooseAction("MooseApp", GlobalParamsAction, "set_global_params")
char ** blocks
Base class for actions.
Definition Action.h:38
static InputParameters validParams()
Definition Action.C:26
static InputParameters validParams()
virtual void act() override
Method to add objects to the simulation or perform other setup tasks.
GlobalParamsAction(const InputParameters &params)
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system.
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...
void addClassDescription(const std::string &doc_string)
This method adds a description of the class that will be displayed in the input file syntax dump.