GridCreateRectangular2D

Creates a two-dimensional rectangular grid object.

Synopsis

int GridCreateRectangular2D(MPI_Comm comm,int m,double xmin,double xmax,double *x,
                            int n,double ymin, double ymax,double *y,
                            DiscretizationType dtype,Grid *grid)
Collective on MPI_Comm

Input Parameters

comm - MPI communicator
m - number of grid points in x direction (including end points)
n - number of grid points in y direction (including end points)
xmin - left grid point
xmax - right grid point
ymin - bottom grid point
ymax - top grid point
x - [optional] array of grid points, only given if the grid points are unevenly spaced.
y - [optional] array of grid points, only given if the grid points are unevenly spaced.
dtype - type of discretization, for example DISCRETIZATION_LINEAR

Output Parameter

grid -the grid data structure

Keywords

grid

See Also

GridCreateRectangular1D()

Examples

src/gvec/examples/tutorials/ex5.c
src/gvec/examples/tutorials/ex6.c

Location: src/gvec/impls/rectangular/2d/rect2d.c
Discrete Function Index
Table of Contents