Exodus 8.24
|
#include "exodusII.h"
Functions | |
int | ex_put_elem_var_tab (int exoid, int num_elem_blk, int num_elem_var, int *elem_var_tab) |
int ex_put_elem_var_tab | ( | int | exoid, |
int | num_elem_blk, | ||
int | num_elem_var, | ||
int * | elem_var_tab ) |
The function ex_put_elem_var_tab() writes the exodus element variable truth table to the database. The element variable truth table indicates whether a particular element result is written for the elements in a particular element block. A 0 (zero) entry indicates that no results will be output for that element variable for that element block. A non-zero entry indicates that the appropriate results will be output.
Although writing the element variable truth table is optional, it is encouraged because it creates at one time all the necessary NetCDF
variables in which to hold the exodus element variable values. This results in significant time savings.
The function ex_put_variable_param() must be called before this routine in order to define the number of element variables.
[in] | exoid | exodus file ID returned from a previous call to ex_create() or ex_open(). |
[in] | num_elem_blk | The number of element blocks. |
[in] | num_elem_var | The number of element variables. |
[in] | elem_var_tab | Size [num_elem_blk,num_elem_var]. A 2-dimensional array (with the num_elem_var index cycling faster) containing the element variable truth table. |
The following coding will create, populate, and write an element variable truth table to an opened exodus file (NOTE: all element variables are valid for all element blocks in this example.):