Exodus 7.10

Functions
ex_get_init.c File Reference
`#include "exodusII.h"`
`#include "exodusII_int.h"`
`#include <stdint.h>`
`#include <string.h>`

## Functions
int | ex_get_init (int exoid, char *title, void_int *num_dim, void_int *num_nodes, void_int *num_elem, void_int *num_elem_blk, void_int *num_node_sets, void_int *num_side_sets)

## Function Documentation

## ◆ ex_get_init()

int ex_get_init | ( | int | exoid,
|  | char * | title,
|  | void_int * | num_dim,
|  | void_int * | num_nodes,
|  | void_int * | num_elem,
|  | void_int * | num_elem_blk,
|  | void_int * | num_node_sets,
|  | void_int * | num_side_sets
| ) |  |

The function ex_get_init() reads the initializationinitialization parameters from an opened exodus file.

Returns
  In case of an error, ex_get_init() returns a negative number; a warning will return a positive number. Possible causes of errors include:
  - data file not properly opened with call to ex_create() or ex_open().

Parameters

  | exoid | exodus file ID returned from a previous call to ex_create() or ex_open().
  [out] | title | Returned database title. String length may be up to `MAX_LINE_LENGTH` bytes.
  [out] | num_dim | Returned dimensionality of the database. This is the number of coordinates per node.
  [out] | num_nodes | Returned number of nodal points.
  [out] | num_elem | Returned number of elements
  [out] | num_elem_blk | Returned number of element blocks
  [out] | num_node_sets | Returned number of node sets
  [out] | num_side_sets | Returned number of side sets

See also
  ex_get_init_ext()

The following code segment will read the initialization parameters from the open exodus file:

int num_dim, num_nodes, num_elem, num_elem_blk,
num_node_sets, num_side_sets, error, exoid;
char title[MAX_LINE_LENGTH+1];
/* read database parameters */
error = ex_get_init (exoid, title, &num_dim, &num_nodes,
&num_elem, &num_elem_blk, &num_node_sets, &num_side_sets);