VTK  9.1.0
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 "vtkMPIUtilities.h"
20#include "vtkMathUtilities.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//------------------------------------------------------------------------------
30struct 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
42int CheckGrid(vtkUnstructuredGrid* ghostGrid, const int iteration);
43
44//------------------------------------------------------------------------------
45void UpdateGrid(const int iteration);
46
47//------------------------------------------------------------------------------
49
50//------------------------------------------------------------------------------
52
53//------------------------------------------------------------------------------
54void WriteDataSet(vtkUnstructuredGrid* grid, const std::string& file);
55
56//------------------------------------------------------------------------------
57void GetPoint(const int i, const int j, const int k, double pnt[3]);
58
60
61#endif /* UNSTRUCTUREDGHOSTZONESCOMMON_H_ */
void SetXYZNodeField()
void SetXYZCellField()
void GetPoint(const int i, const int j, const int k, double pnt[3])
int CheckGrid(vtkUnstructuredGrid *ghostGrid, const int iteration)
void WriteDataSet(vtkUnstructuredGrid *grid, const std::string &file)
void GenerateDataSet()
void UpdateGrid(const int iteration)
dataset represents arbitrary combinations of all possible cell types
static double Spacing[3]
static int Dims[3]
static double Origin[3]
static vtkUnstructuredGrid * Grid