Chombo + EB  3.0
Macros | Functions
computeSum.H File Reference
#include "REAL.H"
#include "Vector.H"
#include "LevelData.H"
#include "FArrayBox.H"
#include "Interval.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...
 

Macro Definition Documentation

◆ _COMPUTESUM_H_

#define _COMPUTESUM_H_

Function Documentation

◆ computeSum() [1/4]

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.

◆ computeSum() [2/4]

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/4]

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/4]

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.