VTK  9.3.20240419
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 //------------------------------------------------------------------------------
37 
38 //------------------------------------------------------------------------------
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 
48 
49 #endif /* UNSTRUCTUREDGHOSTZONESCOMMON_H_ */
void SetXYZNodeField()
void SetXYZCellField()
void GetPoint(int i, int j, int k, double pnt[3])
void WriteDataSet(vtkUnstructuredGrid *grid, const std::string &file)
int CheckGrid(vtkUnstructuredGrid *ghostGrid, int iteration)
void UpdateGrid(int iteration)
void GenerateDataSet()
dataset represents arbitrary combinations of all possible cell types
@ string
Definition: vtkX3D.h:490
static double Spacing[3]
static int Dims[3]
static double Origin[3]
static vtkUnstructuredGrid * Grid