#include <CoarseAverageFace.H>
This class replaces face-centered data on a coarse level of refinement with the average of the finer-level data which overlays the face. This class is similar to CoarseAverage
Public Member Functions | |
CoarseAverageFace () | |
Default constructor. | |
CoarseAverageFace (const DisjointBoxLayout &a_fineGrids, int a_nComp, int a_nRef) | |
defining constructor | |
~CoarseAverageFace () | |
destructor | |
void | define (const DisjointBoxLayout &a_fineGrids, int a_nComp, int a_nRef) |
defines the object | |
bool | isDefined () const |
void | averageToCoarse (LevelData< FluxBox > &a_coarse_data, const LevelData< FluxBox > &a_fine_data) |
averages fine-level data to coarse level | |
void | averageToCoarseHarmonic (LevelData< FluxBox > &a_coarse_data, const LevelData< FluxBox > &a_fine_data) |
averages fine-level data to coarse level using harmonic averaging | |
Protected Types | |
enum | averageType { arithmetic = 0, harmonic, NUM_AVERAGE_TYPES } |
Protected Member Functions | |
void | computeAverages (LevelData< FluxBox > &a_coarse_data, const LevelData< FluxBox > &a_fine_data, int a_averageType) |
void | averageGridData (FluxBox &a_coarsenedFine, const FluxBox &fine, int a_averageType) const |
averages entire single grid data from fine->crse | |
Protected Attributes | |
bool | m_isDefined |
int | m_nRef |
LevelData< FluxBox > | m_coarsenedFineData |
enum CoarseAverageFace::averageType [protected] |
CoarseAverageFace::CoarseAverageFace | ( | ) |
Default constructor.
CoarseAverageFace::CoarseAverageFace | ( | const DisjointBoxLayout & | a_fineGrids, | |
int | a_nComp, | |||
int | a_nRef | |||
) |
defining constructor
CoarseAverageFace::~CoarseAverageFace | ( | ) |
destructor
void CoarseAverageFace::define | ( | const DisjointBoxLayout & | a_fineGrids, | |
int | a_nComp, | |||
int | a_nRef | |||
) |
defines the object
bool CoarseAverageFace::isDefined | ( | ) | const |
void CoarseAverageFace::averageToCoarse | ( | LevelData< FluxBox > & | a_coarse_data, | |
const LevelData< FluxBox > & | a_fine_data | |||
) |
averages fine-level data to coarse level
void CoarseAverageFace::averageToCoarseHarmonic | ( | LevelData< FluxBox > & | a_coarse_data, | |
const LevelData< FluxBox > & | a_fine_data | |||
) |
averages fine-level data to coarse level using harmonic averaging
void CoarseAverageFace::computeAverages | ( | LevelData< FluxBox > & | a_coarse_data, | |
const LevelData< FluxBox > & | a_fine_data, | |||
int | a_averageType | |||
) | [protected] |
utility function called by both averageToCoarse and averageCoarseHarmonic (to avoid code duplication)
void CoarseAverageFace::averageGridData | ( | FluxBox & | a_coarsenedFine, | |
const FluxBox & | fine, | |||
int | a_averageType | |||
) | const [protected] |
averages entire single grid data from fine->crse
bool CoarseAverageFace::m_isDefined [protected] |
int CoarseAverageFace::m_nRef [protected] |
LevelData<FluxBox> CoarseAverageFace::m_coarsenedFineData [protected] |