www.mooseframework.org
CoupleableMooseVariableDependencyIntermediateInterface.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 
16 
19  bool nodal)
20  : Coupleable(moose_object, nodal),
21  ScalarCoupleable(moose_object),
22  MooseVariableInterface(moose_object, nodal)
23 {
24  for (MooseVariable * coupled_var : getCoupledMooseVars())
25  addMooseVariableDependency(coupled_var);
26 
28 }
Class for stuff related to variables.
Definition: MooseVariable.h:43
const std::vector< MooseVariable * > & getCoupledMooseVars() const
Get the list of coupled variables.
Definition: Coupleable.h:63
void addMooseVariableDependency(MooseVariable *var)
Call this function to add the passed in MooseVariable as a variable that this object depends on...
MooseVariable * mooseVariable()
Get the variable that this object is using.
Every object that can be built by the factory should be derived from this class.
Definition: MooseObject.h:36
Interface for objects that needs coupling capabilities.
Definition: Coupleable.h:35
Interface for objects that need to get values of MooseVariables.
Interface for objects that needs scalar coupling capabilities.