# naginterfaces.library.pde.dim2_​gen_​order2_​rectilinear_​extractgrid¶

naginterfaces.library.pde.dim2_gen_order2_rectilinear_extractgrid(level, xmin, ymin, dxb, dyb, lgrid, istruc, lenxy)[source]

dim2_gen_order2_rectilinear_extractgrid is designed to be used in conjunction with dim2_gen_order2_rectilinear(). It can be called from the to obtain the number of grid points and their coordinates on a solution grid.

For full information please refer to the NAG Library document for d03rz

https://www.nag.com/numeric/nl/nagdoc_27.3/flhtml/d03/d03rzf.html

Parameters
levelint

The grid level at which the coordinates are required.

xminfloat

as supplied to must be passed unchanged to dim2_gen_order2_rectilinear_extractgrid

yminfloat

as supplied to must be passed unchanged to dim2_gen_order2_rectilinear_extractgrid

dxbfloat

as supplied to must be passed unchanged to dim2_gen_order2_rectilinear_extractgrid

dybfloat

as supplied to must be passed unchanged to dim2_gen_order2_rectilinear_extractgrid

lgridint, array-like, shape

as supplied to must be passed unchanged to dim2_gen_order2_rectilinear_extractgrid.

istrucint, array-like, shape

as supplied to must be passed unchanged to dim2_gen_order2_rectilinear_extractgrid.

lenxyint

The dimension of the arrays and .

Returns
nptsint

The number of grid points in the grid level .

xfloat, ndarray, shape

and contain the coordinates respectively of the th grid point, for .

yfloat, ndarray, shape

and contain the coordinates respectively of the th grid point, for .

Raises
NagValueError
(errno )

On entry, and .

Constraint: .

(errno )

On entry, .

Constraint: .

(errno )

On entry, .

Constraint: .

Notes

No equivalent traditional C interface for this routine exists in the NAG Library.

dim2_gen_order2_rectilinear_extractgrid extracts the number of grid points and their coordinates on a specific solution grid produced by dim2_gen_order2_rectilinear(). It must be called only from within the . The arguments , , , , , and to must be passed unchanged to dim2_gen_order2_rectilinear_extractgrid.