IntersectionAverageFace Class Reference

#include <LevelGridMetrics.H>

List of all members.

Detailed Description

Average from fine intersections.

The objective of this class is to average down information from A^(l+1) to C^(l) but only on the intersection of A^(l+1) and B^(l+1). This class is designed to support class 'LevelGridMetrics' where A is the snapback flux on the old fine mesh, B is the new mesh, and C (= A^l) is the snapback flux on the old coarse mesh. These are the steps (Cr is coarsen operator):

  1. Average A^(l+1) to D^(l) on boxes of Cr(A^(l+1)). This step is performed at level 'l+1'. D and the coarsened box layout of A are saved.
  2. Now at level 'l', copy to E^(l) on boxes of C^(l). These first two steps are done in the averager
  3. Compute mask for each box of C^(l). The mask is the intersection of Cr(A^(l+1)), Cr(B^(l+1)), and C^(l)
  4. Copy from E^(l) to C^(l) using the mask.

Public Member Functions

 IntersectionAverageFace (const LevelData< FluxBox > &a_A, const int a_nRef)
void copyTo (LevelData< FluxBox > &a_C, const DisjointBoxLayout &a_dblB)
 Copy the average using a mask.

Protected Attributes

const int m_nComp
 Number of components in A (same as C).
const int m_nRef
 Refinement between A & C.
DisjointBoxLayout m_crDblA
 Coarsened layout for A.
CoarseAverageFace m_averager

Private Member Functions

 IntersectionAverageFace (const IntersectionAverageFace &)
IntersectionAverageFaceoperator= (const IntersectionAverageFace &)

Constructor & Destructor Documentation

IntersectionAverageFace::IntersectionAverageFace ( const LevelData< FluxBox > &  a_A,
const int  a_nRef 


IntersectionAverageFace::IntersectionAverageFace ( const IntersectionAverageFace  )  [private]

Member Function Documentation

void IntersectionAverageFace::copyTo ( LevelData< FluxBox > &  a_C,
const DisjointBoxLayout a_dblB 

Copy the average using a mask.

IntersectionAverageFace& IntersectionAverageFace::operator= ( const IntersectionAverageFace  )  [private]

Member Data Documentation

const int IntersectionAverageFace::m_nComp [protected]

Number of components in A (same as C).

const int IntersectionAverageFace::m_nRef [protected]

Refinement between A & C.

Coarsened layout for A.

The averager itself stores the averaged data between averaging and copying

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

Generated on Wed Feb 20 03:27:38 2019 for Chombo + EB + MF by  doxygen 1.5.5