Exodus 8.24
|
#include "exodusII.h"
Functions | |
int | ex_put_concat_node_sets (int exoid, void_int *node_set_ids, void_int *num_nodes_per_set, void_int *num_dist_per_set, void_int *node_sets_node_index, void_int *node_sets_df_index, void_int *node_sets_node_list, void *node_sets_dist_fact) |
int ex_put_concat_node_sets | ( | int | exoid, |
void_int * | node_set_ids, | ||
void_int * | num_nodes_per_set, | ||
void_int * | num_dist_per_set, | ||
void_int * | node_sets_node_index, | ||
void_int * | node_sets_df_index, | ||
void_int * | node_sets_node_list, | ||
void * | node_sets_dist_fact ) |
The function ex_put_concat_node_sets() writes the node set ID's, node sets node count array, node sets distribution factor count array, node sets node list pointers array, node sets distribution factor pointer, node set node list, and node set distribution factors for all of the node sets. `‘Concatenated node sets’' refers to the arrays required to define all of the node sets (ID array, counts arrays, pointers arrays, node list array, and distribution factors array) as described in Section 3.10 on page 11. Writing concatenated node sets is more efficient than writing individual node sets.
Because the distribution factors are floating point values, the application code must declare the array passed to be the appropriate type (float or double) to match the compute word size passed in ex_create() or ex_open().
[in] | exoid | exodus file ID returned from a previous call to ex_create() or ex_open(). |
[in] | node_set_ids | Array containing the node set ID for each set. |
[in] | num_nodes_per_set | Array containing the number of nodes for each set. |
[in] | num_dist_per_set | Array containing the number of distribution factors for each set. |
[in] | node_sets_node_index | Array containing the indices into the node_set_node_list which are the locations of the first node for each set. These indices are 0-based. Pass NULL for remaining parameters to just set the nodeset parameters and not output nodeset data. |
[in] | node_sets_df_index | Array containing the indices into the node_set_dist_list which are the locations of the first distribution factor for each set. These indices are 0-based. |
[in] | node_sets_node_list | Array containing the nodes for all sets. Internal node IDs are used in this list (See Section LocalNodeIds). |
[in] | node_sets_dist_fact | Array containing the distribution factors for all sets. |
For example, the following code will write out two node sets in a concatenated format: