www.mooseframework.org
InitialConditionWarehouse.h
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 #ifndef INITIALCONDITIONWAREHOUSE_H
15 #define INITIALCONDITIONWAREHOUSE_H
16 
18 #include "MooseTypes.h"
19 
20 class InitialCondition;
21 
25 class InitialConditionWarehouse : public MooseObjectWarehouseBase<InitialCondition>
26 {
27 public:
29 
33  void initialSetup(THREAD_ID tid);
34 
38  void addObject(std::shared_ptr<InitialCondition> object, THREAD_ID tid);
39 
44  std::set<std::string> getDependObjects() const;
45 
46 protected:
49  std::vector<std::map<std::string, std::set<BoundaryID>>> _boundary_ics;
50  std::vector<std::map<std::string, std::set<SubdomainID>>> _block_ics;
52 };
53 
54 #endif /* INITIALCONDITIONWAREHOUSE_H */
Warehouse for storing initial conditions.
std::vector< std::map< std::string, std::set< BoundaryID > > > _boundary_ics
InitialConditions are objects that set the initial value of variables.
void initialSetup(THREAD_ID tid)
Initial setup.
std::vector< std::map< std::string, std::set< SubdomainID > > > _block_ics
std::set< std::string > getDependObjects() const
Get a list of dependent UserObjects for this exec type.
A base storage container for MooseObjects.
unsigned int THREAD_ID
Definition: MooseTypes.h:79
void addObject(std::shared_ptr< InitialCondition > object, THREAD_ID tid)
Add object to the warehouse.