www.mooseframework.org
AddSlaveFluxVectorAction.C
Go to the documentation of this file.
1 /****************************************************************/
2 /* MOOSE - Multiphysics Object Oriented Simulation Environment */
3 /* */
4 /* All contents are licensed under LGPL V2.1 */
5 /* See LICENSE for full restrictions */
6 /****************************************************************/
7 
9 #include "Parser.h"
10 #include "FEProblem.h"
11 #include "NonlinearSystem.h"
12 
13 template <>
14 InputParameters
16 {
17  return validParams<Action>();
18 }
19 
20 AddSlaveFluxVectorAction::AddSlaveFluxVectorAction(const InputParameters & params) : Action(params)
21 {
22 }
23 
24 void
26 {
27  _problem->getNonlinearSystemBase().addVector("slave_flux", false, GHOSTED);
28  _problem->getNonlinearSystemBase().zeroVectorForResidual("slave_flux");
29 }
InputParameters validParams< AddSlaveFluxVectorAction >()
AddSlaveFluxVectorAction(const InputParameters &params)