Chombo + EB  3.2
FourthOrderOneDInterp.H
Go to the documentation of this file.
1 #ifdef CH_LANG_CC
2 /*
3  * _______ __1
4  * / ___/ / ___ __ _ / / ___
5  * / /__/ _ \/ _ \/ V \/ _ \/ _ \
6  * \___/_//_/\___/_/_/_/_.__/\___/
7  * Please refer to Copyright.txt, in Chombo's root directory.
8  */
9 #endif
10 
11 #ifndef _FOURTHORDERONEDINTERP_H_
12 #define _FOURTHORDERONEDINTERP_H_
13 
14 #include "FArrayBox.H"
15 #include "DisjointBoxLayout.H"
16 #include "LevelData.H"
17 #include "ProblemDomain.H"
18 #include "FourthOrderOneDStencil.H"
19 #include "FourthOrderPatchInterp.H"
20 
21 #include "NamespaceHeader.H"
22 
23 /// Fourth-order interpolation in space
24 
25 /**
26  */
28 {
29 public:
32 
33  void define(const int & a_nComp ,
34  const IntVect & a_changeVecDx ,
35  const int & a_interpDir ,
36  const IntVect & a_coarseGhostVect,
37  const int & a_refRatio ,
38  const Box & a_coarseDomain );
39 
40 
43 
44  void interpToFine(LevelData<FArrayBox> & a_fine ,
45  const LevelData<FArrayBox>& a_coarse,
46  const IntVect & a_growDir);
47 
48 
49 
50  void patchInterp(FArrayBox & a_fineFab ,
51  const FArrayBox& a_coarseFab ,
52  const Box & a_coarseBox );
53  //protected:
54 
55  //level data on the coarse level
57 
58  // intermediate classes
61 
62  // This vector coarsens a_fineLayout to m_layoutCoarsened
63  int m_nComp ;
66  int m_refRatio ;
67  bool m_defined ;
69 
70 
71 
72 private:
73 
74  // Disallowed for all the usual reasons
75  void operator=(const FourthOrderOneDInterp&);
77 };
78 
79 #include "NamespaceFooter.H"
80 #endif
Box m_coarseDomain
Definition: FourthOrderOneDInterp.H:68
Class to manage coarse-to-fine spatial interpolation to all fine cells within a single particular coa...
Definition: FourthOrderOneDStencil.H:24
IntVect m_coarseGhostVect
Definition: FourthOrderOneDInterp.H:56
void interpToFine(LevelData< FArrayBox > &a_fine, const LevelData< FArrayBox > &a_coarse, const IntVect &a_growDir)
FourthOrderPatchInterp & patchInterp()
void define(const int &a_nComp, const IntVect &a_changeVecDx, const int &a_interpDir, const IntVect &a_coarseGhostVect, const int &a_refRatio, const Box &a_coarseDomain)
int m_refRatio
Definition: FourthOrderOneDInterp.H:66
int m_interpDir
Definition: FourthOrderOneDInterp.H:65
FourthOrderPatchInterp m_patchInterp
Definition: FourthOrderOneDInterp.H:59
void operator=(const FourthOrderOneDInterp &)
FourthOrderOneDStencil m_stencil
Definition: FourthOrderOneDInterp.H:60
A Rectangular Domain on an Integer Lattice.
Definition: Box.H:465
bool m_defined
Definition: FourthOrderOneDInterp.H:67
int m_nComp
Definition: FourthOrderOneDInterp.H:63
IntVect m_changeVecDx
Definition: FourthOrderOneDInterp.H:64
An integer Vector in SpaceDim-dimensional space.
Definition: CHArray.H:42
Definition: FArrayBox.H:45
Fourth-order interpolation in space on a single patch.
Definition: FourthOrderPatchInterp.H:24
LevelData< FArrayBox > & coarsenedFineData()
Fourth-order interpolation in space.
Definition: FourthOrderOneDInterp.H:27