FLDset_node_data_comp


Synopsis

set all basic characteristics of a single Node_Data component in one call


int FLDset_node_data_comp (
OMobj_id field,
int comp,
int veclen,
const char *label,
const char *units);

Description

FLDset_node_data_comp sets all the basic characteristics of a single Node_Data component in one call, except the actual data. You would use it to quickly establish the structure of an output Node_Data component.

Parameters

OMobj_id field

The OMobj_id of a field that contains a Node_Data subobject.

int comp

An integer that specifies which component's [0-n] characteristics are being set.

int veclen

An integer that specifies the veclen (number of subcomponents) in this component.

const char *label

A character string from which the label for this component will be copied.

const char *units

A character string from which the units for this component will be copied.

Example

This example, a fragment from modules/down.c, shows downsize first retrieving a description of its input field's Node_Data, then setting up each component of the output field accordingly.