44 template <Gr
idType gr
idType>
58 void SetNLon(
int nlon) { this->NLon = nlon; }
59 void SetNLat(
int nlat) { this->NLat = nlat; }
65 this->Lev =
new double[nlev];
66 std::copy(lev, lev + nlev, this->Lev);
70 void AddPointsAndCells(
double lonRad,
double latRad);
74 void SetAttributeValue(
int chunkSize,
double* lonRad,
double* latRad,
double* psScalar,
75 double* tScalar,
double* uScalar,
double* vScalar);
90 void SetCubeGridPoints(
int ne,
int np,
int lonSize,
double* lonRad,
int latSize,
double* latRad);
96 int* nstep,
int* chunkCols,
double* lonRad,
double* latRad,
double* psScalar,
double* tScalar);
110 double LevelToRadius(
double level)
const;
114 void GetLevMinusPlus(
int levIndex,
double* levMinus,
double* levPlus)
const;
115 void GetLatMinusPlus(
int latIndex,
double* latMinus,
double* latPlus)
const;
116 void GetLonMinusPlus(
int lonIndex,
double* lonMinus,
double* lonPlus)
const;
120 void GetValueIndex(
double lonRad,
double latRad, std::vector<std::vector<int> >&
index)
const;
123 void GetCellPoints(
const int index[3],
double cellPoints[4][3])
const;
124 void GetCellPoints(
const int index[3],
int level,
double cell[8][3])
const;
127 void GetPointIds(
const int index[3],
int pointIndexes[4])
const;
128 void GetPointIds(
const int index[3],
int level,
int pointIndexes[8])
const;
131 int GetCellId(
const int index[3])
const;
132 int GetCellId(
const int index[3],
int level)
const;
137 size_t CubeToIndex(
double side,
const std::vector<double>& cubeCoordinates,
double v[3],
138 std::vector<std::vector<int> >& index)
const;
142 void IndexToCube(
const std::vector<double>& cubeCoordinates,
double index[3],
double v[3])
const;
143 void CubeToSpherical(
double v[3],
double* lonRad,
double* latRad)
const;
147 void MinFaceIndex(
int side,
int index[3])
const;
153 int NLon, NLat, NLev;
174 int RankArrayIndex2d;
175 int CoordArrayIndex2d;
180 int RankArrayIndex3d;
181 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.