Creates and accumulates data for a 2D and a 3D grid. More...
#include <Grid.h>
Public Member Functions | |
Grid () | |
~Grid () | |
Deletes data used to build the grids. More... | |
void | Create () |
Creates a 2D and a 3D grid. More... | |
void | SetMpiRank (int rank) |
void | SetChunkCapacity (int capacity) |
void | SetNCells2d (int ncells) |
void | SetNLon (int nlon) |
void | SetNLat (int nlat) |
void | SetLev (int nlev, double *lev) |
void | AddPointsAndCells (double lonRad, double latRad) |
Adds the points and the cells for a vertical column to the grid. More... | |
void | SetAttributeValue (int chunkSize, double *lonRad, double *latRad, double *psScalar, double *tScalar, double *uScalar, double *vScalar) |
Sets attributes for a chunk (a list of vertical columns) to the 2D and 3D grids. More... | |
vtkSmartPointer< vtkUnstructuredGrid > | GetGrid2d () const |
Returns the 2D grid. More... | |
vtkSmartPointer< vtkUnstructuredGrid > | GetGrid3d () const |
Returns the 3D grid. More... | |
void | SetLonStep (int step) |
used for the FV dynamic core only More... | |
void | SetLatStep (int step) |
void | SetCubeGridPoints (int ne, int np, int lonSize, double *lonRad, int latSize, double *latRad) |
used for the SE dynamic core only More... | |
Static Public Member Functions | |
static bool | SetToCoprocessor (vtkCPDataDescription *coprocessorData, const char *name, vtkSmartPointer< vtkUnstructuredGrid > grid) |
Attach the grid to the coprocessor data. More... | |
Creates and accumulates data for a 2D and a 3D grid.
It generates either a parallelepiped or sphere for the Finite Volume (FV) dynamic core or a cube sphere for the Structured Element (SE) dynamic core. Grids are stored as unstructured grids, and are reconstructed from points.
CamAdaptor::Grid< gridType >::Grid | ( | ) |
CamAdaptor::Grid< gridType >::~Grid | ( | ) |
Deletes data used to build the grids.
Note that the grid memory is managed by the Catalyst Coprocessor.
void CamAdaptor::Grid< gridType >::Create | ( | ) |
Creates a 2D and a 3D grid.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
void CamAdaptor::Grid< gridType >::AddPointsAndCells | ( | double | lonRad, |
double | latRad | ||
) |
Adds the points and the cells for a vertical column to the grid.
void CamAdaptor::Grid< gridType >::SetAttributeValue | ( | int | chunkSize, |
double * | lonRad, | ||
double * | latRad, | ||
double * | psScalar, | ||
double * | tScalar, | ||
double * | uScalar, | ||
double * | vScalar | ||
) |
Sets attributes for a chunk (a list of vertical columns) to the 2D and 3D grids.
|
inline |
|
inline |
|
static |
Attach the grid to the coprocessor data.
|
inline |
|
inline |
void CamAdaptor::Grid< gridType >::SetCubeGridPoints | ( | int | ne, |
int | np, | ||
int | lonSize, | ||
double * | lonRad, | ||
int | latSize, | ||
double * | latRad | ||
) |
used for the SE dynamic core only