GridCreateRectangular1D

Creates a one-dimensional rectangular grid object.

Synopsis

int GridCreateRectangular1D(MPI_Comm comm,int n,double xmin,double xmax,double *x,
                            DiscretizationType dtype,Grid *grid)
Collective on MPI_Comm

Input Parameters

comm - MPI communicator
n - number of grid points (including end points)
xmin - left grid point
xmax - right grid point
x - [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

GridCreateRectangular2D()

Examples

src/gvec/examples/tutorials/ex1.c
src/gvec/examples/tutorials/ex2.c
src/gvec/examples/tutorials/ex3.c
src/gvec/examples/tutorials/ex4.c
src/gvec/examples/tutorials/ex11.c

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