NAME

cxDataNew - create new data structure
#include <cx/DataAccess.h>

typedef enum {
 cx_prim_byte,
 cx_prim_short,
 cx_prim_long,
 cx_prim_float,
 cx_prim_double
} cxPrimType;

cxData *cxDataNew(long nDim, long dims[],
  long nDataVar, cxPrimType primType)
integer cx_prim_byte
integer cx_prim_short
integer cx_prim_long
integer cx_prim_float
integer cx_prim_double

parameter (cx_prim_byte = 0)
parameter (cx_prim_short = 1)
parameter (cx_prim_long = 2)
parameter (cx_prim_float = 3)
parameter (cx_prim_double = 4)

integer function cxDataNew(ndim, dims, ndatavar, primtype)
integer ndim, dims(ndim), ndatavar, primtype
nDim
Number of dimensions.
dims
Array specifying length in each dimension.
nDataVar
Number of data elements per node.
primType
Primitive data type.
Returns a pointer to a new data structure.

Allocates only the data portion of a lattice. The data created will have nDim dimensions; the length of each dimension is specified in the array dims. Each node of the data will have space for nDataVar elements; the type of each element is specified by primType.

See cxDataManAbortOnError for more details on writing portable module code that copes well with limited memory.

cxDataManAbortOnError



[ Documentation Home ]

Website Feedback

If you would like a response from NAG please provide your e-mail address below.

(If you're a human, don't change the following field)
Your first name.
CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Enter the characters shown in the image.