www.mooseframework.org
AddBoundsVectorsAction.C
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://www.mooseframework.org
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 // MOOSE includes
11 #include "AddBoundsVectorsAction.h"
12 #include "FEProblem.h"
13 #include "NonlinearSystemBase.h"
14 
15 registerMooseAction("MooseApp", AddBoundsVectorsAction, "add_bounds_vectors");
16 
17 template <>
20 {
21  return validParams<Action>();
22 }
23 
25 
26 void
28 {
29  _problem->getNonlinearSystemBase().addVector("lower_bound", false, GHOSTED);
30  _problem->getNonlinearSystemBase().addVector("upper_bound", false, GHOSTED);
31 }
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
Base class for actions.
Definition: Action.h:35
registerMooseAction("MooseApp", AddBoundsVectorsAction, "add_bounds_vectors")
AddBoundsVectorsAction(InputParameters params)
InputParameters validParams< AddBoundsVectorsAction >()
std::shared_ptr< FEProblemBase > & _problem
Convenience reference to a problem this action works on.
Definition: Action.h:216
virtual void act() override
Method to add objects to the simulation or perform other setup tasks.
InputParameters validParams< Action >()
Definition: Action.C:22