www.mooseframework.org
GlobalParamsAction.C
Go to the documentation of this file.
1 /****************************************************************/
2 /* DO NOT MODIFY THIS HEADER */
3 /* MOOSE - Multiphysics Object Oriented Simulation Environment */
4 /* */
5 /* (c) 2010 Battelle Energy Alliance, LLC */
6 /* ALL RIGHTS RESERVED */
7 /* */
8 /* Prepared by Battelle Energy Alliance, LLC */
9 /* Under Contract No. DE-AC07-05ID14517 */
10 /* With the U. S. Department of Energy */
11 /* */
12 /* See COPYRIGHT for full restrictions */
13 /****************************************************************/
14 
15 #include "GlobalParamsAction.h"
16 
17 template <>
20 {
22  std::vector<std::string> blocks(1, "");
23 
24  /* GlobalParams should not have children or other standard public Action attributes */
25  params.addPrivateParam<std::vector<std::string>>("active", blocks);
26  params.addPrivateParam<std::vector<std::string>>("inactive", blocks);
27  return params;
28 }
29 
31 
32 void
34 {
35 }
36 
37 void
38 GlobalParamsAction::remove(const std::string & name)
39 {
40  parameters().remove(name);
41 }
GlobalParamsAction(InputParameters params)
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...
InputParameters validParams< GlobalParamsAction >()
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
InputParameters & parameters()
Definition: Action.h:63
Base class for actions.
Definition: Action.h:39
virtual void act() override
const std::string & name() const
The name of the action.
Definition: Action.h:51
InputParameters validParams< Action >()
Definition: Action.C:23
void remove(const std::string &name)
This function is here to remove parameters of a type so that global parameters can potentially use th...