NAME

cxCoordDefaultNew - create default index coordinates

C SPECIFICATION

#include <cx/DataAccess.h>

cxCoord *cxCoordDefaultNew(long nDim, long dims[])

FORTRAN SPECIFICATION

integer function cxCoordDefaultNew(ndim, dims)
integer ndim, dims(ndim)

PARAMETERS

nDim
Number of dimensions in the index space of the corresponding data within the lattice.
dims
Array specifying length of the index space in each dimension.

FUNCTION RETURN VALUE

Returns pointer to new coordinates with default values, or a NULL if its input is malformed or if an allocation error occurs.

DESCRIPTION

cxCoordDefaultNew creates uniform coordinates matching the index space of the lattice. That is, the coordinates for dimension i are in C [0..dims[i]-1] and in Fortran [0..dims(i)-1].

SEE ALSO

cxCoordNew(3E), cxDataAllocErrorGet(3E)
Last modified: May 26 11:51 1999
[ Documentation Home ]
© The Numerical Algorithms Group Ltd, Oxford UK. 1999