Overture  Version 25
BoundaryAdjustment.h
Go to the documentation of this file.
1 #ifndef BOUNDARY_ADJUSTMENT_H
2 #define BOUNDARY_ADJUSTMENT_H
3 
4 // The BoundaryAdjustment object stores the information needed to
5 // adjust the boundaries of a grid with respect to a second grid.
6 // This is basically a stupid container class. The grid generator knows
7 // how to fill in the values into the data members of this class.
8 
9 #include "GenericDataBase.h"
10 #include "OvertureTypes.h"
11 
12 class
14 {
15  public:
17  {
19  share=1,
22  };
23 
24 
27 
30 
31  int reference( const BoundaryAdjustment& x);
32  real sizeOf(FILE *file = NULL ) const;
33 
34  int create();
35  int destroy();
36 
38  RealArray & acrossGrid(){ assert(ag!=NULL); return *ag;}
40  IntegerArray & sidesShare(){ assert(ss!=NULL); return *ss;}
41 
42  // Are there any shared sides:
45 
46  // is a face shared with (side,axis) of the other grid:
47  SidesShareEnum sidesShare(int side, int axis) const;
48 
49 
50  // return true if the grid functions and arrays have been built.
51  bool wasCreated() const { return ba!=NULL; } //
52 
53  int computedGeometry; // put for backward compatibility
54 
55  protected:
56  RealArray *ba, *ag, *ob;
59 
60 };
61 
62 #endif