BISICLES AMR ice sheet model  0.9
LevelMappedDerivatives.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 _LEVELMAPPEDDERIVATIVES_H_
12 #define _LEVELMAPPEDDERIVATIVES_H_
13 
14 #include "LevelData.H"
15 #include "FArrayBox.H"
16 #include "FluxBox.H"
17 #include "LevelSigmaCS.H"
18 
19 // for now, include "MappedDerivatives.H for derivComponent
20 //#include "MappedDerivatives.H"
21 
22 #include "NamespaceHeader.H"
23 
42 int inline derivComponent(int derivDir, int componentDir)
44 {return componentDir*SpaceDim + derivDir;}
45 
46 
47 
48 
50 
57 void
58 computeCCDerivatives(LevelData<FArrayBox>& a_ccDeriv,
59  const LevelData<FArrayBox>& a_ccData,
60  const LevelSigmaCS& a_coordSys,
61  const Interval& a_comps,
62  const Interval& a_derivDirections,
63  const IntVect& a_derivGhost = IntVect::Zero,
64  const bool a_maskOneSide = false);
65 
67 void
68 computeFCDerivatives(LevelData<FluxBox>& a_fcDeriv,
69  const LevelData<FArrayBox>& a_ccData,
70  const LevelSigmaCS& a_coordSys,
71  const Interval& a_comps,
72  const Interval& a_derivDirections,
73  const IntVect& a_derivGhost = IntVect::Zero);
74 
75 
76 
78 
98 void
99 computeFCDerivatives(LevelData<FluxBox>& a_fcDeriv,
100  const LevelData<FArrayBox>& a_ccData,
101  const LevelData<FArrayBox>& a_ccDeriv,
102  const LevelSigmaCS& a_coordSys,
103  const Interval& a_comps,
104  const Interval& a_derivDirections,
105  const IntVect& a_ghostVect = IntVect::Zero);
106 
107 
108 #include "NamespaceFooter.H"
109 
110 #endif
void computeFCDerivatives(LevelData< FluxBox > &a_fcDeriv, const LevelData< FArrayBox > &a_ccData, const LevelSigmaCS &a_coordSys, const Interval &a_comps, const Interval &a_derivDirections, const IntVect &a_derivGhost=IntVect::Zero)
compute face-centered derivatives of cell-centered data on all faces
Definition: LevelMappedDerivatives.cpp:106
void computeCCDerivatives(LevelData< FArrayBox > &a_ccDeriv, const LevelData< FArrayBox > &a_ccData, const LevelSigmaCS &a_coordSys, const Interval &a_comps, const Interval &a_derivDirections, const IntVect &a_derivGhost=IntVect::Zero, const bool a_maskOneSide=false)
compute cell-centered derivatives
Definition: LevelMappedDerivatives.cpp:41
Basic Sigma fourth-order coordinate system on an AMR level.
Definition: LevelSigmaCS.H:48
int derivComponent(int derivDir, int componentDir)
convenient component lookup – componentDir*SpaceDim + derivDir
Definition: LevelMappedDerivatives.H:43