www.mooseframework.org
InitialConditionWarehouse.h
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 
10 #pragma once
11 
13 #include "MooseTypes.h"
14 
16 
20 class InitialConditionWarehouse : public MooseObjectWarehouseBase<InitialConditionBase>
21 {
22 public:
24 
28  void initialSetup(THREAD_ID tid);
29 
33  void addObject(std::shared_ptr<InitialConditionBase> object, THREAD_ID tid, bool recurse = true);
34 
39  std::set<std::string> getDependObjects() const;
40 
41 protected:
44  std::vector<std::map<std::string, std::set<BoundaryID>>> _boundary_ics;
45  std::vector<std::map<std::string, std::set<SubdomainID>>> _block_ics;
47 };
Warehouse for storing initial conditions.
std::vector< std::map< std::string, std::set< BoundaryID > > > _boundary_ics
InitialConditionBase serves as the abstract base class for InitialConditions and VectorInitialConditi...
void initialSetup(THREAD_ID tid)
Initial setup.
std::vector< std::map< std::string, std::set< SubdomainID > > > _block_ics
void addObject(std::shared_ptr< InitialConditionBase > object, THREAD_ID tid, bool recurse=true)
Add object to the warehouse.
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:198