www.mooseframework.org
AddBoundsVectorsAction.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 // MOOSE includes
16 #include "AddBoundsVectorsAction.h"
17 #include "FEProblem.h"
18 #include "NonlinearSystemBase.h"
19 
20 template <>
23 {
24  return validParams<Action>();
25 }
26 
28 
29 void
31 {
32  _problem->getNonlinearSystemBase().addVector("lower_bound", false, GHOSTED);
33  _problem->getNonlinearSystemBase().addVector("upper_bound", false, GHOSTED);
34 }
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
Base class for actions.
Definition: Action.h:39
AddBoundsVectorsAction(InputParameters params)
InputParameters validParams< AddBoundsVectorsAction >()
std::shared_ptr< FEProblemBase > & _problem
Convenience reference to a problem this action works on.
Definition: Action.h:131
virtual void act() override
InputParameters validParams< Action >()
Definition: Action.C:23