BISICLES AMR ice sheet model  0.9
FillFromReference.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 //
12 // FillFromReference.H
13 // ============
14 //
15 // function to
16 //
17 
18 #ifndef _FILLFROMREFERENCE_H_
19 #define _FILLFROMREFERENCE_H_
20 
21 #include "LevelData.H"
22 #include "FArrayBox.H"
23 #include "IntVect.H"
24 #include "CoarseAverage.H"
25 #include "RealVect.H"
26 
27 
28 #include "NamespaceHeader.H"
29 
32 
36 void FillFromReference(LevelData<FArrayBox>& a_destData,
37  const FArrayBox& a_srcData,
38  const RealVect& a_destDx,
39  const RealVect& a_srcDx,
40  const IntVect& a_srcGhost,
41  bool a_verbose,
42  CoarseAverage::averageType a_avgType = CoarseAverage::arithmetic);
43 
44 
45 
48 
51 void FillFromReference(LevelData<FArrayBox>& a_destData,
52  const LevelData<FArrayBox>& a_srcData,
53  const RealVect& a_destDx,
54  const RealVect& a_srcDx,
55  bool a_verbose,
56  CoarseAverage::averageType a_avgType = CoarseAverage::arithmetic);
57 
58 
59 // fill a single LevelData wth a flattened AMR hierarchy's worth of data
63 void
64 flattenCellData(LevelData<FArrayBox>& a_destData,
65  const RealVect& a_destDx,
66  Vector<LevelData<FArrayBox>* >& a_srcData,
67  const Vector<RealVect>& a_srcDx,
68  bool a_verbose,
69  CoarseAverage::averageType a_avgType = CoarseAverage::arithmetic);
70 
71 
72 // fill a single LevelData wth a flattened AMR hierarchy's worth of data
77 void
78 flattenCellData(LevelData<FArrayBox>& a_destData,
79  const RealVect& a_destDx,
80  Vector<RefCountedPtr<LevelData<FArrayBox> > >& a_srcData,
81  const Vector<RealVect>& a_srcDx,
82  bool a_verbose,
83  CoarseAverage::averageType a_avgType = CoarseAverage::arithmetic);
84 
85 
86 // fill a single LevelData wth a flattened AMR hierarchy's worth of data
91 void
92 flattenCellDataConst(LevelData<FArrayBox>& a_destData,
93  const RealVect& a_destDx,
94  const Vector<LevelData<FArrayBox>* >& a_srcData,
95  const Vector<RealVect>& a_srcDx,
96  bool a_verbose,
97  CoarseAverage::averageType a_avgType = CoarseAverage::arithmetic);
98 
99 #include "NamespaceFooter.H"
100 
101 #endif
void flattenCellDataConst(LevelData< FArrayBox > &a_destData, const RealVect &a_destDx, const Vector< LevelData< FArrayBox > * > &a_srcData, const Vector< RealVect > &a_srcDx, bool a_verbose, CoarseAverage::averageType a_avgType=CoarseAverage::arithmetic)
Definition: FillFromReference.cpp:451
void flattenCellData(LevelData< FArrayBox > &a_destData, const RealVect &a_destDx, Vector< LevelData< FArrayBox > * > &a_srcData, const Vector< RealVect > &a_srcDx, bool a_verbose, CoarseAverage::averageType a_avgType=CoarseAverage::arithmetic)
Definition: FillFromReference.cpp:345
void FillFromReference(LevelData< FArrayBox > &a_destData, const FArrayBox &a_srcData, const RealVect &a_destDx, const RealVect &a_srcDx, const IntVect &a_srcGhost, bool a_verbose, CoarseAverage::averageType a_avgType=CoarseAverage::arithmetic)
(in a LevelData<FArrayBox>) from a reference FArrayBox
Definition: FillFromReference.cpp:34