Exodus 7.10

Macros | Functions
ex_put_conn.c File Reference
`#include "exodusII.h"`
`#include "exodusII_int.h"`
`#include "netcdf.h"`
`#include <inttypes.h>`
`#include <stddef.h>`
`#include <stdio.h>`

## Macros
#define | EX_WRITE_CONN(TNAME, VARCONN, VARCONNVAL)

## Functions
int | ex_put_conn (int exoid, ex_entity_type blk_type, ex_entity_id blk_id, const void_int *node_conn, const void_int *elem_edge_conn, const void_int *elem_face_conn)

## Macro Definition Documentation

## ◆ EX_WRITE_CONN

#define EX_WRITE_CONN | ( |  | TNAME,
|  |  | VARCONN,
|  |  | VARCONNVAL
| ) |  |

Value:
if (ex_int64_status(exoid) & EX_BULK_INT64_API) { \
status = nc_put_var_longlong(exoid, VARCONN, VARCONNVAL); \
} \
else { \
status = nc_put_var_int(exoid, VARCONN, VARCONNVAL); \
} \
if (status != NC_NOERR) { \
snprintf(errmsg, MAX_ERR_LENGTH, \
"ERROR: failed to write connectivity array for %s block %" PRId64 " in file id %d", \
TNAME, blk_id, exoid); \
ex_err(__func__, errmsg, status); \
EX_FUNC_LEAVE(EX_FATAL); \
}
ex_int64_status
int ex_int64_status(int exoid)
Definition: ex_conv.c:331
MAX_ERR_LENGTH
#define MAX_ERR_LENGTH
Definition: exodusII.h:302
obj_stats::exoid
int exoid
Definition: exodusII_int.h:758
EX_FATAL
#define EX_FATAL
Definition: exodusII.h:1670
EX_BULK_INT64_API
#define EX_BULK_INT64_API
Definition: exodusII.h:135

write out the connectivity array

## Function Documentation

## ◆ ex_put_conn()

int ex_put_conn | ( | int | exoid,
|  | ex_entity_type | blk_type,
|  | ex_entity_id | blk_id,
|  | const void_int * | node_conn,
|  | const void_int * | elem_edge_conn,
|  | const void_int * | elem_face_conn
| ) |  |

writes the connectivity array for a block

Parameters

  exoid | exodus file id
  blk_type | type of block
  blk_id | id of block
  node_conn | node-element connectivity
  elem_edge_conn | element-edge connectivity (NULL if none)
  elem_face_conn | element-face connectivity (NULL if none)