11 #ifndef _COARSEAVERAGECODIM_H_ 12 #define _COARSEAVERAGECODIM_H_ 16 #include "NamespaceHeader.H" 61 const int a_refFactor = 1);
99 const int a_refFactor);
105 const int a_refFactor)
const;
126 #include "NamespaceFooter.H" void average(const LevelData< CodimBox< FArrayBox > > &a_fineData)
Averages fine-level data to internal coarse representation of fine grid.
bool m_isDefined
Definition: CoarseAverageCodim.H:86
Definition: CoarseAverageCodim.H:79
void averageToCoarseHarmonic(LevelData< CodimBox< FArrayBox > > &a_coarseData, const LevelData< CodimBox< FArrayBox > > &a_fineData)
Averages fine-level data to coarse level using harmonic averaging.
void averageToCoarse(LevelData< CodimBox< FArrayBox > > &a_coarseData, const LevelData< CodimBox< FArrayBox > > &a_fineData)
Averages fine-level data to coarse level.
~CoarseAverageCodim()
Destructor.
bool isDefined() const
Has define been called?
Definition: CoarseAverageCodim.H:121
void averageHarmonic(const LevelData< CodimBox< FArrayBox > > &a_fineData)
Harmonic averaging of fine data to coarse representation of fine grid.
Definition: CoarseAverageCodim.H:27
new code
Definition: BoxLayoutData.H:170
CoarseAverageCodim()
Default constructor.
void copyTo(LevelData< CodimBox< FArrayBox > > &a_coarseData)
Obtain averaged results by copying to the destination.
A BoxLayout that has a concept of disjointedness.
Definition: DisjointBoxLayout.H:30
void define(const DisjointBoxLayout &a_fineGrids, const int a_codim, const int a_nComp, const int a_nRef)
Defines the object.
bool m_isAveraged
Definition: CoarseAverageCodim.H:87
void sum(const LevelData< CodimBox< FArrayBox > > &a_fineData, const int a_refFactor=1)
Summation of fine data to internal coarse representation of fine grid.
An FArrayBox container for storage on the codimensions of a box.
Definition: CodimBox.H:65
int m_nRef
Definition: CoarseAverageCodim.H:88
void averageGridData(CodimBox< FArrayBox > &a_coarsenedFine, const CodimBox< FArrayBox > &a_fine, const AverageType a_averageType, const int a_refFactor) const
Averages entire single grid data from fine->coarse.
LevelData< CodimBox< FArrayBox > > m_coarsenedFineData
Definition: CoarseAverageCodim.H:82
void computeAverages(LevelData< CodimBox< FArrayBox > > &a_coarseData, const LevelData< CodimBox< FArrayBox > > &a_fineData, const AverageType a_averageType)
Utility function to completely determine averages.
AverageType
Definition: CoarseAverageCodim.H:76
Definition: CoarseAverageCodim.H:78