Chombo + EB  3.0
computeNorm.H
Go to the documentation of this file.
1 #ifdef CH_LANG_CC
2 /*
3  * _______ __
4  * / ___/ / ___ __ _ / / ___
5  * / /__/ _ \/ _ \/ V \/ _ \/ _ \
6  * \___/_//_/\___/_/_/_/_.__/\___/
7  * Please refer to Copyright.txt, in Chombo's root directory.
8  */
9 #endif
10 
11 #ifndef _COMPUTENORM_H_
12 #define _COMPUTENORM_H_
13 
14 #include "REAL.H"
15 #include "Vector.H"
16 #include "LevelData.H"
17 #include "FArrayBox.H"
18 #include "Interval.H"
19 #include "FluxBox.H"
20 #include "NamespaceHeader.H"
21 
22 /// Returns the volume-weighted p-norm of phi over all valid regions
24  const Vector<int>& a_nRefFine,
25  const Real a_dxCrse,
26  const Interval a_comps = Interval(0,0),
27  const int a_p = 2,
28  const int a_lBase = 0);
29 
30 /// Returns the volume-weighted p-norm of phi over the valid region
32  const DisjointBoxLayout* a_finerGrids,
33  const int a_nRefFine,
34  const Real a_dx,
35  const Interval a_comps = Interval(0,0),
36  const int a_p = 2);
37 
38 /// Returns the max value of phi over all valid regions
40  const Vector<int>& a_nRefFine,
41  const Interval a_comps = Interval(0,0),
42  const int a_lBase = 0);
43 
44 /// Returns the maximum value of phi over the valid region
46  const DisjointBoxLayout* a_finerGrids,
47  const int a_nRefFine,
48  const Interval a_comps = Interval(0,0));
49 
50 /// Returns the min value of phil over all valid regions
52  const Vector<int>& a_nRefFine,
53  const Interval a_comps = Interval(0,0),
54  const int a_lBase = 0);
55 
56 /// Returns the minimum value of phi over the valid region
58  const DisjointBoxLayout* a_finerGrids,
59  const int a_nRefFine,
60  const Interval a_comps = Interval(0,0));
61 
62 /// Extension of the norm(...) function for FluxBoxes
63 Real norm(const BoxLayoutData<FluxBox>& a_layout,
64  const Interval& a_interval,
65  const int& a_p);
66 #include "NamespaceFooter.H"
67 #endif
Real computeNorm(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_p=2, const int a_lBase=0)
Returns the volume-weighted p-norm of phi over all valid regions.
Real computeMax(const Vector< LevelData< FArrayBox > * > &a_phi, const Vector< int > &a_nRefFine, const Interval a_comps=Interval(0, 0), const int a_lBase=0)
Returns the max value of phi over all valid regions.
one dimensional dynamic array
Definition: Vector.H:52
Structure for passing component ranges in code.
Definition: Interval.H:23
Real norm(const BoxLayoutData< FluxBox > &a_layout, const Interval &a_interval, const int &a_p)
Extension of the norm(...) function for FluxBoxes.
double Real
Definition: REAL.H:33
A BoxLayout that has a concept of disjointedness.
Definition: DisjointBoxLayout.H:31
Real computeMin(const Vector< LevelData< FArrayBox > * > &a_phi, const Vector< int > &a_nRefFine, const Interval a_comps=Interval(0, 0), const int a_lBase=0)
Returns the min value of phil over all valid regions.