FLDget_cell_data_ncomp


Synopsis

get/set the number of cell data components (ncell_data) in a Cell_Data cell_set


int FLDget_cell_data_ncomp (
OMobj_id cell_set,
int *ncell_comp);

int FLDset_cell_data_ncomp (
OMobj_id cell_set,
int ncell_comp);

Description

These routines get/set the number of cell data components (ncell_data) in one Cell_Data.

Parameters

OMobj_id field

The OMobj_id of a cell_set within a Cell_Data object.

int *ncell_comp
int ncell_comp

In FLDget_cell_data_ncomp, ncell_comp is a pointer to an integer in which the number of components (ncell_data) will be returned.

In FLDset_cell_data_ncomp, ncell_comp is an integer that sets the number of components (ncell_data).

Example

This example, some fragments from modules/ext_face.c shows external faces retrieving the number of components in each input field cell_set object, and setting the number of components in its output field cell_set to the same value.