32 template <Gr
idType gr
idType>
46 void SetNLon(
int nlon) { this->NLon = nlon; }
47 void SetNLat(
int nlat) { this->NLat = nlat; }
53 this->Lev =
new double[nlev];
54 std::copy(lev, lev + nlev, this->Lev);
58 void AddPointsAndCells(
double lonRad,
double latRad);
62 void SetAttributeValue(
int chunkSize,
double* lonRad,
double* latRad,
double* psScalar,
63 double* tScalar,
double* uScalar,
double* vScalar);
78 void SetCubeGridPoints(
int ne,
int np,
int lonSize,
double* lonRad,
int latSize,
double* latRad);
84 int* nstep,
int* chunkCols,
double* lonRad,
double* latRad,
double* psScalar,
double* tScalar);
98 double LevelToRadius(
double level)
const;
102 void GetLevMinusPlus(
int levIndex,
double* levMinus,
double* levPlus)
const;
103 void GetLatMinusPlus(
int latIndex,
double* latMinus,
double* latPlus)
const;
104 void GetLonMinusPlus(
int lonIndex,
double* lonMinus,
double* lonPlus)
const;
108 void GetValueIndex(
double lonRad,
double latRad, std::vector<std::vector<int>>&
index)
const;
111 void GetCellPoints(
const int index[3],
double cellPoints[4][3])
const;
112 void GetCellPoints(
const int index[3],
int level,
double cell[8][3])
const;
115 void GetPointIds(
const int index[3],
int pointIndexes[4])
const;
116 void GetPointIds(
const int index[3],
int level,
int pointIndexes[8])
const;
119 int GetCellId(
const int index[3])
const;
120 int GetCellId(
const int index[3],
int level)
const;
125 size_t CubeToIndex(
double side,
const std::vector<double>& cubeCoordinates,
double v[3],
126 std::vector<std::vector<int>>& index)
const;
130 void IndexToCube(
const std::vector<double>& cubeCoordinates,
double index[3],
double v[3])
const;
131 void CubeToSpherical(
double v[3],
double* lonRad,
double* latRad)
const;
135 void MinFaceIndex(
int side,
int index[3])
const;
140 int NLon, NLat, NLev;
161 int RankArrayIndex2d;
162 int CoordArrayIndex2d;
167 int RankArrayIndex3d;
168 int CoordArrayIndex3d;
void SetChunkCapacity(int capacity)
void SetLatStep(int step)
#define VTKPVADAPTORSCAM_EXPORT
vtkSmartPointer< vtkUnstructuredGrid > GetGrid2d() const
Returns the 2D grid.
Creates and accumulates data for a 2D and a 3D grid.
vtkSmartPointer< vtkUnstructuredGrid > GetGrid3d() const
Returns the 3D grid.
void SetLev(int nlev, double *lev)
void SetMpiRank(int rank)
void SetNCells2d(int ncells)
void SetLonStep(int step)
used for the FV dynamic core only
This class provides the description of the data for the coprocessor pipelines.