VTK
UnstructuredGhostZonesCommon.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkPStructuredGridConnectivity.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14  =========================================================================*/
15 #ifndef UNSTRUCTUREDGHOSTZONESCOMMON_H_
16 #define UNSTRUCTUREDGHOSTZONESCOMMON_H_
17 
18 // VTK includes
19 #include "vtkMathUtilities.h"
20 #include "vtkMPIUtilities.h"
21 
22 // C/C++ includes
23 #include <cmath>
24 #include <iomanip>
25 #include <sstream>
26 
27 //------------------------------------------------------------------------------
28 // G L O B A L D A T A
29 //------------------------------------------------------------------------------
30 struct global
31 {
32  static double Origin[3];
33  static double Spacing[3];
34  static int Dims[3];
35 
36  static int Rank;
37  static int NRanks;
38 
40 };
41 
42 int CheckGrid(vtkUnstructuredGrid* ghostGrid, const int iteration);
43 
44 //------------------------------------------------------------------------------
45 void UpdateGrid(const int iteration);
46 
47 //------------------------------------------------------------------------------
48 void SetXYZCellField();
49 
50 //------------------------------------------------------------------------------
51 void SetXYZNodeField();
52 
53 //------------------------------------------------------------------------------
54 void WriteDataSet(
55  vtkUnstructuredGrid* grid, const std::string& file);
56 
57 //------------------------------------------------------------------------------
58 void GetPoint(
59  const int i, const int j, const int k,double pnt[3]);
60 
61 void GenerateDataSet();
62 
63 #endif /* UNSTRUCTUREDGHOSTZONESCOMMON_H_ */
vtkMathUtilities.h
SetXYZNodeField
void SetXYZNodeField()
global
Definition: UnstructuredGhostZonesCommon.h:30
SetXYZCellField
void SetXYZCellField()
global::Dims
static int Dims[3]
Definition: UnstructuredGhostZonesCommon.h:34
global::Rank
static int Rank
Definition: UnstructuredGhostZonesCommon.h:36
global::Grid
static vtkUnstructuredGrid * Grid
Definition: UnstructuredGhostZonesCommon.h:39
GetPoint
void GetPoint(const int i, const int j, const int k, double pnt[3])
UpdateGrid
void UpdateGrid(const int iteration)
global::NRanks
static int NRanks
Definition: UnstructuredGhostZonesCommon.h:37
WriteDataSet
void WriteDataSet(vtkUnstructuredGrid *grid, const std::string &file)
vtkMPIUtilities.h
vtkX3D::string
Definition: vtkX3D.h:490
GenerateDataSet
void GenerateDataSet()
global::Spacing
static double Spacing[3]
Definition: UnstructuredGhostZonesCommon.h:33
vtkUnstructuredGrid
dataset represents arbitrary combinations of all possible cell types
Definition: vtkUnstructuredGrid.h:87
CheckGrid
int CheckGrid(vtkUnstructuredGrid *ghostGrid, const int iteration)
global::Origin
static double Origin[3]
Definition: UnstructuredGhostZonesCommon.h:32