Chombo + EB + MF  3.2
GrowInBlock.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 _GROWINBLOCK_H_
12 #define _GROWINBLOCK_H_
13 
14 // class BaseTransform is declared in BoxLayout.H
15 #include "BoxLayout.H"
16 #include "LevelGridMetrics.H"
17 
18 #include "NamespaceHeader.H"
19 
20 /// Class that is given a base box in a MultiBlockCoordSys and returns the chunk of its halo to be filled in from a specified source block with a specified offset.
21 class GrowInBlock : public BaseTransform
22 {
23 public:
24 
25  /**
26  \name Constructor, destructor, and defines.
27  */
28  /*@{*/
29 
30  ///
31  /** Constructor.
32  */
34  LevelGridMetrics* a_levelGridMetricsPtr,
35  int a_ghost);
36 
37  /** destructor
38  */
39  virtual ~GrowInBlock();
40 
41  /** Required for BaseTransform.
42  Returns the Box consisting of the input box grown by m_radius,
43  but cut off at physical boundaries.
44  */
45  virtual Box operator() (const Box& a_inputBox);
46 
47 protected:
48 
49  /// width of ghost layer
50  int m_ghost;
51 
53 };
54 
55 #include "NamespaceFooter.H"
56 
57 #endif // include guard
Base class to transform boxes in an existing layout.
Definition: BoxLayout.H:48
Grid metrics on and between levels.
int m_ghost
width of ghost layer
Definition: GrowInBlock.H:50
virtual Box operator()(const Box &a_inputBox)
GrowInBlock(LevelGridMetrics *a_levelGridMetricsPtr, int a_ghost)
Class that is given a base box in a MultiBlockCoordSys and returns the chunk of its halo to be filled...
Definition: GrowInBlock.H:21
LevelGridMetrics * m_levelGridMetricsPtr
Definition: GrowInBlock.H:52
virtual ~GrowInBlock()
Grid metrics for a level.
Definition: LevelGridMetrics.H:223
A Rectangular Domain on an Integer Lattice.
Definition: Box.H:469