Chombo + EB  3.2
BaseEBFaceFactoryI.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 _BASEEBFACEFACTORYI_H_
14 #define _BASEEBFACEFACTORYI_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  m_idir = a_idir;
30 }
31 /***************/
32 /***************/
33 template <class T>
35 BaseEBFaceFactory<T>::create(const Box& a_box, int a_ncomps,
36  const DataIndex& a_dit) const
37 {
38  return new BaseEBFaceFAB<T>(m_ebisl[a_dit], a_box, m_idir, a_ncomps);
39 }
40 /***************/
41 /***************/
42 
43 #include "NamespaceFooter.H"
44 #endif
Array defined at the Faces of an Box in an EBISBox.
Definition: BaseEBFaceFAB.H:43
virtual ~BaseEBFaceFactory()
Definition: BaseEBFaceFactoryI.H:20
virtual BaseEBFaceFAB< T > * create(const Box &a_box, int a_ncomps, const DataIndex &a_dit) const
factory function.
Definition: BaseEBFaceFactoryI.H:35
BaseEBFaceFactory()
Definition: BaseEBFaceFactory.H:61
A Rectangular Domain on an Integer Lattice.
Definition: Box.H:465
Definition: DataIndex.H:112
Definition: EBISLayout.H:39