Chombo + EB  3.0
BaseEBCellFactoryI.H
Go to the documentation of this file.
1 #ifdef CH_LANG_CC
2 /*
3  * _______ __
4  * / ___/ / ___ __ _ / / ___
5  * / /__/ _ \/ _ \/ V \/ _ \/ _ \
6  * \___/_//_/\___/_/_/_/_.__/\___/
7  * Please refer to Copyright.txt, in Chombo's root directory.
8  */
9 #endif
10 
11 // ANAG, LBNL
12 
13 #ifndef _BASEEBCELLFACTORYI_H_
14 #define _BASEEBCELLFACTORYI_H_
15 #include "NamespaceHeader.H"
16 
17 /***************/
18 /***************/
19 template <class T>
21 {
22 }
23 /***************/
24 /***************/
25 template <class T>
27 {
28  m_ebisl = a_ebisl;
29 }
30 /***************/
31 /***************/
32 template <class T>
34 BaseEBCellFactory<T>::create(const Box& a_box, int a_ncomps,
35  const DataIndex& a_dit) const
36 {
37  return new BaseEBCellFAB<T>(m_ebisl[a_dit], a_box, a_ncomps);
38 }
39 /***************/
40 /***************/
41 
42 #include "NamespaceFooter.H"
43 #endif
virtual BaseEBCellFAB< T > * create(const Box &a_box, int a_ncomps, const DataIndex &a_dit) const
factory function.
Definition: BaseEBCellFactoryI.H:34
virtual ~BaseEBCellFactory()
Definition: BaseEBCellFactoryI.H:20
BaseEBCellFactory()
Definition: BaseEBCellFactory.H:61
Array defined at the VolIndexs of an Box in an EBIS.
Definition: BaseEBCellFAB.H:40
A Rectangular Domain on an Integer Lattice.
Definition: Box.H:465
Definition: DataIndex.H:112
Definition: EBISLayout.H:39