www.mooseframework.org
DisplacedSystem.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 #include "DisplacedSystem.h"
16 #include "DisplacedProblem.h"
17 
19  SystemBase & undisplaced_system,
20  const std::string & name,
21  Moose::VarKindType var_kind)
22  : SystemBase(problem, name, var_kind),
23  _undisplaced_system(undisplaced_system),
24  _sys(problem.es().add_system<TransientExplicitSystem>(name))
25 {
26 }
27 
29 
30 void
32 {
33 }
34 
35 NumericVector<Number> &
36 DisplacedSystem::getVector(const std::string & name)
37 {
38  if (_sys.have_vector(name))
39  return _sys.get_vector(name);
40  else
41  return _undisplaced_system.getVector(name);
42 }
DisplacedSystem(DisplacedProblem &problem, SystemBase &undisplaced_system, const std::string &name, Moose::VarKindType var_kind)
TransientExplicitSystem & _sys
virtual const std::string & name()
Definition: SystemBase.h:453
Base class for a system (of equations)
Definition: SystemBase.h:91
SystemBase & _undisplaced_system
VarKindType
Framework-wide stuff.
Definition: MooseTypes.h:156
virtual ~DisplacedSystem()
virtual NumericVector< Number > & getVector(const std::string &name) override
Get a raw NumericVector.
virtual void init() override
Initialize the system.
virtual NumericVector< Number > & getVector(const std::string &name)
Get a raw NumericVector.
Definition: SystemBase.C:598