VTK  9.3.1
UnstructuredGhostZonesCommon.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
3 #ifndef UNSTRUCTUREDGHOSTZONESCOMMON_H_
4 #define UNSTRUCTUREDGHOSTZONESCOMMON_H_
5 
6 // VTK includes
7 #include "vtkMPIUtilities.h"
8 #include "vtkMathUtilities.h"
9 
10 // C/C++ includes
11 #include <cmath>
12 #include <iomanip>
13 #include <sstream>
14 
15 //------------------------------------------------------------------------------
16 // G L O B A L D A T A
17 //------------------------------------------------------------------------------
18 struct global
19 {
20  static double Origin[3];
21  static double Spacing[3];
22  static int Dims[3];
23 
24  static int Rank;
25  static int NRanks;
26 
28 };
29 
30 int CheckGrid(vtkUnstructuredGrid* ghostGrid, int iteration);
31 
32 //------------------------------------------------------------------------------
33 void UpdateGrid(int iteration);
34 
35 //------------------------------------------------------------------------------
36 void SetXYZCellField();
37 
38 //------------------------------------------------------------------------------
39 void SetXYZNodeField();
40 
41 //------------------------------------------------------------------------------
42 void WriteDataSet(vtkUnstructuredGrid* grid, const std::string& file);
43 
44 //------------------------------------------------------------------------------
45 void GetPoint(int i, int j, int k, double pnt[3]);
46 
47 void GenerateDataSet();
48 
49 #endif /* UNSTRUCTUREDGHOSTZONESCOMMON_H_ */
void SetXYZCellField()
void SetXYZNodeField()
static vtkUnstructuredGrid * Grid
static int Dims[3]
static double Spacing[3]
void UpdateGrid(int iteration)
static double Origin[3]
dataset represents arbitrary combinations of all possible cell types
int CheckGrid(vtkUnstructuredGrid *ghostGrid, int iteration)
void WriteDataSet(vtkUnstructuredGrid *grid, const std::string &file)
void GetPoint(int i, int j, int k, double pnt[3])
void GenerateDataSet()