Chombo + EB + MF  3.2
Macros | Functions
NodeNorms.H File Reference
#include "LevelData.H"
#include "NodeFArrayBox.H"
#include "Vector.H"
#include "IntVectSet.H"
#include "NamespaceHeader.H"
#include "NamespaceFooter.H"
Include dependency graph for NodeNorms.H:

Go to the source code of this file.

Macros

#define _NODENORMS_H_
 

Functions

Real norm (const NodeFArrayBox &a_nfab, const Real a_dx, const Box &a_subbox, const int a_p, const int a_startComp=0, const int a_numComp=1)
 Computes L^p norm of a subbox of a NodeFArrayBox. More...
 
Real maxnorm (const NodeFArrayBox &a_nfab, const Box &a_subbox, const int a_startComp=0, const int a_numComp=1)
 Computes max norm of a subbox of a NodeFArrayBox. More...
 
Real norm (const BoxLayoutData< NodeFArrayBox > &a_layout, const Real a_dx, const int a_p, const Interval &a_interval, bool a_verbose=false)
 Computes L^p norm of a BoxLayoutData<NodeFArrayBox>. More...
 
Real norm (const BoxLayoutData< NodeFArrayBox > &a_layout, const LevelData< NodeFArrayBox > &a_mask, const ProblemDomain &a_domain, const Real a_dx, const int a_p, const Interval &a_interval, bool a_verbose=false)
 Computes L^p norm of a BoxLayoutData<NodeFArrayBox>. More...
 
Real maxnorm (const BoxLayoutData< NodeFArrayBox > &a_layout, const LevelData< NodeFArrayBox > &a_mask, const ProblemDomain &a_domain, const Interval &a_interval, bool a_verbose=false)
 Computes max norm of a BoxLayoutData<NodeFArrayBox>. More...
 
Real maxnorm (const BoxLayoutData< NodeFArrayBox > &a_layout, const Interval &a_interval, bool a_verbose=false)
 Computes max norm of a BoxLayoutData<NodeFArrayBox>. More...
 
Real norm (const Vector< LevelData< NodeFArrayBox > * > &a_phi, const Vector< ProblemDomain > &a_domain, const Vector< int > &a_nRefFine, const Real a_dxCrse, const Interval &a_comps, const int a_p, const int a_lBase, bool a_verbose=false)
 Computes norm of multilevel array, counting only valid nodes at each level. More...
 
Real norm (const Vector< LevelData< NodeFArrayBox > * > &a_phi, const Vector< ProblemDomain > &a_domain, const Vector< LayoutData< Vector< Box > > * > &a_IVSVext, const Vector< LayoutData< Vector< Box > > * > &a_IVSVintFinerCoarsened, const Vector< DisjointBoxLayout > &a_layoutsFinerCoarsened, const Vector< int > &a_nRefFine, const Real a_dxCrse, const Interval &a_comps, const int a_p, const int a_lBase, bool a_verbose=false)
 Computes norm of multilevel array, counting only valid nodes at each level. More...
 
Real norm (const Vector< LevelData< NodeFArrayBox > * > &a_phi, const Vector< ProblemDomain > &a_domain, const Vector< LayoutData< Vector< IntVectSet > > * > &a_IVSVext, const Vector< LayoutData< Vector< IntVectSet > > * > &a_IVSVintFinerCoarsened, const Vector< DisjointBoxLayout > &a_layoutsFinerCoarsened, const Vector< int > &a_nRefFine, const Real a_dxCrse, const Interval &a_comps, const int a_p, const int a_lBase, bool a_verbose=false)
 Computes norm of multilevel array, counting only valid nodes at each level. More...
 
Real norm (const Vector< LevelData< NodeFArrayBox > * > &a_phi, const Vector< LevelData< NodeFArrayBox > * > &a_mask, const Vector< ProblemDomain > &a_vectPD, const Vector< int > &a_nRefFine, const Real a_dxCrse, const Interval &a_comps, const int a_p, const int a_lBase, bool a_verbose=false)
 Computes norm of multilevel array, counting only valid nodes at each level. More...
 
Real norm (const Vector< LevelData< NodeFArrayBox > * > &a_phi, const Vector< Box > &a_domain, const Vector< int > &a_nRefFine, const Real a_dxCrse, const Interval &a_comps, const int a_p, const int a_lBase, bool a_verbose=false)
 Computes norm of multilevel array, counting only valid nodes at each level. More...
 
Real norm (const LevelData< NodeFArrayBox > &a_phi, const ProblemDomain &a_domain, const DisjointBoxLayout *a_finerGridsPtr, const int a_nRefFine, const Real a_dx, const Interval &a_comps, const int a_p, bool a_verbose=false)
 Computes norm of single-level array, counting only valid nodes. More...
 
Real norm (const LevelData< NodeFArrayBox > &a_phi, const Box &a_domain, const DisjointBoxLayout *a_finerGridsPtr, const int a_nRefFine, const Real a_dx, const Interval &a_comps, const int a_p, bool a_verbose=false)
 Computes norm of single-level array, counting only valid nodes. More...
 
Real norm (const LevelData< NodeFArrayBox > &a_phi, const ProblemDomain &a_domain, const DisjointBoxLayout &a_finerGridsCoarsened, const LayoutData< Vector< IntVectSet > > &a_IVSVext, const LayoutData< Vector< IntVectSet > > &a_IVSVintFinerCoarsened, const int a_nRefFine, const Real a_dx, const Interval &a_comps, const int a_p, bool a_verbose=false)
 Computes norm of single-level array, counting only valid nodes. More...
 
Real norm (const LevelData< NodeFArrayBox > &a_phi, const ProblemDomain &a_domain, const DisjointBoxLayout &a_finerGridsCoarsened, const LayoutData< Vector< Box > > &a_IVSVext, const LayoutData< Vector< Box > > &a_IVSVintFinerCoarsened, const int a_nRefFine, const Real a_dx, const Interval &a_comps, const int a_p, bool a_verbose=false)
 Computes norm of single-level array, counting only valid nodes. More...
 
Real norm (const LevelData< NodeFArrayBox > &a_phi, const Box &a_domain, const DisjointBoxLayout &a_finerGridsCoarsened, const LayoutData< Vector< IntVectSet > > &a_IVSVext, const LayoutData< Vector< IntVectSet > > &a_IVSVintFinerCoarsened, const int a_nRefFine, const Real a_dx, const Interval &a_comps, const int a_p, bool a_verbose=false)
 Computes norm of single-level array, counting only valid nodes. More...
 
Real norm (const LevelData< NodeFArrayBox > &a_phi, const Box &a_domain, const DisjointBoxLayout &a_finerGridsCoarsened, const LayoutData< Vector< Box > > &a_IVSVext, const LayoutData< Vector< Box > > &a_IVSVintFinerCoarsened, const int a_nRefFine, const Real a_dx, const Interval &a_comps, const int a_p, bool a_verbose=false)
 Computes norm of single-level array, counting only valid nodes. More...
 
Real norm (const LevelData< NodeFArrayBox > &a_phi, const ProblemDomain &a_domain, const LayoutData< Vector< IntVectSet > > &a_IVSVext, const Real a_dx, const Interval &a_comps, const int a_p, bool a_verbose=false)
 Computes norm of single-level array, counting only valid nodes, with no finer level. More...
 
Real norm (const LevelData< NodeFArrayBox > &a_phi, const ProblemDomain &a_domain, const LayoutData< Vector< Box > > &a_IVSVext, const Real a_dx, const Interval &a_comps, const int a_p, bool a_verbose=false)
 Computes norm of single-level array, counting only valid nodes, with no finer level. More...
 
Real maxnorm (const Vector< LevelData< NodeFArrayBox > * > &a_phi, const Vector< ProblemDomain > &a_domain, const Vector< int > &a_nRefFine, const Interval &a_comps, const int a_lBase, bool a_verbose=false)
 Computes max norm of multilevel array, counting only valid nodes at each level. More...
 
Real maxnorm (const Vector< LevelData< NodeFArrayBox > * > &a_phi, const Vector< Box > &a_domain, const Vector< int > &a_nRefFine, const Interval &a_comps, const int a_lBase, bool a_verbose=false)
 Computes max norm of multilevel array, counting only valid nodes at each level. More...
 
Real maxnorm (const LevelData< NodeFArrayBox > &a_phi, const ProblemDomain &a_domain, const DisjointBoxLayout *a_finerGridsPtr, const int a_nRefFine, const Interval &a_comps, bool a_verbose=false)
 Computes max norm of single-level array, counting only valid nodes. More...
 
Real maxnorm (const LevelData< NodeFArrayBox > &a_phi, const Box &a_domain, const DisjointBoxLayout *a_finerGridsPtr, const int a_nRefFine, const Interval &a_comps, bool a_verbose=false)
 Computes max norm of single-level array, counting only valid nodes. More...
 
Real maxnorm (const LevelData< NodeFArrayBox > &a_phi, const ProblemDomain &a_domain, const DisjointBoxLayout &a_finerGridsCoarsened, const LayoutData< Vector< IntVectSet > > &a_IVSVext, const LayoutData< Vector< IntVectSet > > &a_IVSVintFinerCoarsened, const int a_nRefFine, const Interval &a_comps, bool a_verbose=false)
 Computes max norm of single-level array, counting only valid nodes. More...
 
Real maxnorm (const LevelData< NodeFArrayBox > &a_phi, const ProblemDomain &a_domain, const DisjointBoxLayout &a_finerGridsCoarsened, const LayoutData< Vector< Box > > &a_IVSVext, const LayoutData< Vector< Box > > &a_IVSVintFinerCoarsened, const int a_nRefFine, const Interval &a_comps, bool a_verbose=false)
 Computes max norm of single-level array, counting only valid nodes. More...
 
Real maxnorm (const LevelData< NodeFArrayBox > &a_phi, const Box &a_domain, const DisjointBoxLayout &a_finerGridsCoarsened, const LayoutData< Vector< IntVectSet > > &a_IVSVext, const LayoutData< Vector< IntVectSet > > &a_IVSVintFinerCoarsened, const int a_nRefFine, const Interval &a_comps, bool a_verbose=false)
 Computes max norm of single-level array, counting only valid nodes. More...
 
Real maxnorm (const LevelData< NodeFArrayBox > &a_phi, const Box &a_domain, const DisjointBoxLayout &a_finerGridsCoarsened, const LayoutData< Vector< Box > > &a_IVSVext, const LayoutData< Vector< Box > > &a_IVSVintFinerCoarsened, const int a_nRefFine, const Interval &a_comps, bool a_verbose=false)
 Computes max norm of single-level array, counting only valid nodes. More...
 
Real maxnorm (const LevelData< NodeFArrayBox > &a_phi, const ProblemDomain &a_domain, const LayoutData< Vector< IntVectSet > > &a_IVSVext, const Interval &a_comps, bool a_verbose=false)
 Computes max norm of single-level array, counting only valid nodes, with no finer level. More...
 
Real maxnorm (const LevelData< NodeFArrayBox > &a_phi, const Box &a_domain, const LayoutData< Vector< Box > > &a_IVSVext, const Interval &a_comps, bool a_verbose=false)
 Computes max norm of single-level array, counting only valid nodes, with no finer level. More...
 

Macro Definition Documentation

◆ _NODENORMS_H_

#define _NODENORMS_H_

Function Documentation

◆ norm() [1/16]

Real norm ( const NodeFArrayBox a_nfab,
const Real  a_dx,
const Box a_subbox,
const int  a_p,
const int  a_startComp = 0,
const int  a_numComp = 1 
)

Computes L^p norm of a subbox of a NodeFArrayBox.

Computes L^p norm of the data in a subbox of a_nfab.

Parameters
a_nfabthe data on which to take the norm
a_dxmesh spacing at this level
a_subboxCELL-centered subbox over which to take norm
a_pnorm to take, or 0 for max norm
a_startCompstarting component
a_numCompnumber of components

◆ maxnorm() [1/13]

Real maxnorm ( const NodeFArrayBox a_nfab,
const Box a_subbox,
const int  a_startComp = 0,
const int  a_numComp = 1 
)

Computes max norm of a subbox of a NodeFArrayBox.

Computes max norm of the data in a subbox of a_nfab.

Parameters
a_nfabthe data on which to take the norm
a_subboxCELL-centered subbox over which to take norm
a_startCompstarting component
a_numCompnumber of components

◆ norm() [2/16]

Real norm ( const BoxLayoutData< NodeFArrayBox > &  a_layout,
const Real  a_dx,
const int  a_p,
const Interval a_interval,
bool  a_verbose = false 
)

Computes L^p norm of a BoxLayoutData<NodeFArrayBox>.

Computes L^p norm of a_layout. Ignores ghost cells for LevelData.

This is an internal function that should NOT normally be called by the user.

Parameters
a_layoutthe data on which to take the norm
a_dxmesh spacing at this level
a_pnorm to take, or 0 for max norm
a_intervalinterval of components to use
a_verboseverbosity, whether to print norms of each box

◆ norm() [3/16]

Real norm ( const BoxLayoutData< NodeFArrayBox > &  a_layout,
const LevelData< NodeFArrayBox > &  a_mask,
const ProblemDomain a_domain,
const Real  a_dx,
const int  a_p,
const Interval a_interval,
bool  a_verbose = false 
)

Computes L^p norm of a BoxLayoutData<NodeFArrayBox>.

Computes L^p norm of a_layout. Ignores ghost cells for LevelData.

This function uses the masks.

Parameters
a_layoutthe data on which to take the norm
a_maskmask for the data
a_domaindomain of this level
a_dxmesh spacing at this level
a_pnorm to take, or 0 for max norm
a_intervalinterval of components to use
a_verboseverbosity, whether to print norms of each box

◆ maxnorm() [2/13]

Real maxnorm ( const BoxLayoutData< NodeFArrayBox > &  a_layout,
const LevelData< NodeFArrayBox > &  a_mask,
const ProblemDomain a_domain,
const Interval a_interval,
bool  a_verbose = false 
)

Computes max norm of a BoxLayoutData<NodeFArrayBox>.

Computes max norm of a_layout. Ignores ghost cells for LevelData.

This function uses the masks.

Parameters
a_layoutthe data on which to take the norm
a_maskmask for the data
a_domaindomain of the data
a_intervalinterval of components to use
a_verboseverbosity, whether to print norms of each box

◆ maxnorm() [3/13]

Real maxnorm ( const BoxLayoutData< NodeFArrayBox > &  a_layout,
const Interval a_interval,
bool  a_verbose = false 
)

Computes max norm of a BoxLayoutData<NodeFArrayBox>.

Computes max norm of a_layout. Ignores ghost cells for LevelData.

This is an internal function that should NOT normally be called by the user.

Parameters
a_layoutthe data on which to take the norm
a_intervalcomponents to use in computing norm
a_verboseverbosity, whether to print norms of each box

◆ norm() [4/16]

Real norm ( const Vector< LevelData< NodeFArrayBox > * > &  a_phi,
const Vector< ProblemDomain > &  a_domain,
const Vector< int > &  a_nRefFine,
const Real  a_dxCrse,
const Interval a_comps,
const int  a_p,
const int  a_lBase,
bool  a_verbose = false 
)

Computes norm of multilevel array, counting only valid nodes at each level.

Computes norm of multilevel array a_phi. Only the valid nodes at each level are counted. The valid nodes at a level are those that are not covered by the interior of any finer level.

Parameters
a_phimultilevel data on which to take the norm
a_domainCELL-centered physical domain on each level
a_nRefFinerefinement ratios between successive levels
a_dxCrsemesh spacing at base level a_lBase
a_compscomponents to use in computing norm
a_pnorm to take, or 0 for max norm
a_lBaseindex of base level to use in Vectors
a_verboseverbosity, whether to print norms of each box

◆ norm() [5/16]

Real norm ( const Vector< LevelData< NodeFArrayBox > * > &  a_phi,
const Vector< ProblemDomain > &  a_domain,
const Vector< LayoutData< Vector< Box > > * > &  a_IVSVext,
const Vector< LayoutData< Vector< Box > > * > &  a_IVSVintFinerCoarsened,
const Vector< DisjointBoxLayout > &  a_layoutsFinerCoarsened,
const Vector< int > &  a_nRefFine,
const Real  a_dxCrse,
const Interval a_comps,
const int  a_p,
const int  a_lBase,
bool  a_verbose = false 
)

Computes norm of multilevel array, counting only valid nodes at each level.

Computes norm of multilevel array a_phi. Only the valid nodes at each level are counted. The valid nodes at a level are those that are not covered by the interior of any finer level.

a_IVSVext and a_IVSVintFinerCoarsened can be found by: exteriorAndInteriorNodes(a_IVSVext, a_IVSVintFinerCoarsened, layouts, a_domain, a_nRefFine); where layouts is Vector<DisjointBoxLayout> on which the data in a_phi live.

Parameters
a_phimultilevel data on which to take the norm
a_domainCELL-centered physical domain on each level
a_IVSVextexterior boundary nodes at all level
a_IVSVintFinerCoarsenedinterior boundary nodes of coarsened finer-level grids at all levels except finest
a_layoutsFinerCoarsenedcoarsened finer-level grids at all levels except finest
a_nRefFinerefinement ratios between successive levels
a_dxCrsemesh spacing at base level a_lBase
a_compscomponents to use in computing norm
a_pnorm to take, or 0 for max norm
a_lBaseindex of base level to use in Vectors
a_verboseverbosity, whether to print norms of each box

◆ norm() [6/16]

Real norm ( const Vector< LevelData< NodeFArrayBox > * > &  a_phi,
const Vector< ProblemDomain > &  a_domain,
const Vector< LayoutData< Vector< IntVectSet > > * > &  a_IVSVext,
const Vector< LayoutData< Vector< IntVectSet > > * > &  a_IVSVintFinerCoarsened,
const Vector< DisjointBoxLayout > &  a_layoutsFinerCoarsened,
const Vector< int > &  a_nRefFine,
const Real  a_dxCrse,
const Interval a_comps,
const int  a_p,
const int  a_lBase,
bool  a_verbose = false 
)

Computes norm of multilevel array, counting only valid nodes at each level.

Computes norm of multilevel array a_phi. Only the valid nodes at each level are counted. The valid nodes at a level are those that are not covered by the interior of any finer level.

a_IVSVext and a_IVSVintFinerCoarsened can be found by: exteriorAndInteriorNodes(a_IVSVext, a_IVSVintFinerCoarsened, layouts, a_domain, a_nRefFine); where layouts is Vector<DisjointBoxLayout> on which the data in a_phi live.

Parameters
a_phimultilevel data on which to take the norm
a_domainCELL-centered physical domain on each level
a_IVSVextexterior boundary nodes at all level
a_IVSVintFinerCoarsenedinterior boundary nodes of coarsened finer-level grids at all levels except finest
a_layoutsFinerCoarsenedcoarsened finer-level grids at all levels except finest
a_nRefFinerefinement ratios between successive levels
a_dxCrsemesh spacing at base level a_lBase
a_compscomponents to use in computing norm
a_pnorm to take, or 0 for max norm
a_lBaseindex of base level to use in Vectors
a_verboseverbosity, whether to print norms of each box

◆ norm() [7/16]

Real norm ( const Vector< LevelData< NodeFArrayBox > * > &  a_phi,
const Vector< LevelData< NodeFArrayBox > * > &  a_mask,
const Vector< ProblemDomain > &  a_vectPD,
const Vector< int > &  a_nRefFine,
const Real  a_dxCrse,
const Interval a_comps,
const int  a_p,
const int  a_lBase,
bool  a_verbose = false 
)

Computes norm of multilevel array, counting only valid nodes at each level.

Computes norm of multilevel array a_phi. Only the valid nodes at each level are counted, with the mask vector. The valid nodes at a level are those that are not covered by the interior of any finer level.

Parameters
a_phimultilevel data on which to take the norm
a_maskmask at each level
a_vectPDdomain at each level
a_nRefFinerefinement ratios between successive levels
a_dxCrsemesh spacing at base level a_lBase
a_compscomponents to use in computing norm
a_pnorm to take, or 0 for max norm
a_lBaseindex of base level to use in Vectors
a_verboseverbosity, whether to print norms of each box

◆ norm() [8/16]

Real norm ( const Vector< LevelData< NodeFArrayBox > * > &  a_phi,
const Vector< Box > &  a_domain,
const Vector< int > &  a_nRefFine,
const Real  a_dxCrse,
const Interval a_comps,
const int  a_p,
const int  a_lBase,
bool  a_verbose = false 
)

Computes norm of multilevel array, counting only valid nodes at each level.

Computes norm of multilevel array a_phi. Only the valid nodes at each level are counted. The valid nodes at a level are those that are not covered by the interior of any finer level.

Parameters
a_phimultilevel data on which to take the norm
a_domainCELL-centered physical domain on each level
a_nRefFinerefinement ratios between successive levels
a_dxCrsemesh spacing at base level a_lBase
a_compscomponents to use in computing norm
a_pnorm to take, or 0 for max norm
a_lBaseindex of base level to use in Vectors
a_verboseverbosity, whether to print norms of each box

◆ norm() [9/16]

Real norm ( const LevelData< NodeFArrayBox > &  a_phi,
const ProblemDomain a_domain,
const DisjointBoxLayout a_finerGridsPtr,
const int  a_nRefFine,
const Real  a_dx,
const Interval a_comps,
const int  a_p,
bool  a_verbose = false 
)

Computes norm of single-level array, counting only valid nodes.

Computes norm of single-level array a_phi. Only the valid nodes at this level are counted. The valid nodes are the interior nodes of this level that are not projections of interior nodes of the finer level, if any.

This function computes exterior boundary nodes, and interior boundary nodes of the coarsened finer level, if any. It is more efficient to precompute these boundary-node objects and call one of the other norm functions below.

Parameters
a_phithe data on which to take the norm
a_domainCELL-centered physical domain on each level
a_finerGridsPtrpointer to CELL-centered grids on the next finer level, or NULL if there is none.
a_nRefFinerefinement ratio to next finer level
a_dxmesh spacing at this level
a_compsinterval of components to use
a_pnorm to take, or 0 for max norm
a_verboseverbosity, whether to print norms of each box

◆ norm() [10/16]

Real norm ( const LevelData< NodeFArrayBox > &  a_phi,
const Box a_domain,
const DisjointBoxLayout a_finerGridsPtr,
const int  a_nRefFine,
const Real  a_dx,
const Interval a_comps,
const int  a_p,
bool  a_verbose = false 
)

Computes norm of single-level array, counting only valid nodes.

Computes norm of single-level array a_phi. Only the valid nodes at this level are counted. The valid nodes are the interior nodes of this level that are not projections of interior nodes of the finer level, if any.

This function computes exterior boundary nodes, and interior boundary nodes of the coarsened finer level, if any. It is more efficient to precompute these boundary-node objects and call one of the other norm functions below.

Parameters
a_phithe data on which to take the norm
a_domainCELL-centered physical domain on each level
a_finerGridsPtrpointer to CELL-centered grids on the next finer level, or NULL if there is none.
a_nRefFinerefinement ratio to next finer level
a_dxmesh spacing at this level
a_compsinterval of components to use
a_pnorm to take, or 0 for max norm
a_verboseverbosity, whether to print norms of each box

◆ norm() [11/16]

Real norm ( const LevelData< NodeFArrayBox > &  a_phi,
const ProblemDomain a_domain,
const DisjointBoxLayout a_finerGridsCoarsened,
const LayoutData< Vector< IntVectSet > > &  a_IVSVext,
const LayoutData< Vector< IntVectSet > > &  a_IVSVintFinerCoarsened,
const int  a_nRefFine,
const Real  a_dx,
const Interval a_comps,
const int  a_p,
bool  a_verbose = false 
)

Computes norm of single-level array, counting only valid nodes.

Computes norm of single-level array a_phi. Only the valid nodes at this level are counted. The valid nodes are the interior nodes of this level that are not projections of interior nodes of the finer level, if any.

The a_IVSVext argument is obtained from the calls:
interiorBoundaryNodes(IVSVint, a_phi.getBoxes(), a_domain);
exteriorBoundaryNodes(a_IVSVext, IVSVint, a_phi.getBoxes();

The a_IVSVintFinerCoarsened argument is obtained from the call:
interiorBoundaryNodes(a_IVSVintFinerCoarsened, a_phi.getBoxes(), a_finerGridsCoarsened, a_domain);

Parameters
a_phithe data on which to take the norm
a_domainCELL-centered physical domain on each level
a_finerGridsCoarsenedCELL-centered grids on the next finer level
a_IVSVextexterior boundary nodes of this level
a_IVSVintFinerCoarsenedinterior boundary nodes of coarsened finer-level grids
a_nRefFinerefinement ratio to next finer level
a_dxmesh spacing at this level
a_compsinterval of components to use
a_pnorm to take, or 0 for max norm
a_verboseverbosity, whether to print norms of each box

◆ norm() [12/16]

Real norm ( const LevelData< NodeFArrayBox > &  a_phi,
const ProblemDomain a_domain,
const DisjointBoxLayout a_finerGridsCoarsened,
const LayoutData< Vector< Box > > &  a_IVSVext,
const LayoutData< Vector< Box > > &  a_IVSVintFinerCoarsened,
const int  a_nRefFine,
const Real  a_dx,
const Interval a_comps,
const int  a_p,
bool  a_verbose = false 
)

Computes norm of single-level array, counting only valid nodes.

Computes norm of single-level array a_phi. Only the valid nodes at this level are counted. The valid nodes are the interior nodes of this level that are not projections of interior nodes of the finer level, if any.

The a_IVSVext argument is obtained from the calls:
interiorBoundaryNodes(IVSVint, a_phi.getBoxes(), a_domain);
exteriorBoundaryNodes(a_IVSVext, IVSVint, a_phi.getBoxes();

The a_IVSVintFinerCoarsened argument is obtained from the call:
interiorBoundaryNodes(a_IVSVintFinerCoarsened, a_phi.getBoxes(), a_finerGridsCoarsened, a_domain);

Parameters
a_phithe data on which to take the norm
a_domainCELL-centered physical domain on each level
a_finerGridsCoarsenedCELL-centered grids on the next finer level
a_IVSVextexterior boundary nodes of this level
a_IVSVintFinerCoarsenedinterior boundary nodes of coarsened finer-level grids
a_nRefFinerefinement ratio to next finer level
a_dxmesh spacing at this level
a_compsinterval of components to use
a_pnorm to take, or 0 for max norm
a_verboseverbosity, whether to print norms of each box

◆ norm() [13/16]

Real norm ( const LevelData< NodeFArrayBox > &  a_phi,
const Box a_domain,
const DisjointBoxLayout a_finerGridsCoarsened,
const LayoutData< Vector< IntVectSet > > &  a_IVSVext,
const LayoutData< Vector< IntVectSet > > &  a_IVSVintFinerCoarsened,
const int  a_nRefFine,
const Real  a_dx,
const Interval a_comps,
const int  a_p,
bool  a_verbose = false 
)

Computes norm of single-level array, counting only valid nodes.

Computes norm of single-level array a_phi. Only the valid nodes at this level are counted. The valid nodes are the interior nodes of this level that are not projections of interior nodes of the finer level, if any.

The a_IVSVext argument is obtained from the calls:
interiorBoundaryNodes(IVSVint, a_phi.getBoxes(), a_domain);
exteriorBoundaryNodes(a_IVSVext, IVSVint, a_phi.getBoxes();

The a_IVSVintFinerCoarsened argument is obtained from the call:
interiorBoundaryNodes(a_IVSVintFinerCoarsened, a_phi.getBoxes(), a_finerGridsCoarsened, a_domain);

Parameters
a_phithe data on which to take the norm
a_domainCELL-centered physical domain on each level
a_finerGridsCoarsenedCELL-centered grids on the next finer level
a_IVSVextexterior boundary nodes of this level
a_IVSVintFinerCoarsenedinterior boundary nodes of coarsened finer-level grids
a_nRefFinerefinement ratio to next finer level
a_dxmesh spacing at this level
a_compsinterval of components to use
a_pnorm to take, or 0 for max norm
a_verboseverbosity, whether to print norms of each box

◆ norm() [14/16]

Real norm ( const LevelData< NodeFArrayBox > &  a_phi,
const Box a_domain,
const DisjointBoxLayout a_finerGridsCoarsened,
const LayoutData< Vector< Box > > &  a_IVSVext,
const LayoutData< Vector< Box > > &  a_IVSVintFinerCoarsened,
const int  a_nRefFine,
const Real  a_dx,
const Interval a_comps,
const int  a_p,
bool  a_verbose = false 
)

Computes norm of single-level array, counting only valid nodes.

Computes norm of single-level array a_phi. Only the valid nodes at this level are counted. The valid nodes are the interior nodes of this level that are not projections of interior nodes of the finer level, if any.

The a_IVSVext argument is obtained from the calls:
interiorBoundaryNodes(IVSVint, a_phi.getBoxes(), a_domain);
exteriorBoundaryNodes(a_IVSVext, IVSVint, a_phi.getBoxes();

The a_IVSVintFinerCoarsened argument is obtained from the call:
interiorBoundaryNodes(a_IVSVintFinerCoarsened, a_phi.getBoxes(), a_finerGridsCoarsened, a_domain);

Parameters
a_phithe data on which to take the norm
a_domainCELL-centered physical domain on each level
a_finerGridsCoarsenedCELL-centered grids on the next finer level
a_IVSVextexterior boundary nodes of this level
a_IVSVintFinerCoarsenedinterior boundary nodes of coarsened finer-level grids
a_nRefFinerefinement ratio to next finer level
a_dxmesh spacing at this level
a_compsinterval of components to use
a_pnorm to take, or 0 for max norm
a_verboseverbosity, whether to print norms of each box

◆ norm() [15/16]

Real norm ( const LevelData< NodeFArrayBox > &  a_phi,
const ProblemDomain a_domain,
const LayoutData< Vector< IntVectSet > > &  a_IVSVext,
const Real  a_dx,
const Interval a_comps,
const int  a_p,
bool  a_verbose = false 
)

Computes norm of single-level array, counting only valid nodes, with no finer level.

Computes norm of single-level array a_phi, where there is no finer level. Only the valid nodes at this level are counted. The valid nodes are the interior nodes of this level.

The a_IVSVext argument is obtained from the calls:
interiorBoundaryNodes(IVSVint, a_phi.getBoxes(), a_domain);
exteriorBoundaryNodes(a_IVSVext, IVSVint, a_phi.getBoxes();

Parameters
a_phithe data on which to take the norm
a_domainCELL-centered physical domain on each level
a_IVSVextexterior boundary nodes of this level
a_dxmesh spacing at this level
a_compsinterval of components to use
a_pnorm to take, or 0 for max norm
a_verboseverbosity, whether to print norms of each box

◆ norm() [16/16]

Real norm ( const LevelData< NodeFArrayBox > &  a_phi,
const ProblemDomain a_domain,
const LayoutData< Vector< Box > > &  a_IVSVext,
const Real  a_dx,
const Interval a_comps,
const int  a_p,
bool  a_verbose = false 
)

Computes norm of single-level array, counting only valid nodes, with no finer level.

Computes norm of single-level array a_phi, where there is no finer level. Only the valid nodes at this level are counted. The valid nodes are the interior nodes of this level.

The a_IVSVext argument is obtained from the calls:
interiorBoundaryNodes(IVSVint, a_phi.getBoxes(), a_domain);
exteriorBoundaryNodes(a_IVSVext, IVSVint, a_phi.getBoxes();

Parameters
a_phithe data on which to take the norm
a_domainCELL-centered physical domain on each level
a_IVSVextexterior boundary nodes of this level
a_dxmesh spacing at this level
a_compsinterval of components to use
a_pnorm to take, or 0 for max norm
a_verboseverbosity, whether to print norms of each box

◆ maxnorm() [4/13]

Real maxnorm ( const Vector< LevelData< NodeFArrayBox > * > &  a_phi,
const Vector< ProblemDomain > &  a_domain,
const Vector< int > &  a_nRefFine,
const Interval a_comps,
const int  a_lBase,
bool  a_verbose = false 
)

Computes max norm of multilevel array, counting only valid nodes at each level.

Computes max norm of multilevel array a_phi. Only the valid nodes at each level are counted. The valid nodes at a level are those that are not covered by the interior of any finer level.

Parameters
a_phimultilevel data on which to take the norm
a_domainCELL-centered physical domain on each level
a_nRefFinerefinement ratios between successive levels
a_compscomponents to use in computing norm
a_lBaseindex of base level to use in Vectors
a_verboseverbosity, whether to print norms of each box

◆ maxnorm() [5/13]

Real maxnorm ( const Vector< LevelData< NodeFArrayBox > * > &  a_phi,
const Vector< Box > &  a_domain,
const Vector< int > &  a_nRefFine,
const Interval a_comps,
const int  a_lBase,
bool  a_verbose = false 
)

Computes max norm of multilevel array, counting only valid nodes at each level.

Computes max norm of multilevel array a_phi. Only the valid nodes at each level are counted. The valid nodes at a level are those that are not covered by the interior of any finer level.

Parameters
a_phimultilevel data on which to take the norm
a_domainCELL-centered physical domain on each level
a_nRefFinerefinement ratios between successive levels
a_compscomponents to use in computing norm
a_lBaseindex of base level to use in Vectors
a_verboseverbosity, whether to print norms of each box

◆ maxnorm() [6/13]

Real maxnorm ( const LevelData< NodeFArrayBox > &  a_phi,
const ProblemDomain a_domain,
const DisjointBoxLayout a_finerGridsPtr,
const int  a_nRefFine,
const Interval a_comps,
bool  a_verbose = false 
)

Computes max norm of single-level array, counting only valid nodes.

Computes max norm of single-level array a_phi. Only the valid nodes at this level are counted. The valid nodes are the interior nodes of this level that are not projections of interior nodes of the finer level, if any.

This function computes exterior boundary nodes, and interior boundary nodes of the coarsened finer level, if any. It is more efficient to precompute these boundary-node objects and call one of the other maxnorm functions below.

Parameters
a_phithe data on which to take the norm
a_domainCELL-centered physical domain on each level
a_finerGridsPtrpointer to CELL-centered grids on the next finer level, or NULL if there is none.
a_nRefFinerefinement ratio to next finer level
a_compsinterval of components to use
a_verboseverbosity, whether to print norms of each box

◆ maxnorm() [7/13]

Real maxnorm ( const LevelData< NodeFArrayBox > &  a_phi,
const Box a_domain,
const DisjointBoxLayout a_finerGridsPtr,
const int  a_nRefFine,
const Interval a_comps,
bool  a_verbose = false 
)

Computes max norm of single-level array, counting only valid nodes.

Computes max norm of single-level array a_phi. Only the valid nodes at this level are counted. The valid nodes are the interior nodes of this level that are not projections of interior nodes of the finer level, if any.

This function computes exterior boundary nodes, and interior boundary nodes of the coarsened finer level, if any. It is more efficient to precompute these boundary-node objects and call one of the other maxnorm functions below.

Parameters
a_phithe data on which to take the norm
a_domainCELL-centered physical domain on each level
a_finerGridsPtrpointer to CELL-centered grids on the next finer level, or NULL if there is none.
a_nRefFinerefinement ratio to next finer level
a_compsinterval of components to use
a_verboseverbosity, whether to print norms of each box

◆ maxnorm() [8/13]

Real maxnorm ( const LevelData< NodeFArrayBox > &  a_phi,
const ProblemDomain a_domain,
const DisjointBoxLayout a_finerGridsCoarsened,
const LayoutData< Vector< IntVectSet > > &  a_IVSVext,
const LayoutData< Vector< IntVectSet > > &  a_IVSVintFinerCoarsened,
const int  a_nRefFine,
const Interval a_comps,
bool  a_verbose = false 
)

Computes max norm of single-level array, counting only valid nodes.

Computes max norm of single-level array a_phi. Only the valid nodes at this level are counted. The valid nodes are the interior nodes of this level that are not projections of interior nodes of the finer level, if any.

The a_IVSVext argument is obtained from the calls:
interiorBoundaryNodes(IVSVint, a_phi.getBoxes(), a_domain);
exteriorBoundaryNodes(a_IVSVext, IVSVint, a_phi.getBoxes();

The a_IVSVintFinerCoarsened argument is obtained from the calls:
interiorBoundaryNodes(a_IVSVintFinerCoarsened, a_phi.getBoxes(), a_finerGridsCoarsened, a_domain);

Parameters
a_phithe data on which to take the norm
a_domainCELL-centered physical domain on each level
a_finerGridsCoarsenedCELL-centered grids on the next finer level
a_IVSVextexterior boundary nodes of this level
a_IVSVintFinerCoarsenedinterior boundary nodes of coarsened finer-level grids
a_nRefFinerefinement ratio to next finer level
a_compsinterval of components to use
a_verboseverbosity, whether to print norms of each box

◆ maxnorm() [9/13]

Real maxnorm ( const LevelData< NodeFArrayBox > &  a_phi,
const ProblemDomain a_domain,
const DisjointBoxLayout a_finerGridsCoarsened,
const LayoutData< Vector< Box > > &  a_IVSVext,
const LayoutData< Vector< Box > > &  a_IVSVintFinerCoarsened,
const int  a_nRefFine,
const Interval a_comps,
bool  a_verbose = false 
)

Computes max norm of single-level array, counting only valid nodes.

Computes max norm of single-level array a_phi. Only the valid nodes at this level are counted. The valid nodes are the interior nodes of this level that are not projections of interior nodes of the finer level, if any.

The a_IVSVext argument is obtained from the calls:
interiorBoundaryNodes(IVSVint, a_phi.getBoxes(), a_domain);
exteriorBoundaryNodes(a_IVSVext, IVSVint, a_phi.getBoxes();

The a_IVSVintFinerCoarsened argument is obtained from the calls:
interiorBoundaryNodes(a_IVSVintFinerCoarsened, a_phi.getBoxes(), a_finerGridsCoarsened, a_domain);

Parameters
a_phithe data on which to take the norm
a_domainCELL-centered physical domain on each level
a_finerGridsCoarsenedCELL-centered grids on the next finer level
a_IVSVextexterior boundary nodes of this level
a_IVSVintFinerCoarsenedinterior boundary nodes of coarsened finer-level grids
a_nRefFinerefinement ratio to next finer level
a_compsinterval of components to use
a_verboseverbosity, whether to print norms of each box

◆ maxnorm() [10/13]

Real maxnorm ( const LevelData< NodeFArrayBox > &  a_phi,
const Box a_domain,
const DisjointBoxLayout a_finerGridsCoarsened,
const LayoutData< Vector< IntVectSet > > &  a_IVSVext,
const LayoutData< Vector< IntVectSet > > &  a_IVSVintFinerCoarsened,
const int  a_nRefFine,
const Interval a_comps,
bool  a_verbose = false 
)

Computes max norm of single-level array, counting only valid nodes.

Computes max norm of single-level array a_phi. Only the valid nodes at this level are counted. The valid nodes are the interior nodes of this level that are not projections of interior nodes of the finer level, if any.

The a_IVSVext argument is obtained from the calls:
interiorBoundaryNodes(IVSVint, a_phi.getBoxes(), a_domain);
exteriorBoundaryNodes(a_IVSVext, IVSVint, a_phi.getBoxes();

The a_IVSVintFinerCoarsened argument is obtained from the calls:
interiorBoundaryNodes(a_IVSVintFinerCoarsened, a_phi.getBoxes(), a_finerGridsCoarsened, a_domain);

Parameters
a_phithe data on which to take the norm
a_domainCELL-centered physical domain on each level
a_finerGridsCoarsenedCELL-centered grids on the next finer level
a_IVSVextexterior boundary nodes of this level
a_IVSVintFinerCoarsenedinterior boundary nodes of coarsened finer-level grids
a_nRefFinerefinement ratio to next finer level
a_compsinterval of components to use
a_verboseverbosity, whether to print norms of each box

◆ maxnorm() [11/13]

Real maxnorm ( const LevelData< NodeFArrayBox > &  a_phi,
const Box a_domain,
const DisjointBoxLayout a_finerGridsCoarsened,
const LayoutData< Vector< Box > > &  a_IVSVext,
const LayoutData< Vector< Box > > &  a_IVSVintFinerCoarsened,
const int  a_nRefFine,
const Interval a_comps,
bool  a_verbose = false 
)

Computes max norm of single-level array, counting only valid nodes.

Computes max norm of single-level array a_phi. Only the valid nodes at this level are counted. The valid nodes are the interior nodes of this level that are not projections of interior nodes of the finer level, if any.

The a_IVSVext argument is obtained from the calls:
interiorBoundaryNodes(IVSVint, a_phi.getBoxes(), a_domain);
exteriorBoundaryNodes(a_IVSVext, IVSVint, a_phi.getBoxes();

The a_IVSVintFinerCoarsened argument is obtained from the calls:
interiorBoundaryNodes(a_IVSVintFinerCoarsened, a_phi.getBoxes(), a_finerGridsCoarsened, a_domain);

Parameters
a_phithe data on which to take the norm
a_domainCELL-centered physical domain on each level
a_finerGridsCoarsenedCELL-centered grids on the next finer level
a_IVSVextexterior boundary nodes of this level
a_IVSVintFinerCoarsenedinterior boundary nodes of coarsened finer-level grids
a_nRefFinerefinement ratio to next finer level
a_compsinterval of components to use
a_verboseverbosity, whether to print norms of each box

◆ maxnorm() [12/13]

Real maxnorm ( const LevelData< NodeFArrayBox > &  a_phi,
const ProblemDomain a_domain,
const LayoutData< Vector< IntVectSet > > &  a_IVSVext,
const Interval a_comps,
bool  a_verbose = false 
)

Computes max norm of single-level array, counting only valid nodes, with no finer level.

Computes max norm of single-level array a_phi, where there is no finer level.

Only the valid nodes at this level are counted. The valid nodes are the interior nodes of this level.

The a_IVSVext argument is obtained from the calls:
interiorBoundaryNodes(IVSVint, a_phi.getBoxes(), a_domain);
exteriorBoundaryNodes(a_IVSVext, IVSVint, a_phi.getBoxes();

Parameters
a_phithe data on which to take the norm
a_domainCELL-centered physical domain on each level
a_IVSVextexterior boundary nodes of this level
a_compsinterval of components to use
a_verboseverbosity, whether to print norms of each box

◆ maxnorm() [13/13]

Real maxnorm ( const LevelData< NodeFArrayBox > &  a_phi,
const Box a_domain,
const LayoutData< Vector< Box > > &  a_IVSVext,
const Interval a_comps,
bool  a_verbose = false 
)

Computes max norm of single-level array, counting only valid nodes, with no finer level.

Computes max norm of single-level array a_phi, where there is no finer level.

Only the valid nodes at this level are counted. The valid nodes are the interior nodes of this level.

The a_IVSVext argument is obtained from the calls:
interiorBoundaryNodes(IVSVint, a_phi.getBoxes(), a_domain);
exteriorBoundaryNodes(a_IVSVext, IVSVint, a_phi.getBoxes();

Parameters
a_phithe data on which to take the norm
a_domainCELL-centered physical domain on each level
a_IVSVextexterior boundary nodes of this level
a_compsinterval of components to use
a_verboseverbosity, whether to print norms of each box