FLDget_nspace


Synopsis

get/set the nspace within a Grid


int FLDget_nspace (
OMobj_id field,
int *nspace);

int FLDset_nspace (
OMobj_id field,
int nspace);

Description

These routines get/set the nspace (number of coordinates per node, for example, 1 = X; 2 = X,Y; 3 = X, Y, Z) within a Grid. The nspace = veclen within the Grid coordinates array. This will be used as the second array index into the coordinates array (values=[nvals][veclen]).

Note: nspace can also be gotten as part of the omnibus FLDget_mesh_info routine.

Parameters

OMobj_id field

The OMobj_id of a field that contains a Grid.

int *nspace
int nspace

In FLDget_nspace, nspace is a pointer to an integer in which the nspace is returned.

In FLDset_nspace, nspace is an integer from which the nspace will be copied to the Grid.

Example

modules/advect.c
modules/bounds.c
modules/crop.c
modules/int_data.c
modules/isotrace.c
modules/sct2unif.c (and others)

Related routines