WXP C++ Library Version 6.74.9
Loading...
Searching...
No Matches
Public Member Functions | List of all members
WXP::GridPiece Class Reference

This class pieces a set of grid together into a larger grid. More...

#include "../include/GridPiece.h"

Public Member Functions

int getDomain (Grid &grid, int rnx, int rny, int rx, int ry, Domain &dom)
 
int set (Grid &grid, int rnx, int rny, Grid &igrid, int rx, int ry)
 
int set (Grid &grid, int rnx, int rny, Grid &igrid)
 
int add (Grid &grid, int x, int y, Grid &igrid)
 

Detailed Description

This class pieces a set of grid together into a larger grid.

Author
Dan Vietor

Member Function Documentation

◆ add()

int GridPiece::add ( Grid grid,
int  x,
int  y,
Grid igrid 
)

Adds data to output grid

Return values
gridOutput grid
Parameters
xX location of specific grid
yY location of specific grid
igridInput grid to add to output grid

References WXP::Domain::getNx(), WXP::Grid::getNx(), WXP::Domain::getNy(), WXP::Grid::getNy(), WXP::Grid::getValue(), and WXP::Grid::setValue().

◆ set()

int GridPiece::set ( Grid grid,
int  rnx,
int  rny,
Grid igrid,
int  rx,
int  ry 
)

Sets up output grid

Return values
gridOutput grid
Parameters
rnxNumber of grids to piece in X direction
rnyNumber of grids to piece in Y direction
igridA sample input grid to reference (assuming grids regular)
rxOffset of sample grid in X direction
ryOffset of sample grid in Y direction

References WXP::Grid::allocData(), and WXP::Grid::setDomain().


The documentation for this class was generated from the following files: