Mushy Layer  1.0
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
CoarseAverageEdge Class Reference

replaces edge-centered coarse-level data w/ averaged fine-level data More...

#include <CoarseAverageEdge.H>

Public Member Functions

 CoarseAverageEdge ()
 Default constructor.
 
 CoarseAverageEdge (const DisjointBoxLayout &a_fineGrids, int a_nComp, int a_nRef)
 defining constructor
 
 ~CoarseAverageEdge ()
 destructor
 
void define (const DisjointBoxLayout &a_fineGrids, int a_nComp, int a_nRef)
 defines the object
 
bool isDefined () const
 is object defined?
 
void averageToCoarse (LevelData< FluxBox > &a_coarse_data, const LevelData< FluxBox > &a_fine_data)
 averages fine-level data to coarse level
 

Protected Member Functions

void averageGridData (FluxBox &a_coarsenedFine, const FluxBox &fine) const
 averages entire single grid data from fine->crse
 

Protected Attributes

bool m_isDefined
 is object defined?
 
int m_nRef
 refinement ratio
 
LevelData< FluxBoxm_coarsenedFineData
 work array for coarsening of fine data, same "shape" as fine data
 

Detailed Description

replaces edge-centered coarse-level data w/ averaged fine-level data

This class replaces edge-centered data on a coarse level of refinement with the average of the finer-level data which overlays the edge. This class is similar to CoarseAverage


The documentation for this class was generated from the following files: