Synopsis
get/set the number of cell sets (ncell_sets) in a Cell_Data or Cells
int FLDget_ncell_sets (
OMobj_id field,
int *ncell_sets);
int FLDset_ncell_sets (
OMobj_id field,
int ncell_sets);
Description
These routines get/set the number of cell sets (ncell_sets) in a Cell_Data or Cells group.
Parameters
OMobj_id field
The OMobj_id of a field that contains Cells or Cell_Data.
int *ncell_sets
int ncell_sets
In FLDget_ncell_sets, ncell_sets is a pointer to an integer in which the number of cell sets [0-n] (ncell_sets) will be returned.
In FLDset_ncell_sets, ncell_sets is an integer that sets the number of cell sets (ncell_sets).
Example
This example, some fragments from modules/ext_face.c shows external faces retrieving the number of cell sets in the input field, setting the number of cell sets in the output field to 1 (0), then looping on the number of input cell sets.
Related routines
Not applicable.