Chombo + EB  3.2
Macros | Functions
computeSum.H File Reference
#include "REAL.H"
#include "Vector.H"
#include "LevelData.H"
#include "FArrayBox.H"
#include "Interval.H"
#include "RealVect.H"
#include "NamespaceHeader.H"
#include "NamespaceFooter.H"
Include dependency graph for computeSum.H:

Go to the source code of this file.

Macros

#define _COMPUTESUM_H_
 

Functions

Real computeSum (const Vector< LevelData< FArrayBox > * > &a_phi, const Vector< int > &a_nRefFine, const Real &a_dxCrse, const Interval &a_comps=Interval(0, 0), const int &a_lBase=0)
 Returns the volume-weighted sum (integral) of phi over all valid regions. More...
 
Real computeSum (Real &a_volume, const Vector< LevelData< FArrayBox > * > &a_phi, const Vector< int > &a_nRefFine, const Real &a_dxCrse, const Interval &a_comps=Interval(0, 0), const int &a_lBase=0)
 Returns the volume-weighted sum (integral) of phi over all valid regions and the volume. More...
 
Real computeSum (const LevelData< FArrayBox > &a_phi, const DisjointBoxLayout *a_finerGrids, const int &a_nRefFine, const Real &a_dx, const Interval &a_comps=Interval(0, 0), const bool a_global=true)
 Returns the volume-weighted sum (integral) of phi over the valid region. More...
 
Real computeSum (Real &a_volume, const LevelData< FArrayBox > &a_phi, const DisjointBoxLayout *a_finerGrids, const int &a_nRefFine, const Real &a_dx, const Interval &a_comps=Interval(0, 0), const bool a_global=true)
 Returns the volume-weighted sum (integral) of phi over the valid region and the volume. More...
 
Real computeSum (const Vector< LevelData< FArrayBox > * > &a_phi, const Vector< int > &a_nRefFine, const RealVect &a_dxCrse, const Interval &a_comps=Interval(0, 0), const int &a_lBase=0)
 Returns the volume-weighted sum (integral) of phi over all valid regions. More...
 
Real computeSum (Real &a_volume, const Vector< LevelData< FArrayBox > * > &a_phi, const Vector< IntVect > &a_nRefFine, const RealVect &a_dxCrse, const Interval &a_comps=Interval(0, 0), const int &a_lBase=0)
 Returns the volume-weighted sum (integral) of phi over all valid regions and the volume. More...
 
Real computeSum (const LevelData< FArrayBox > &a_phi, const DisjointBoxLayout *a_finerGrids, const IntVect &a_nRefFine, const RealVect &a_dx, const Interval &a_comps=Interval(0, 0), const bool a_global=true)
 Returns the volume-weighted sum (integral) of phi over the valid region. More...
 
Real computeSum (Real &a_volume, const LevelData< FArrayBox > &a_phi, const DisjointBoxLayout *a_finerGrids, const IntVect &a_nRefFine, const RealVect &a_dx, const Interval &a_comps=Interval(0, 0), const bool a_global=true)
 Returns the volume-weighted sum (integral) of phi over the valid region and the volume. More...
 

Macro Definition Documentation

◆ _COMPUTESUM_H_

#define _COMPUTESUM_H_

Function Documentation

◆ computeSum() [1/8]

Real computeSum ( const Vector< LevelData< FArrayBox > * > &  a_phi,
const Vector< int > &  a_nRefFine,
const Real a_dxCrse,
const Interval a_comps = Interval(0, 0),
const int &  a_lBase = 0 
)

Returns the volume-weighted sum (integral) of phi over all valid regions.

Referenced by EBArith::getVofLocation().

◆ computeSum() [2/8]

Real computeSum ( Real a_volume,
const Vector< LevelData< FArrayBox > * > &  a_phi,
const Vector< int > &  a_nRefFine,
const Real a_dxCrse,
const Interval a_comps = Interval(0, 0),
const int &  a_lBase = 0 
)

Returns the volume-weighted sum (integral) of phi over all valid regions and the volume.

◆ computeSum() [3/8]

Real computeSum ( const LevelData< FArrayBox > &  a_phi,
const DisjointBoxLayout a_finerGrids,
const int &  a_nRefFine,
const Real a_dx,
const Interval a_comps = Interval(0, 0),
const bool  a_global = true 
)

Returns the volume-weighted sum (integral) of phi over the valid region.

◆ computeSum() [4/8]

Real computeSum ( Real a_volume,
const LevelData< FArrayBox > &  a_phi,
const DisjointBoxLayout a_finerGrids,
const int &  a_nRefFine,
const Real a_dx,
const Interval a_comps = Interval(0, 0),
const bool  a_global = true 
)

Returns the volume-weighted sum (integral) of phi over the valid region and the volume.

◆ computeSum() [5/8]

Real computeSum ( const Vector< LevelData< FArrayBox > * > &  a_phi,
const Vector< int > &  a_nRefFine,
const RealVect a_dxCrse,
const Interval a_comps = Interval(0, 0),
const int &  a_lBase = 0 
)

Returns the volume-weighted sum (integral) of phi over all valid regions.

◆ computeSum() [6/8]

Real computeSum ( Real a_volume,
const Vector< LevelData< FArrayBox > * > &  a_phi,
const Vector< IntVect > &  a_nRefFine,
const RealVect a_dxCrse,
const Interval a_comps = Interval(0, 0),
const int &  a_lBase = 0 
)

Returns the volume-weighted sum (integral) of phi over all valid regions and the volume.

◆ computeSum() [7/8]

Real computeSum ( const LevelData< FArrayBox > &  a_phi,
const DisjointBoxLayout a_finerGrids,
const IntVect a_nRefFine,
const RealVect a_dx,
const Interval a_comps = Interval(0, 0),
const bool  a_global = true 
)

Returns the volume-weighted sum (integral) of phi over the valid region.

◆ computeSum() [8/8]

Real computeSum ( Real a_volume,
const LevelData< FArrayBox > &  a_phi,
const DisjointBoxLayout a_finerGrids,
const IntVect a_nRefFine,
const RealVect a_dx,
const Interval a_comps = Interval(0, 0),
const bool  a_global = true 
)

Returns the volume-weighted sum (integral) of phi over the valid region and the volume.