www.mooseframework.org
CoupleableMooseVariableDependencyIntermediateInterface.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 
11 
14  bool nodal)
15  : Coupleable(moose_object, nodal), ScalarCoupleable(moose_object)
16 {
17  for (MooseVariableFEBase * coupled_var : getCoupledMooseVars())
18  addMooseVariableDependency(coupled_var);
19 }
MooseVariableFEBase
Definition: MooseVariableFEBase.h:27
MooseVariableDependencyInterface::addMooseVariableDependency
void addMooseVariableDependency(MooseVariableFEBase *var)
Call this function to add the passed in MooseVariableFEBase as a variable that this object depends on...
Definition: MooseVariableDependencyInterface.h:36
MooseObject
Every object that can be built by the factory should be derived from this class.
Definition: MooseObject.h:50
ScalarCoupleable
Interface for objects that needs scalar coupling capabilities.
Definition: ScalarCoupleable.h:34
Coupleable
Interface for objects that needs coupling capabilities.
Definition: Coupleable.h:62
CoupleableMooseVariableDependencyIntermediateInterface::CoupleableMooseVariableDependencyIntermediateInterface
CoupleableMooseVariableDependencyIntermediateInterface(const MooseObject *moose_object, bool nodal)
Definition: CoupleableMooseVariableDependencyIntermediateInterface.C:13
Coupleable::getCoupledMooseVars
const std::vector< MooseVariableFEBase * > & getCoupledMooseVars() const
Get the list of all coupled variables.
Definition: Coupleable.h:85
CoupleableMooseVariableDependencyIntermediateInterface.h