| 1 |
/* |
| 2 |
* Copyright(C) 1999-2020 National Technology & Engineering Solutions |
| 3 |
* of Sandia, LLC (NTESS). Under the terms of Contract DE-NA0003525 with |
| 4 |
* NTESS, the U.S. Government retains certain rights in this software. |
| 5 |
* |
| 6 |
* See packages/seacas/LICENSE for details |
| 7 |
*/ |
| 8 |
#include "exodusII.h" |
| 9 |
|
| 10 |
/*! |
| 11 |
\deprecated Use ex_get_conn()(exoid, EX_ELEM_BLOCK, elem_blk_id, connect, 0, 0) |
| 12 |
instead |
| 13 |
|
| 14 |
The function ex_get_elem_conn() reads the connectivity array for an |
| 15 |
element block. Memory must be allocated for the connectivity array |
| 16 |
(num_elem_this_blk * num_nodes_per_elem in length) before |
| 17 |
this routine is called. |
| 18 |
|
| 19 |
\return In case of an error, ex_get_elem_conn() returns a negative number; a |
| 20 |
warning will return a positive number. Possible causes of errors |
| 21 |
include: |
| 22 |
- an element block with the specified ID is not stored in the file. |
| 23 |
|
| 24 |
\param[in] exoid exodus file ID returned from a previous call to |
| 25 |
ex_create() or ex_open(). |
| 26 |
\param[in] elem_blk_id The element block ID. |
| 27 |
\param[out] connect Size [num_elem_this_blk,num_nodes_per_elem]. |
| 28 |
Returned connectivity array; a list of nodes (internal |
| 29 |
node |
| 30 |
IDs; See Section LocalNodeIds) that define each |
| 31 |
element. The |
| 32 |
node index cycles faster than the element index. |
| 33 |
|
| 34 |
Refer to the code example in ex_get_elem_block() for an example of |
| 35 |
reading the connectivity for an element block. |
| 36 |
|
| 37 |
*/ |
| 38 |
|
| 39 |
int ex_get_elem_conn(int exoid, ex_entity_id elem_blk_id, void_int *connect) |
| 40 |
{ |
| 41 |
return ex_get_conn(exoid, EX_ELEM_BLOCK, elem_blk_id, connect, 0, 0); |
| 42 |
} |