Chombo + EB + MF  3.2
InterpInt.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 #ifndef _INTERPINT_H_
12 #define _INTERPINT_H_
13 
14 #include <iostream>
15 #include <fstream>
16 #include "REAL.H"
17 #include "Box.H"
18 #include "FArrayBox.H"
19 #include "LevelData.H"
20 #include "IntVectSet.H"
21 #include "ProblemDomain.H"
22 #include "NamespaceHeader.H"
23 
24 /// fills fine LevelData<BaseFab<int> > from a coarse one using piecewise constant interpolation
25 
26 /**
27  */
28 
29 class InterpInt
30 {
31 public:
32  ///
33  /**
34  Default constructor. User must subsequently call define().
35  */
37  {
38  m_isDefined = false;
39  }
40 
41  ///
42  virtual ~InterpInt(){}
43 
44  ///
45  InterpInt(const DisjointBoxLayout& a_gridsFine,
46  const DisjointBoxLayout& a_gridsCoar,
47  int a_ref_ratio,
48  int a_num_comps);
49 
50 
51  void define(const DisjointBoxLayout& a_gridsFine,
52  const DisjointBoxLayout& a_gridsCoar,
53  int a_refRat,
54  int a_nComp);
55 
56 
57  ///
58  void
60  const LevelData<BaseFab<int> >& a_coar,
61  int a_src_comp,
62  int a_dest_comp,
63  int a_num_comp);
64 
65 protected:
66 
68  // refinement ratio
69  int m_refRat;
70  int m_nComp;
71 
76 };
77 
78 #include "NamespaceFooter.H"
79 #endif
bool m_isDefined
Definition: InterpInt.H:67
void define(const DisjointBoxLayout &a_gridsFine, const DisjointBoxLayout &a_gridsCoar, int a_refRat, int a_nComp)
int m_nComp
Definition: InterpInt.H:70
LevelData< BaseFab< int > > m_bufCoFi
Definition: InterpInt.H:75
DisjointBoxLayout m_dblCoar
Definition: InterpInt.H:73
DisjointBoxLayout m_dblFine
Definition: InterpInt.H:74
new code
Definition: BoxLayoutData.H:170
A BoxLayout that has a concept of disjointedness.
Definition: DisjointBoxLayout.H:30
virtual ~InterpInt()
Definition: InterpInt.H:42
int m_refRat
Definition: InterpInt.H:69
fills fine LevelData<BaseFab<int> > from a coarse one using piecewise constant interpolation ...
Definition: InterpInt.H:29
DisjointBoxLayout m_dblCoFi
Definition: InterpInt.H:72
InterpInt()
Definition: InterpInt.H:36
void fillFineFromCoarPWConst(LevelData< BaseFab< int > > &a_fine, const LevelData< BaseFab< int > > &a_coar, int a_src_comp, int a_dest_comp, int a_num_comp)