Chombo + EB + MF  3.2
BinFabFactoryI.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 _BINFABFACTORYI_H_
14 #define _BINFABFACTORYI_H_
15 #include "NamespaceHeader.H"
16 
17 template <class T>
19 {
20 }
21 
22 template <class T>
23 void
24 BinFabFactory<T>::define(const RealVect& a_meshSpacing,
25  const RealVect& a_origin)
26 {
27  m_mesh_spacing = a_meshSpacing;
28  m_origin = a_origin;
29 }
30 
31 template <class T>
32 BinFab<T>*
34  int a_numComps,
35  const DataIndex & a_dit) const
36 {
37  // [NOTE: a_ncomps and a_dit are ignored.]
38  return new BinFab<T>(a_box, m_mesh_spacing, m_origin);
39 }
40 
41 #include "NamespaceFooter.H"
42 #endif
void define(const RealVect &a_meshSpacing, const RealVect &a_origin)
Use these parameters for all manufactured BinFab instances.
Definition: BinFabFactoryI.H:24
A Rectangular Domain on an Integer Lattice.
Definition: Box.H:469
A Real vector in SpaceDim-dimensional space.
Definition: RealVect.H:41
Definition: DataIndex.H:114
virtual BinFab< T > * create(const Box &a_box, int a_numComps, const DataIndex &a_dit) const
Factory function.
Definition: BinFabFactoryI.H:33
Base class for particle data on a Box.
Definition: BinFab.H:30
virtual ~BinFabFactory()
Destructor.
Definition: BinFabFactoryI.H:18