11 #ifndef _COARSEAVERAGEFACE_H_ 12 #define _COARSEAVERAGEFACE_H_ 17 #include "NamespaceHeader.H" 40 int a_nComp,
int a_nRef);
47 int a_nComp,
int a_nRef);
61 const int a_refFactor = 1);
92 const int a_averageType,
93 const int a_refFactor);
99 const int a_refFactor)
const;
103 #include "NamespaceFooter.H" void averageToCoarse(LevelData< FluxBox > &a_coarse_data, const LevelData< FluxBox > &a_fine_data)
averages fine-level data to coarse level
CoarseAverageFace()
Default constructor.
Definition: CoarseAverageFace.H:32
Definition: CoarseAverageFace.H:31
void average(const LevelData< FluxBox > &a_fineData)
averages fine-level data to internal coarse representation of fine grid
bool m_isDefined
Definition: CoarseAverageFace.H:77
void sum(const LevelData< FluxBox > &a_fineData, const int a_refFactor=1)
sums fine-level data to internal coarse representation of fine grid
averageType
Definition: CoarseAverageFace.H:28
A FArrayBox-like container for face-centered fluxes.
Definition: FluxBox.H:22
int m_nRef
Definition: CoarseAverageFace.H:79
void define(const DisjointBoxLayout &a_fineGrids, int a_nComp, int a_nRef)
defines the object
void copyTo(LevelData< FluxBox > &a_coarseData)
obtain averaged results by copying to the destination
A BoxLayout that has a concept of disjointedness.
Definition: DisjointBoxLayout.H:31
replaces face-centered coarse-level data w/ averaged fine-level data
Definition: CoarseAverageFace.H:24
void computeAverages(LevelData< FluxBox > &a_coarse_data, const LevelData< FluxBox > &a_fine_data, int a_averageType)
utility function to completely determine averages.
~CoarseAverageFace()
destructor
void averageGridData(FluxBox &a_coarsenedFine, const FluxBox &a_fine, int a_averageType, const int a_refFactor) const
averages entire single grid data from fine->crse
Definition: CoarseAverageFace.H:30
bool m_isAveraged
Definition: CoarseAverageFace.H:78
void averageToCoarseHarmonic(LevelData< FluxBox > &a_coarse_data, const LevelData< FluxBox > &a_fine_data)
averages fine-level data to coarse level using harmonic averaging
void averageHarmonic(const LevelData< FluxBox > &a_fineData)
LevelData< FluxBox > m_coarsenedFineData
Definition: CoarseAverageFace.H:82