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 computeAverages(LevelData< CodimBox > &a_coarseData, const LevelData< CodimBox > &a_fineData, const AverageType a_averageType)
Utility function to completely determine averages.
bool m_isDefined
Definition: CoarseAverageCodim.H:86
void average(const LevelData< CodimBox > &a_fineData)
Averages fine-level data to internal coarse representation of fine grid.
Definition: CoarseAverageCodim.H:79
~CoarseAverageCodim()
Destructor.
void averageToCoarse(LevelData< CodimBox > &a_coarseData, const LevelData< CodimBox > &a_fineData)
Averages fine-level data to coarse level.
bool isDefined() const
Has define been called?
Definition: CoarseAverageCodim.H:121
Definition: CoarseAverageCodim.H:27
CoarseAverageCodim()
Default constructor.
void copyTo(LevelData< CodimBox > &a_coarseData)
Obtain averaged results by copying to the destination.
A BoxLayout that has a concept of disjointedness.
Definition: DisjointBoxLayout.H:31
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 averageGridData(CodimBox &a_coarsenedFine, const CodimBox &a_fine, const AverageType a_averageType, const int a_refFactor) const
Averages entire single grid data from fine->coarse.
void averageToCoarseHarmonic(LevelData< CodimBox > &a_coarseData, const LevelData< CodimBox > &a_fineData)
Averages fine-level data to coarse level using harmonic averaging.
An FArrayBox container for storage on the codimensions of a box.
Definition: CodimBox.H:66
int m_nRef
Definition: CoarseAverageCodim.H:88
LevelData< CodimBox > m_coarsenedFineData
Definition: CoarseAverageCodim.H:82
AverageType
Definition: CoarseAverageCodim.H:76
Definition: CoarseAverageCodim.H:78
void averageHarmonic(const LevelData< CodimBox > &a_fineData)
Harmonic averaging of fine data to coarse representation of fine grid.
void sum(const LevelData< CodimBox > &a_fineData, const int a_refFactor=1)
Summation of fine data to internal coarse representation of fine grid.