Chombo + EB + MF  3.2
EBFluxFactory.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 _EBFLUXFACTORY_H_
14 #define _EBFLUXFACTORY_H_
15 
16 #include <cmath>
17 #include <cstdlib>
18 #include "Vector.H"
19 #include "EBISLayout.H"
20 #include "EBFluxFAB.H"
21 #include "DataIndex.H"
22 #include "NamespaceHeader.H"
23 
24 /// Factory class to produce BaseEBFluxFABs.
25 /**
26  Factory class to produce BaseEBFluxFABs.
27  This is needed for LevelData construction.
28  */
30  : public DataFactory<EBFluxFAB>
31 {
32 public:
33  /// factory function.
34  /**
35  Creates a new baseebcellfab object
36  and returns a pointer to it. Responsiblitly
37  for calling operator 'delete' on this pointer is passed to the user.
38  */
39  virtual EBFluxFAB* create(const Box& a_box, int a_ncomps,
40  const DataIndex& a_dit) const;
41 
42  ///
43  /**
44  create the factory with an ispace. calls full define function
45  */
46  EBFluxFactory(const EBISLayout& a_ebisl);
47 
48  ///
49  virtual ~EBFluxFactory();
50 
51 private:
53 
54 };
55 
56 #include "NamespaceFooter.H"
57 #endif
Factory class to produce BaseEBFluxFABs.
Definition: EBFluxFactory.H:29
EBFluxFactory(const EBISLayout &a_ebisl)
EBISLayout m_ebisl
Definition: EBFluxFactory.H:52
virtual ~EBFluxFactory()
A EBFaceFAB-like container for edge-centered fluxes.
Definition: EBFluxFAB.H:25
A Rectangular Domain on an Integer Lattice.
Definition: Box.H:469
Definition: DataIndex.H:114
Factory object to data members of a BoxLayoutData container.
Definition: BoxLayoutData.H:30
Definition: EBISLayout.H:39
virtual EBFluxFAB * create(const Box &a_box, int a_ncomps, const DataIndex &a_dit) const
factory function.