Exodus 8.24
Loading...
Searching...
No Matches
exodusII.h File Reference
#include "exodus_config.h"
#include "netcdf.h"
#include <stddef.h>
#include <stdint.h>
#include <stdlib.h>

Go to the source code of this file.

Data Structures

struct  ex_field
 
struct  ex_basis
 
struct  ex_quadrature
 
struct  ex_init_params
 
struct  ex_attribute
 
struct  ex_blob
 
struct  ex_assembly
 
struct  ex_block
 
struct  ex_set
 
struct  ex_block_params
 
struct  ex_set_specs
 
struct  ex_var_params
 

Macros

#define EX_MAX_NAME   NC_MAX_NAME
 
#define EXODUS_VERSION   "9.04"
 
#define EXODUS_VERSION_MAJOR   9
 
#define EXODUS_VERSION_MINOR   4
 
#define EXODUS_RELEASE_DATE   "November 5, 2024"
 
#define EX_API_VERS   9.04f
 
#define EX_API_VERS_NODOT   (100 * EXODUS_VERSION_MAJOR + EXODUS_VERSION_MINOR)
 
#define EX_VERS   EX_API_VERS
 
#define NEMESIS_API_VERSION   EX_API_VERS
 
#define NEMESIS_API_VERSION_NODOT   EX_API_VERS_NODOT
 
#define NEMESIS_FILE_VERSION   2.6
 
#define EX_TRUE   -1
 
#define EX_FALSE   0
 
#define EX_WRITE   0x0001
 
#define EX_READ   0x0002
 
#define EX_NOCLOBBER   0x0004
 
#define EX_CLOBBER   0x0008
 
#define EX_NORMAL_MODEL   0x0010
 
#define EX_64BIT_OFFSET   0x0020
 
#define EX_LARGE_MODEL   EX_64BIT_OFFSET
 
#define EX_64BIT_DATA   0x400000
 
#define EX_NETCDF4   0x0040
 
#define EX_NOSHARE   0x0080
 
#define EX_SHARE   0x0100
 
#define EX_NOCLASSIC   0x0200
 
#define EX_DISKLESS   0x100000
 
#define EX_MMAP   0x200000
 
#define EX_MAPS_INT64_DB   0x0400
 
#define EX_IDS_INT64_DB   0x0800
 
#define EX_BULK_INT64_DB    0x1000
 
#define EX_ALL_INT64_DB    (EX_MAPS_INT64_DB | EX_IDS_INT64_DB | EX_BULK_INT64_DB)
 
#define EX_MAPS_INT64_API   0x2000
 
#define EX_IDS_INT64_API   0x4000
 
#define EX_BULK_INT64_API    0x8000
 
#define EX_INQ_INT64_API   0x10000
 
#define EX_ALL_INT64_API
 
#define EX_MPIIO   0x20000
 
#define EX_MPIPOSIX   0x40000
 
#define EX_PNETCDF   0x80000
 
#define EX_MAX_FIELD_NESTING   2
 
#define EX_INVALID_ID   -1
 
#define MAX_STR_LENGTH   32L
 
#define MAX_NAME_LENGTH   MAX_STR_LENGTH
 
#define MAX_LINE_LENGTH   80L
 
#define MAX_ERR_LENGTH   512
 
#define EXODUS_EXPORT   extern
 
#define ex_create(path, mode, comp_ws, io_ws)
 
#define ex_open(path, mode, comp_ws, io_ws, version)
 
#define SEACAS_DEPRECATED
 

Typedefs

typedef enum ex_inquiry ex_inquiry
 
typedef enum ex_option_type ex_option_type
 
typedef enum ex_compression_type ex_compression_type
 
typedef enum ex_entity_type ex_entity_type
 
typedef enum ex_field_type ex_field_type
 
typedef struct ex_field ex_field
 
typedef struct ex_basis ex_basis
 
typedef struct ex_quadrature ex_quadrature
 
typedef enum ex_options ex_options
 
typedef int64_t ex_entity_id
 
typedef void void_int
 
typedef struct ex_init_params ex_init_params
 
typedef enum ex_type ex_type
 
typedef struct ex_attribute ex_attribute
 
typedef struct ex_blob ex_blob
 
typedef struct ex_assembly ex_assembly
 
typedef struct ex_block ex_block
 
typedef struct ex_set ex_set
 
typedef struct ex_block_params ex_block_params
 
typedef struct ex_set_specs ex_set_specs
 
typedef struct ex_var_params ex_var_params
 
typedef enum ex_error_return_code ex_error_return_code
 

Enumerations

enum  ex_inquiry {
  EX_INQ_FILE_TYPE = 1 , EX_INQ_API_VERS = 2 , EX_INQ_DB_VERS = 3 , EX_INQ_TITLE = 4 ,
  EX_INQ_DIM = 5 , EX_INQ_NODES = 6 , EX_INQ_ELEM = 7 , EX_INQ_ELEM_BLK = 8 ,
  EX_INQ_NODE_SETS = 9 , EX_INQ_NS_NODE_LEN = 10 , EX_INQ_SIDE_SETS = 11 , EX_INQ_SS_NODE_LEN = 12 ,
  EX_INQ_SS_ELEM_LEN = 13 , EX_INQ_QA = 14 , EX_INQ_INFO = 15 , EX_INQ_TIME = 16 ,
  EX_INQ_EB_PROP = 17 , EX_INQ_NS_PROP = 18 , EX_INQ_SS_PROP = 19 , EX_INQ_NS_DF_LEN = 20 ,
  EX_INQ_SS_DF_LEN = 21 , EX_INQ_LIB_VERS = 22 , EX_INQ_EM_PROP = 23 , EX_INQ_NM_PROP = 24 ,
  EX_INQ_ELEM_MAP = 25 , EX_INQ_NODE_MAP = 26 , EX_INQ_EDGE = 27 , EX_INQ_EDGE_BLK = 28 ,
  EX_INQ_EDGE_SETS = 29 , EX_INQ_ES_LEN = 30 , EX_INQ_ES_DF_LEN = 31 , EX_INQ_EDGE_PROP = 32 ,
  EX_INQ_ES_PROP = 33 , EX_INQ_FACE = 34 , EX_INQ_FACE_BLK = 35 , EX_INQ_FACE_SETS = 36 ,
  EX_INQ_FS_LEN = 37 , EX_INQ_FS_DF_LEN = 38 , EX_INQ_FACE_PROP = 39 , EX_INQ_FS_PROP = 40 ,
  EX_INQ_ELEM_SETS = 41 , EX_INQ_ELS_LEN = 42 , EX_INQ_ELS_DF_LEN = 43 , EX_INQ_ELS_PROP = 44 ,
  EX_INQ_EDGE_MAP = 45 , EX_INQ_FACE_MAP = 46 , EX_INQ_COORD_FRAMES = 47 , EX_INQ_DB_MAX_ALLOWED_NAME_LENGTH = 48 ,
  EX_INQ_DB_MAX_USED_NAME_LENGTH = 49 , EX_INQ_MAX_READ_NAME_LENGTH = 50 , EX_INQ_DB_FLOAT_SIZE = 51 , EX_INQ_NUM_CHILD_GROUPS = 52 ,
  EX_INQ_GROUP_PARENT = 53 , EX_INQ_GROUP_ROOT , EX_INQ_GROUP_NAME_LEN = 55 , EX_INQ_GROUP_NAME ,
  EX_INQ_FULL_GROUP_NAME_LEN = 57 , EX_INQ_FULL_GROUP_NAME = 58 , EX_INQ_THREADSAFE = 59 , EX_INQ_ASSEMBLY = 60 ,
  EX_INQ_BLOB = 61 , EX_INQ_NUM_NODE_VAR = 62 , EX_INQ_NUM_EDGE_BLOCK_VAR = 63 , EX_INQ_NUM_FACE_BLOCK_VAR = 64 ,
  EX_INQ_NUM_ELEM_BLOCK_VAR = 65 , EX_INQ_NUM_NODE_SET_VAR = 66 , EX_INQ_NUM_EDGE_SET_VAR = 67 , EX_INQ_NUM_FACE_SET_VAR = 68 ,
  EX_INQ_NUM_ELEM_SET_VAR = 69 , EX_INQ_NUM_SIDE_SET_VAR = 70 , EX_INQ_NUM_GLOBAL_VAR = 71 , EX_INQ_FILE_FORMAT = 72 ,
  EX_INQ_INVALID = -1
}
 
enum  ex_option_type {
  EX_OPT_MAX_NAME_LENGTH , EX_OPT_COMPRESSION_TYPE , EX_OPT_COMPRESSION_LEVEL , EX_OPT_COMPRESSION_SHUFFLE ,
  EX_OPT_QUANTIZE_NSD , EX_OPT_INTEGER_SIZE_API , EX_OPT_INTEGER_SIZE_DB
}
 
enum  ex_compression_type {
  EX_COMPRESS_ZLIB = 1 , EX_COMPRESS_GZIP = 1 , EX_COMPRESS_SZIP , EX_COMPRESS_ZSTD ,
  EX_COMPRESS_BZ2
}
 
enum  ex_entity_type {
  EX_NODAL = 14 , EX_NODE_BLOCK = 14 , EX_NODE_SET = 2 , EX_EDGE_BLOCK = 6 ,
  EX_EDGE_SET = 7 , EX_FACE_BLOCK = 8 , EX_FACE_SET = 9 , EX_ELEM_BLOCK = 1 ,
  EX_ELEM_SET = 10 , EX_SIDE_SET = 3 , EX_ELEM_MAP = 4 , EX_NODE_MAP = 5 ,
  EX_EDGE_MAP = 11 , EX_FACE_MAP = 12 , EX_GLOBAL = 13 , EX_COORDINATE = 15 ,
  EX_ASSEMBLY = 16 , EX_BLOB = 17 , EX_INVALID = -1
}
 
enum  ex_field_type {
  EX_FIELD_TYPE_INVALID = 0 , EX_FIELD_TYPE_USER_DEFINED , EX_FIELD_TYPE_SEQUENCE , EX_BASIS ,
  EX_QUADRATURE , EX_SCALAR , EX_VECTOR_1D , EX_VECTOR_2D ,
  EX_VECTOR_3D , EX_QUATERNION_2D , EX_QUATERNION_3D , EX_FULL_TENSOR_36 ,
  EX_FULL_TENSOR_32 , EX_FULL_TENSOR_22 , EX_FULL_TENSOR_16 , EX_FULL_TENSOR_12 ,
  EX_SYM_TENSOR_33 , EX_SYM_TENSOR_31 , EX_SYM_TENSOR_21 , EX_SYM_TENSOR_13 ,
  EX_SYM_TENSOR_11 , EX_SYM_TENSOR_10 , EX_ASYM_TENSOR_03 , EX_ASYM_TENSOR_02 ,
  EX_ASYM_TENSOR_01 , EX_MATRIX_2X2 , EX_MATRIX_3X3
}
 
enum  ex_options {
  EX_DEFAULT = 0 , EX_VERBOSE = 1 , EX_DEBUG = 2 , EX_ABORT = 4 ,
  EX_NULLVERBOSE = 8
}
 
enum  ex_type { EX_INTEGER = NC_INT , EX_DOUBLE = NC_DOUBLE , EX_CHAR = NC_CHAR }
 
enum  ex_error_return_code {
  EX_MEMFAIL = 1000 , EX_BADFILEMODE = 1001 , EX_BADFILEID = 1002 , EX_WRONGFILETYPE = 1003 ,
  EX_LOOKUPFAIL = 1004 , EX_BADPARAM = 1005 , EX_INTERNAL = 1006 , EX_DUPLICATEID = 1007 ,
  EX_DUPLICATEOPEN = 1008 , EX_BADFILENAME = 1009 , EX_MSG = -1000 , EX_PRTLASTMSG = -1001 ,
  EX_NOTROOTID = -1002 , EX_LASTERR = -1003 , EX_NULLENTITY = -1006 , EX_NOENTITY = -1007 ,
  EX_NOTFOUND = -1008 , EX_INTSIZEMISMATCH , EX_FATAL = -1 , EX_NOERR = 0 ,
  EX_WARN = 1
}
 

Functions

int ex_close (int exoid)
 
int ex_copy (int in_exoid, int out_exoid)
 
int ex_copy_transient (int in_exoid, int out_exoid)
 
int ex_create_int (const char *rel_path, int cmode, int *comp_ws, int *io_ws, int run_version)
 
int ex_open_int (const char *rel_path, int mode, int *comp_ws, int *io_ws, float *version, int run_version)
 
int ex_get_group_id (int parent_id, const char *group_name, int *group_id)
 
int ex_get_group_ids (int parent_id, int *num_groups, int *group_ids)
 
int ex_get_info (int exoid, char **info)
 
int ex_get_qa (int exoid, char *qa_record[][4])
 
int ex_put_info (int exoid, int num_info, char *const info[])
 
int ex_put_qa (int exoid, int num_qa_records, char *qa_record[][4])
 
int ex_update (int exoid)
 
int ex_get_num_props (int exoid, ex_entity_type obj_type)
 
int ex_large_model (int exoid)
 
size_t ex_header_size (int exoid)
 
void ex_err (const char *module_name, const char *message, int err_num)
 
void ex_err_fn (int exoid, const char *module_name, const char *message, int err_num)
 
void ex_set_err (const char *module_name, const char *message, int err_num)
 
const char * ex_strerror (int err_num)
 
void ex_get_err (const char **msg, const char **func, int *err_num)
 
int ex_opts (int options)
 
int ex_inquire (int exoid, ex_inquiry req_info, void_int *ret_int, float *ret_float, char *ret_char)
 
int64_t ex_inquire_int (int exoid, ex_inquiry req_info)
 
unsigned ex_int64_status (int exoid)
 
int ex_set_int64_status (int exoid, int mode)
 
void ex_print_config (void)
 
const char * ex_config (void)
 
int ex_set_max_name_length (int exoid, int length)
 
int ex_set_option (int exoid, ex_option_type option, int option_value)
 
int ex_cvt_nodes_to_sides (int exoid, void_int *num_elem_per_set, void_int *num_nodes_per_set, void_int *side_sets_elem_index, void_int *side_sets_node_index, void_int *side_sets_elem_list, void_int *side_sets_node_list, void_int *side_sets_side_list)
 
int ex_get_time (int exoid, int time_step, void *time_value)
 
int ex_get_variable_names (int exoid, ex_entity_type obj_type, int num_vars, char *var_names[])
 
int ex_get_variable_name (int exoid, ex_entity_type obj_type, int var_num, char *var_name)
 
int ex_get_variable_param (int exoid, ex_entity_type obj_type, int *num_vars)
 
int ex_get_reduction_variable_names (int exoid, ex_entity_type obj_type, int num_vars, char *var_names[])
 
int ex_get_reduction_variable_name (int exoid, ex_entity_type obj_type, int var_num, char *var_name)
 
int ex_get_reduction_variable_param (int exoid, ex_entity_type obj_type, int *num_vars)
 
int ex_get_object_truth_vector (int exoid, ex_entity_type obj_type, ex_entity_id entity_id, int num_var, int *var_vec)
 
int ex_get_truth_table (int exoid, ex_entity_type obj_type, int num_blk, int num_var, int *var_tab)
 
int ex_put_all_var_param (int exoid, int num_g, int num_n, int num_e, const int *elem_var_tab, int num_m, const int *nset_var_tab, int num_s, const int *sset_var_tab)
 
int ex_put_time (int exoid, int time_step, const void *time_value)
 
int ex_get_all_times (int exoid, void *time_values)
 
int ex_put_variable_name (int exoid, ex_entity_type obj_type, int var_num, const char *var_name)
 
int ex_put_variable_names (int exoid, ex_entity_type obj_type, int num_vars, char *const var_names[])
 
int ex_put_variable_param (int exoid, ex_entity_type obj_type, int num_vars)
 
int ex_put_reduction_variable_name (int exoid, ex_entity_type obj_type, int var_num, const char *var_name)
 
int ex_put_reduction_variable_names (int exoid, ex_entity_type obj_type, int num_vars, char *const var_names[])
 
int ex_put_reduction_variable_param (int exoid, ex_entity_type obj_type, int num_vars)
 
int ex_put_truth_table (int exoid, ex_entity_type obj_type, int num_blk, int num_var, const int *var_tab)
 
int ex_put_all_var_param_ext (int exoid, const ex_var_params *vp)
 
int ex_put_var (int exoid, int time_step, ex_entity_type var_type, int var_index, ex_entity_id obj_id, int64_t num_entries_this_obj, const void *var_vals)
 
int ex_put_var_multi_time (int exoid, ex_entity_type var_type, int var_index, ex_entity_id obj_id, int64_t num_entries_this_obj, int beg_time_step, int end_time_step, const void *var_vals)
 
int ex_put_partial_var (int exoid, int time_step, ex_entity_type var_type, int var_index, ex_entity_id obj_id, int64_t start_index, int64_t num_entities, const void *var_vals)
 
int ex_put_reduction_vars (int exoid, int time_step, ex_entity_type obj_type, ex_entity_id obj_id, int64_t num_variables, const void *var_vals)
 
int ex_get_var (int exoid, int time_step, ex_entity_type var_type, int var_index, ex_entity_id obj_id, int64_t num_entry_this_obj, void *var_vals)
 
int ex_get_var_multi_time (int exoid, ex_entity_type var_type, int var_index, ex_entity_id obj_id, int64_t num_entry_this_obj, int beg_time_step, int end_time_step, void *var_vals)
 
int ex_get_var_time (int exoid, ex_entity_type var_type, int var_index, ex_entity_id id, int beg_time_step, int end_time_step, void *var_vals)
 
int ex_get_partial_var (int exoid, int time_step, ex_entity_type var_type, int var_index, ex_entity_id obj_id, int64_t start_index, int64_t num_entities, void *var_vals)
 
int ex_get_reduction_vars (int exoid, int time_step, ex_entity_type obj_type, ex_entity_id obj_id, int64_t num_variables, void *var_vals)
 
int ex_get_init_info (int exoid, int *num_proc, int *num_proc_in_f, char *ftype)
 
int ex_put_init_info (int exoid, int num_proc, int num_proc_in_f, const char *ftype)
 
int ex_get_init_global (int exoid, void_int *num_nodes_g, void_int *num_elems_g, void_int *num_elem_blks_g, void_int *num_node_sets_g, void_int *num_side_sets_g)
 
int ex_put_init_global (int exoid, int64_t num_nodes_g, int64_t num_elems_g, int64_t num_elem_blks_g, int64_t num_node_sets_g, int64_t num_side_sets_g)
 
int ex_get_loadbal_param (int exoid, void_int *num_int_nodes, void_int *num_bor_nodes, void_int *num_ext_nodes, void_int *num_int_elems, void_int *num_bor_elems, void_int *num_node_cmaps, void_int *num_elem_cmaps, int processor)
 
int ex_put_loadbal_param (int exoid, int64_t num_int_nodes, int64_t num_bor_nodes, int64_t num_ext_nodes, int64_t num_int_elems, int64_t num_bor_elems, int64_t num_node_cmaps, int64_t num_elem_cmaps, int processor)
 
int ex_put_loadbal_param_cc (int exoid, const void_int *num_int_nodes, const void_int *num_bor_nodes, const void_int *num_ext_nodes, const void_int *num_int_elems, const void_int *num_bor_elems, const void_int *num_node_cmaps, const void_int *num_elem_cmaps)
 
char * ex_copy_string (char *dest, char const *source, size_t elements)
 
int ex_create_group (int parent_id, const char *group_name)
 
int ex_get_coord_names (int exoid, char **coord_names)
 
int ex_get_coord (int exoid, void *x_coor, void *y_coor, void *z_coor)
 
int ex_get_partial_coord_component (int exoid, int64_t start_node_num, int64_t num_nodes, int component, void *coor)
 
int ex_get_partial_coord (int exoid, int64_t start_node_num, int64_t num_nodes, void *x_coor, void *y_coor, void *z_coor)
 
int ex_get_ids (int exoid, ex_entity_type obj_type, void_int *ids)
 
int ex_get_coordinate_frames (int exoid, int *nframes, void_int *cf_ids, void *pt_coordinates, char *tags)
 
int ex_put_init_ext (int exoid, const ex_init_params *model)
 
int ex_get_init_ext (int exoid, ex_init_params *info)
 
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)
 
int ex_put_init (int exoid, const char *title, int64_t num_dim, int64_t num_nodes, int64_t num_elem, int64_t num_elem_blk, int64_t num_node_sets, int64_t num_side_sets)
 
int ex_get_map (int exoid, void_int *elem_map)
 
int ex_get_map_param (int exoid, int *num_node_maps, int *num_elem_maps)
 
int ex_get_name (int exoid, ex_entity_type obj_type, ex_entity_id entity_id, char *name)
 
int ex_get_names (int exoid, ex_entity_type obj_type, char **names)
 
int ex_get_prop_array (int exoid, ex_entity_type obj_type, const char *prop_name, void_int *values)
 
int ex_get_prop (int exoid, ex_entity_type obj_type, ex_entity_id obj_id, const char *prop_name, void_int *value)
 
int ex_get_partial_num_map (int exoid, ex_entity_type map_type, ex_entity_id map_id, int64_t ent_start, int64_t ent_count, void_int *map)
 
int ex_get_prop_names (int exoid, ex_entity_type obj_type, char **prop_names)
 
int ex_add_attr (int exoid, ex_entity_type obj_type, ex_entity_id obj_id, int64_t num_attr_per_entry)
 
int ex_put_attr_param (int exoid, ex_entity_type obj_type, ex_entity_id obj_id, int num_attrs)
 
int ex_get_attr_param (int exoid, ex_entity_type obj_type, ex_entity_id obj_id, int *num_attrs)
 
int ex_put_concat_elem_block (int exoid, const void_int *elem_blk_id, char *const elem_type[], const void_int *num_elem_this_blk, const void_int *num_nodes_per_elem, const void_int *num_attr_this_blk, int define_maps)
 
int ex_put_coord_names (int exoid, char *const coord_names[])
 
int ex_put_coord (int exoid, const void *x_coor, const void *y_coor, const void *z_coor)
 
int ex_put_partial_coord_component (int exoid, int64_t start_node_num, int64_t num_nodes, int component, const void *coor)
 
int ex_put_partial_coord (int exoid, int64_t start_node_num, int64_t num_nodes, const void *x_coor, const void *y_coor, const void *z_coor)
 
int ex_put_map (int exoid, const void_int *elem_map)
 
int ex_put_id_map (int exoid, ex_entity_type map_type, const void_int *map)
 
int ex_put_partial_id_map (int exoid, ex_entity_type map_type, int64_t start_entity_num, int64_t num_entities, const void_int *map)
 
int ex_get_id_map (int exoid, ex_entity_type map_type, void_int *map)
 
int ex_get_partial_id_map (int exoid, ex_entity_type map_type, int64_t start_entity_num, int64_t num_entities, void_int *map)
 
int ex_get_block_id_map (int exoid, ex_entity_type map_type, ex_entity_id entity_id, void_int *map)
 
int ex_put_coordinate_frames (int exoid, int nframes, const void_int *cf_ids, const void *pt_coordinates, const char *tags)
 
int ex_put_map_param (int exoid, int num_node_maps, int num_elem_maps)
 
int ex_put_name (int exoid, ex_entity_type obj_type, ex_entity_id entity_id, const char *name)
 
int ex_put_names (int exoid, ex_entity_type obj_type, char *const names[])
 
int ex_put_partial_one_attr (int exoid, ex_entity_type obj_type, ex_entity_id obj_id, int64_t start_num, int64_t num_ent, int attrib_index, const void *attrib)
 
int ex_put_prop (int exoid, ex_entity_type obj_type, ex_entity_id obj_id, const char *prop_name, ex_entity_id value)
 
int ex_put_prop_array (int exoid, ex_entity_type obj_type, const char *prop_name, const void_int *values)
 
int ex_put_prop_names (int exoid, ex_entity_type obj_type, int num_props, char **prop_names)
 
int ex_put_num_map (int exoid, ex_entity_type map_type, ex_entity_id map_id, const void_int *map)
 
int ex_get_num_map (int exoid, ex_entity_type map_type, ex_entity_id map_id, void_int *map)
 
int ex_put_block (int exoid, ex_entity_type blk_type, ex_entity_id blk_id, const char *entry_descrip, int64_t num_entries_this_blk, int64_t num_nodes_per_entry, int64_t num_edges_per_entry, int64_t num_faces_per_entry, int64_t num_attr_per_entry)
 
int ex_get_block (int exoid, ex_entity_type blk_type, ex_entity_id blk_id, char *elem_type, void_int *num_entries_this_blk, void_int *num_nodes_per_entry, void_int *num_edges_per_entry, void_int *num_faces_per_entry, void_int *num_attr_per_entry)
 
int ex_get_block_param (int exoid, ex_block *block)
 
int ex_put_block_param (int exoid, const ex_block block)
 
int ex_get_block_params (int exoid, size_t block_count, struct ex_block **blocks)
 
int ex_put_block_params (int exoid, size_t block_count, const struct ex_block *blocks)
 
int ex_put_concat_all_blocks (int exoid, const ex_block_params *param)
 
int ex_put_entity_count_per_polyhedra (int exoid, ex_entity_type blk_type, ex_entity_id blk_id, const int *entity_counts)
 
int ex_get_entity_count_per_polyhedra (int exoid, ex_entity_type blk_type, ex_entity_id blk_id, int *entity_counts)
 
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)
 
int ex_get_conn (int exoid, ex_entity_type blk_type, ex_entity_id blk_id, void_int *nodeconn, void_int *edgeconn, void_int *faceconn)
 
int ex_get_partial_conn (int exoid, ex_entity_type blk_type, ex_entity_id blk_id, int64_t start_num, int64_t num_ent, void_int *nodeconn, void_int *edgeconn, void_int *faceconn)
 
int ex_put_partial_conn (int exoid, ex_entity_type blk_type, ex_entity_id blk_id, int64_t start_num, int64_t num_ent, const void_int *nodeconn, const void_int *edgeconn, const void_int *faceconn)
 
int ex_put_attr (int exoid, ex_entity_type blk_type, ex_entity_id blk_id, const void *attrib)
 
int ex_put_partial_attr (int exoid, ex_entity_type blk_type, ex_entity_id blk_id, int64_t start_entity, int64_t num_entity, const void *attrib)
 
int ex_get_attr (int exoid, ex_entity_type obj_type, ex_entity_id obj_id, void *attrib)
 
int ex_get_partial_attr (int exoid, ex_entity_type obj_type, ex_entity_id obj_id, int64_t start_num, int64_t num_ent, void *attrib)
 
int ex_put_one_attr (int exoid, ex_entity_type obj_type, ex_entity_id obj_id, int attrib_index, const void *attrib)
 
int ex_get_one_attr (int exoid, ex_entity_type obj_type, ex_entity_id obj_id, int attrib_index, void *attrib)
 
int ex_get_partial_one_attr (int exoid, ex_entity_type obj_type, ex_entity_id obj_id, int64_t start_num, int64_t num_ent, int attrib_index, void *attrib)
 
int ex_put_attr_names (int exoid, ex_entity_type blk_type, ex_entity_id blk_id, char **names)
 
int ex_get_attr_names (int exoid, ex_entity_type obj_type, ex_entity_id obj_id, char **names)
 
int ex_put_assembly (int exoid, const struct ex_assembly assembly)
 
int ex_get_assembly (int exoid, struct ex_assembly *assembly)
 
int ex_put_assemblies (int exoid, size_t count, const struct ex_assembly *assemblies)
 
int ex_get_assemblies (int exoid, struct ex_assembly *assemblies)
 
int ex_put_blob (int exoid, const struct ex_blob blob)
 
int ex_get_blob (int exoid, struct ex_blob *blob)
 
int ex_put_blobs (int exoid, size_t count, const struct ex_blob *blobs)
 
int ex_get_blobs (int exoid, struct ex_blob *blobs)
 
int ex_put_multi_field_metadata (int exoid, const ex_field *field, const int field_count)
 
int ex_put_field_metadata (int exoid, const ex_field field)
 
int ex_put_field_suffices (int exoid, const ex_field field, const char *suffices)
 
int ex_get_field_metadata (int exoid, ex_field *field)
 
int ex_get_field_metadata_count (int exoid, ex_entity_type obj_type, ex_entity_id id)
 
int ex_get_field_suffices (int exoid, const ex_field field, char *suffices)
 
int ex_get_basis_count (int exoid)
 
int ex_get_basis (int exoid, ex_basis **pbasis, int *num_basis)
 
int ex_put_basis (int exoid, const ex_basis basis)
 
int ex_get_quadrature_count (int exoid)
 
int ex_get_quadrature (int exoid, ex_quadrature **pquad, int *num_quad)
 
int ex_put_quadrature (int exoid, const ex_quadrature quad)
 
int ex_put_attribute (int exoid, const ex_attribute attributes)
 
int ex_put_attributes (int exoid, size_t attr_count, const ex_attribute *attributes)
 
int ex_put_double_attribute (int exoid, ex_entity_type obj_type, ex_entity_id id, const char *atr_name, int num_values, const double *values)
 
int ex_put_integer_attribute (int exoid, ex_entity_type obj_type, ex_entity_id id, const char *atr_name, int num_values, const void_int *values)
 
int ex_put_text_attribute (int exoid, ex_entity_type obj_type, ex_entity_id id, const char *atr_name, const char *value)
 
int ex_get_attribute (int exoid, ex_attribute *attributes)
 
int ex_get_attributes (int exoid, size_t count, ex_attribute *attributes)
 
int ex_get_attribute_count (int exoid, ex_entity_type obj_type, ex_entity_id id)
 
int ex_get_attribute_param (int exoid, ex_entity_type obj_type, ex_entity_id id, ex_attribute *attributes)
 
int ex_put_set_param (int exoid, ex_entity_type set_type, ex_entity_id set_id, int64_t num_entries_in_set, int64_t num_dist_fact_in_set)
 
int ex_get_set_param (int exoid, ex_entity_type set_type, ex_entity_id set_id, void_int *num_entry_in_set, void_int *num_dist_fact_in_set)
 
int ex_put_set (int exoid, ex_entity_type set_type, ex_entity_id set_id, const void_int *set_entry_list, const void_int *set_extra_list)
 
int ex_get_partial_set (int exoid, ex_entity_type set_type, ex_entity_id set_id, int64_t offset, int64_t num_to_get, void_int *set_entry_list, void_int *set_extra_list)
 
int ex_put_partial_set (int exoid, ex_entity_type set_type, ex_entity_id set_id, int64_t offset, int64_t num_to_put, const void_int *set_entry_list, const void_int *set_extra_list)
 
int ex_get_set (int exoid, ex_entity_type set_type, ex_entity_id set_id, void_int *set_entry_list, void_int *set_extra_list)
 
int ex_put_set_dist_fact (int exoid, ex_entity_type set_type, ex_entity_id set_id, const void *set_dist_fact)
 
int ex_get_set_dist_fact (int exoid, ex_entity_type set_type, ex_entity_id set_id, void *set_dist_fact)
 
int ex_get_partial_set_dist_fact (int exoid, ex_entity_type set_type, ex_entity_id set_id, int64_t offset, int64_t num_to_put, void *set_dist_fact)
 
int ex_put_concat_sets (int exoid, ex_entity_type set_type, const struct ex_set_specs *set_specs)
 
int ex_get_concat_sets (int exoid, ex_entity_type set_type, struct ex_set_specs *set_specs)
 
int ex_put_sets (int exoid, size_t set_count, const struct ex_set *sets)
 
int ex_get_sets (int exoid, size_t set_count, struct ex_set *sets)
 
int ex_put_partial_num_map (int exoid, ex_entity_type map_type, ex_entity_id map_id, int64_t ent_start, int64_t ent_count, const void_int *map)
 
int ex_put_partial_set_dist_fact (int exoid, ex_entity_type set_type, ex_entity_id set_id, int64_t offset, int64_t num_to_put, const void *set_dist_fact)
 
int ex_get_concat_side_set_node_count (int exoid, int *side_set_node_cnt_list)
 
int ex_get_side_set_node_list_len (int exoid, ex_entity_id side_set_id, void_int *side_set_node_list_len)
 
int ex_get_side_set_node_count (int exoid, ex_entity_id side_set_id, int *side_set_node_cnt_list)
 
int ex_get_side_set_node_list (int exoid, ex_entity_id side_set_id, void_int *side_set_node_cnt_list, void_int *side_set_node_list)
 
int ex_get_ns_param_global (int exoid, void_int *global_ids, void_int *node_cnts, void_int *df_cnts)
 
int ex_put_ns_param_global (int exoid, const void_int *global_ids, const void_int *node_cnts, const void_int *df_cnts)
 
int ex_get_ss_param_global (int exoid, void_int *global_ids, void_int *side_cnts, void_int *df_cnts)
 
int ex_put_ss_param_global (int exoid, const void_int *global_ids, const void_int *side_cnts, const void_int *df_cnts)
 
int ex_get_eb_info_global (int exoid, void_int *el_blk_ids, void_int *el_blk_cnts)
 
int ex_put_eb_info_global (int exoid, const void_int *el_blk_ids, const void_int *el_blk_cnts)
 
int ex_get_elem_type (int exoid, ex_entity_id elem_blk_id, char *elem_type)
 
int ex_get_processor_node_maps (int exoid, void_int *node_mapi, void_int *node_mapb, void_int *node_mape, int processor)
 
int ex_put_processor_node_maps (int exoid, const void_int *node_mapi, const void_int *node_mapb, const void_int *node_mape, int proc_id)
 
int ex_get_processor_elem_maps (int exoid, void_int *elem_mapi, void_int *elem_mapb, int processor)
 
int ex_put_processor_elem_maps (int exoid, const void_int *elem_mapi, const void_int *elem_mapb, int processor)
 
int ex_get_cmap_params (int exoid, void_int *node_cmap_ids, void_int *node_cmap_node_cnts, void_int *elem_cmap_ids, void_int *elem_cmap_elem_cnts, int processor)
 
int ex_put_cmap_params (int exoid, const void_int *node_cmap_ids, const void_int *node_cmap_node_cnts, const void_int *elem_cmap_ids, const void_int *elem_cmap_elem_cnts, int64_t processor)
 
int ex_put_cmap_params_cc (int exoid, const void_int *node_cmap_ids, const void_int *node_cmap_node_cnts, const void_int *node_proc_ptrs, const void_int *elem_cmap_ids, const void_int *elem_cmap_elem_cnts, const void_int *elem_proc_ptrs)
 
int ex_get_node_cmap (int exoid, ex_entity_id map_id, void_int *node_ids, void_int *proc_ids, int processor)
 
int ex_put_node_cmap (int exoid, ex_entity_id map_id, const void_int *node_ids, const void_int *proc_ids, int processor)
 
int ex_put_partial_node_cmap (int exoid, ex_entity_id map_id, int64_t start_entity_num, int64_t num_entities, const void_int *node_ids, const void_int *proc_ids, int processor)
 
int ex_get_elem_cmap (int exoid, ex_entity_id map_id, void_int *elem_ids, void_int *side_ids, void_int *proc_ids, int processor)
 
int ex_put_elem_cmap (int exoid, ex_entity_id map_id, const void_int *elem_ids, const void_int *side_ids, const void_int *proc_ids, int processor)
 
int ex_initialize_basis_struct (ex_basis *basis, size_t num_basis, int mode)
 
int ex_initialize_quadrature_struct (ex_quadrature *quad, size_t num_quad, int mode)
 
const char * ex_component_field_name (ex_field *field, int component[EX_MAX_FIELD_NESTING])
 
const char * ex_field_component_suffix (ex_field *field, int nest_level, int component)
 
int ex_field_cardinality (const ex_field_type field_type)
 
const char * ex_field_type_name (const ex_field_type field_type)
 
ex_field_type ex_string_to_field_type_enum (const char *field_name)
 
const char * ex_field_type_enum_to_string (const ex_field_type field_type)
 
SEACAS_DEPRECATED int ex_get_glob_vars (int exoid, int time_step, int num_glob_vars, void *glob_var_vals)
 
SEACAS_DEPRECATED int ex_get_glob_var_time (int exoid, int glob_var_index, int beg_time_step, int end_time_step, void *glob_var_vals)
 
SEACAS_DEPRECATED int ex_get_concat_node_sets (int exoid, void_int *node_set_ids, void_int *num_nodes_per_set, void_int *num_df_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)
 
SEACAS_DEPRECATED int ex_get_concat_side_sets (int exoid, void_int *side_set_ids, void_int *num_elem_per_set, void_int *num_dist_per_set, void_int *side_sets_elem_index, void_int *side_sets_dist_index, void_int *side_sets_elem_list, void_int *side_sets_side_list, void *side_sets_dist_fact)
 
SEACAS_DEPRECATED int ex_get_elem_attr (int exoid, ex_entity_id elem_blk_id, void *attrib)
 
SEACAS_DEPRECATED int ex_get_elem_attr_names (int exoid, ex_entity_id elem_blk_id, char **names)
 
SEACAS_DEPRECATED int ex_get_elem_blk_ids (int exoid, void_int *ids)
 
SEACAS_DEPRECATED int ex_get_elem_block (int exoid, ex_entity_id elem_blk_id, char *elem_type, void_int *num_elem_this_blk, void_int *num_nodes_per_elem, void_int *num_attr)
 
SEACAS_DEPRECATED int ex_get_elem_conn (int exoid, ex_entity_id elem_blk_id, void_int *connect)
 
SEACAS_DEPRECATED int ex_get_elem_map (int exoid, ex_entity_id map_id, void_int *elem_map)
 
SEACAS_DEPRECATED int ex_get_elem_num_map (int exoid, void_int *elem_map)
 
SEACAS_DEPRECATED int ex_get_nodal_var (int exoid, int time_step, int nodal_var_index, int64_t num_nodes, void *nodal_var_vals)
 
SEACAS_DEPRECATED int ex_put_nodal_var (int exoid, int time_step, int nodal_var_index, int64_t num_nodes, const void *nodal_var_vals)
 
SEACAS_DEPRECATED int ex_get_nodal_var_time (int exoid, int nodal_var_index, int64_t node_number, int beg_time_step, int end_time_step, void *nodal_var_vals)
 
SEACAS_DEPRECATED int ex_put_partial_nodal_var (int exoid, int time_step, int nodal_var_index, int64_t start_node, int64_t num_nodes, const void *nodal_var_vals)
 
SEACAS_DEPRECATED int ex_get_partial_nodal_var (int exoid, int time_step, int nodal_var_index, int64_t start_node, int64_t num_nodes, void *var_vals)
 
SEACAS_DEPRECATED int ex_get_elem_var (int exoid, int time_step, int elem_var_index, ex_entity_id elem_blk_id, int64_t num_elem_this_blk, void *elem_var_vals)
 
SEACAS_DEPRECATED int ex_get_elem_var_tab (int exoid, int num_elem_blk, int num_elem_var, int *elem_var_tab)
 
SEACAS_DEPRECATED int ex_get_elem_var_time (int exoid, int elem_var_index, int64_t elem_number, int beg_time_step, int end_time_step, void *elem_var_vals)
 
SEACAS_DEPRECATED int ex_get_node_map (int exoid, ex_entity_id map_id, void_int *node_map)
 
SEACAS_DEPRECATED int ex_get_node_num_map (int exoid, void_int *node_map)
 
SEACAS_DEPRECATED int ex_get_node_set_param (int exoid, ex_entity_id node_set_id, void_int *num_nodes_in_set, void_int *num_df_in_set)
 
SEACAS_DEPRECATED int ex_get_node_set (int exoid, ex_entity_id node_set_id, void_int *node_set_node_list)
 
SEACAS_DEPRECATED int ex_get_node_set_dist_fact (int exoid, ex_entity_id node_set_id, void *node_set_dist_fact)
 
SEACAS_DEPRECATED int ex_get_node_set_ids (int exoid, void_int *ids)
 
SEACAS_DEPRECATED int ex_get_nset_var_tab (int exoid, int num_nodesets, int num_nset_var, int *nset_var_tab)
 
SEACAS_DEPRECATED int ex_get_nset_var (int exoid, int time_step, int nset_var_index, ex_entity_id nset_id, int64_t num_node_this_nset, void *nset_var_vals)
 
SEACAS_DEPRECATED int ex_get_one_elem_attr (int exoid, ex_entity_id elem_blk_id, int attrib_index, void *attrib)
 
SEACAS_DEPRECATED int ex_get_side_set (int exoid, ex_entity_id side_set_id, void_int *side_set_elem_list, void_int *side_set_side_list)
 
SEACAS_DEPRECATED int ex_get_side_set_dist_fact (int exoid, ex_entity_id side_set_id, void *side_set_dist_fact)
 
SEACAS_DEPRECATED int ex_get_side_set_ids (int exoid, void_int *ids)
 
SEACAS_DEPRECATED int ex_get_side_set_param (int exoid, ex_entity_id side_set_id, void_int *num_side_in_set, void_int *num_dist_fact_in_set)
 
SEACAS_DEPRECATED int ex_get_sset_var (int exoid, int time_step, int sset_var_index, ex_entity_id sset_id, int64_t num_side_this_sset, void *sset_var_vals)
 
SEACAS_DEPRECATED int ex_get_sset_var_tab (int exoid, int num_sidesets, int num_sset_var, int *sset_var_tab)
 
SEACAS_DEPRECATED int ex_get_var_names (int exoid, const char *var_type, int num_vars, char *var_names[])
 
SEACAS_DEPRECATED int ex_get_var_name (int exoid, const char *var_type, int var_num, char *var_name)
 
SEACAS_DEPRECATED int ex_get_var_param (int exoid, const char *var_type, int *num_vars)
 
SEACAS_DEPRECATED int ex_get_var_tab (int exoid, const char *var_type, int num_blk, int num_var, int *var_tab)
 
SEACAS_DEPRECATED 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)
 
SEACAS_DEPRECATED int ex_put_concat_side_sets (int exoid, void_int *side_set_ids, void_int *num_elem_per_set, void_int *num_dist_per_set, void_int *side_sets_elem_index, void_int *side_sets_dist_index, void_int *side_sets_elem_list, void_int *side_sets_side_list, void *side_sets_dist_fact)
 
SEACAS_DEPRECATED int ex_put_concat_var_param (int exoid, int num_g, int num_n, int num_e, int num_elem_blk, int *elem_var_tab)
 
SEACAS_DEPRECATED int ex_put_elem_attr_names (int exoid, ex_entity_id elem_blk_id, char *names[])
 
SEACAS_DEPRECATED int ex_put_elem_attr (int exoid, ex_entity_id elem_blk_id, const void *attrib)
 
SEACAS_DEPRECATED int ex_put_elem_block (int exoid, ex_entity_id elem_blk_id, const char *elem_type, int64_t num_elem_this_blk, int64_t num_nodes_per_elem, int64_t num_attr_per_elem)
 
SEACAS_DEPRECATED int ex_put_elem_conn (int exoid, ex_entity_id elem_blk_id, const void_int *connect)
 
SEACAS_DEPRECATED int ex_put_elem_map (int exoid, ex_entity_id map_id, const void_int *elem_map)
 
SEACAS_DEPRECATED int ex_put_elem_num_map (int exoid, const void_int *elem_map)
 
SEACAS_DEPRECATED int ex_put_elem_var (int exoid, int time_step, int elem_var_index, ex_entity_id elem_blk_id, int64_t num_elem_this_blk, const void *elem_var_vals)
 
SEACAS_DEPRECATED int ex_put_elem_var_tab (int exoid, int num_elem_blk, int num_elem_var, int *elem_var_tab)
 
SEACAS_DEPRECATED int ex_put_glob_vars (int exoid, int time_step, int num_glob_vars, const void *glob_var_vals)
 
SEACAS_DEPRECATED int ex_put_node_map (int exoid, ex_entity_id map_id, const void_int *node_map)
 
SEACAS_DEPRECATED int ex_put_node_num_map (int exoid, const void_int *node_map)
 
SEACAS_DEPRECATED int ex_put_node_set (int exoid, ex_entity_id node_set_id, const void_int *node_set_node_list)
 
SEACAS_DEPRECATED int ex_put_node_set_dist_fact (int exoid, ex_entity_id node_set_id, const void *node_set_dist_fact)
 
SEACAS_DEPRECATED int ex_put_node_set_param (int exoid, ex_entity_id node_set_id, int64_t num_nodes_in_set, int64_t num_dist_in_set)
 
SEACAS_DEPRECATED int ex_put_nset_var (int exoid, int time_step, int nset_var_index, ex_entity_id nset_id, int64_t num_nodes_this_nset, const void *nset_var_vals)
 
SEACAS_DEPRECATED int ex_put_nset_var_tab (int exoid, int num_nset, int num_nset_var, int *nset_var_tab)
 
SEACAS_DEPRECATED int ex_put_one_elem_attr (int exoid, ex_entity_id elem_blk_id, int attrib_index, const void *attrib)
 
SEACAS_DEPRECATED int ex_put_side_set (int exoid, ex_entity_id side_set_id, const void_int *side_set_elem_list, const void_int *side_set_side_list)
 
SEACAS_DEPRECATED int ex_put_side_set_dist_fact (int exoid, ex_entity_id side_set_id, const void *side_set_dist_fact)
 
SEACAS_DEPRECATED int ex_put_side_set_param (int exoid, ex_entity_id side_set_id, int64_t num_side_in_set, int64_t num_dist_fact_in_set)
 
SEACAS_DEPRECATED int ex_put_sset_var (int exoid, int time_step, int sset_var_index, ex_entity_id sset_id, int64_t num_faces_this_sset, const void *sset_var_vals)
 
SEACAS_DEPRECATED int ex_put_sset_var_tab (int exoid, int num_sset, int num_sset_var, int *sset_var_tab)
 
SEACAS_DEPRECATED int ex_put_var_name (int exoid, const char *var_type, int var_num, const char *var_name)
 
SEACAS_DEPRECATED int ex_put_var_names (int exoid, const char *var_type, int num_vars, char *var_names[])
 
SEACAS_DEPRECATED int ex_put_var_param (int exoid, const char *var_type, int num_vars)
 
SEACAS_DEPRECATED int ex_put_var_tab (int exoid, const char *var_type, int num_blk, int num_var, int *var_tab)
 
SEACAS_DEPRECATED int ex_get_n_coord (int exoid, int64_t start_node_num, int64_t num_nodes, void *x_coor, void *y_coor, void *z_coor)
 
SEACAS_DEPRECATED int ex_get_n_nodal_var (int exoid, int time_step, int nodal_var_index, int64_t start_node, int64_t num_nodes, void *var_vals)
 
SEACAS_DEPRECATED int ex_get_n_conn (int exoid, ex_entity_type blk_type, ex_entity_id blk_id, int64_t start_num, int64_t num_ent, void_int *nodeconn, void_int *edgeconn, void_int *faceconn)
 
SEACAS_DEPRECATED int ex_get_n_attr (int exoid, ex_entity_type obj_type, ex_entity_id obj_id, int64_t start_num, int64_t num_ent, void *attrib)
 
SEACAS_DEPRECATED int ex_get_n_one_attr (int exoid, ex_entity_type obj_type, ex_entity_id obj_id, int64_t start_num, int64_t num_ent, int attrib_index, void *attrib)
 
SEACAS_DEPRECATED int ex_get_n_var (int exoid, int time_step, ex_entity_type var_type, int var_index, ex_entity_id obj_id, int64_t start_index, int64_t num_entities, void *var_vals)
 
SEACAS_DEPRECATED int ex_get_n_elem_var (int exoid, int time_step, int elem_var_index, ex_entity_id elem_blk_id, int64_t num_elem_this_blk, int64_t start_elem_num, int64_t num_elem, void *elem_var_vals)
 
SEACAS_DEPRECATED int ex_get_n_side_set (int exoid, ex_entity_id side_set_id, int64_t start_side_num, int64_t num_sides, void_int *side_set_elem_list, void_int *side_set_side_list)
 
SEACAS_DEPRECATED int ex_put_n_side_set (int exoid, ex_entity_id side_set_id, int64_t start_side_num, int64_t num_sides, const void_int *side_set_elem_list, const void_int *side_set_side_list)
 
SEACAS_DEPRECATED int ex_get_n_side_set_df (int exoid, ex_entity_id side_set_id, int64_t start_num, int64_t num_df_to_get, void *side_set_dist_fact)
 
SEACAS_DEPRECATED int ex_put_n_side_set_df (int exoid, ex_entity_id side_set_id, int64_t start_num, int64_t num_df_to_get, void *side_set_dist_fact)
 
SEACAS_DEPRECATED int ex_get_n_node_set (int exoid, ex_entity_id node_set_id, int64_t start_node_num, int64_t num_nodes, void_int *node_set_node_list)
 
SEACAS_DEPRECATED int ex_put_n_node_set (int exoid, ex_entity_id node_set_id, int64_t start_node_num, int64_t num_nodes, const void_int *node_set_node_list)
 
SEACAS_DEPRECATED int ex_get_n_node_set_df (int exoid, ex_entity_id node_set_id, int64_t start_num, int64_t num_df_to_get, void *node_set_dist_fact)
 
SEACAS_DEPRECATED int ex_put_n_node_set_df (int exoid, ex_entity_id node_set_id, int64_t start_num, int64_t num_df_to_get, void *node_set_dist_fact)
 
SEACAS_DEPRECATED int ex_get_n_elem_conn (int exoid, ex_entity_id elem_blk_id, int64_t start_elem_num, int64_t num_elems, void_int *connect)
 
SEACAS_DEPRECATED int ex_put_n_elem_conn (int exoid, ex_entity_id elem_blk_id, int64_t start_elem_num, int64_t num_elems, const void_int *connect)
 
SEACAS_DEPRECATED int ex_get_n_elem_attr (int exoid, ex_entity_id elem_blk_id, int64_t start_elem_num, int64_t num_elems, void *attrib)
 
SEACAS_DEPRECATED int ex_put_n_elem_attr (int exoid, ex_entity_id elem_blk_id, int64_t start_elem_num, int64_t num_elems, void *attrib)
 
SEACAS_DEPRECATED int ex_get_n_elem_num_map (int exoid, int64_t start_ent, int64_t num_ents, void_int *elem_map)
 
SEACAS_DEPRECATED int ex_get_n_node_num_map (int exoid, int64_t start_ent, int64_t num_ents, void_int *node_map)
 
SEACAS_DEPRECATED int ex_put_n_coord (int exoid, int64_t start_node_num, int64_t num_nodes, const void *x_coor, const void *y_coor, const void *z_coor)
 
SEACAS_DEPRECATED int ex_put_n_elem_num_map (int exoid, int64_t start_ent, int64_t num_ents, const void_int *elem_map)
 
SEACAS_DEPRECATED int ex_put_n_node_num_map (int exoid, int64_t start_ent, int64_t num_ents, const void_int *node_map)
 
SEACAS_DEPRECATED int ex_put_n_one_attr (int exoid, ex_entity_type obj_type, ex_entity_id obj_id, int64_t start_num, int64_t num_ent, int attrib_index, const void *attrib)
 
SEACAS_DEPRECATED int ex_put_n_var (int exoid, int time_step, ex_entity_type var_type, int var_index, ex_entity_id obj_id, int64_t start_index, int64_t num_entities, const void *var_vals)
 
SEACAS_DEPRECATED int ex_put_n_nodal_var (int exoid, int time_step, int nodal_var_index, int64_t start_node, int64_t num_nodes, const void *nodal_var_vals)
 
SEACAS_DEPRECATED int ex_get_partial_elem_var (int exoid, int time_step, int elem_var_index, ex_entity_id elem_blk_id, int64_t num_elem_this_blk, int64_t start_elem_num, int64_t num_elem, void *elem_var_vals)
 
SEACAS_DEPRECATED int ex_get_partial_elem_map (int exoid, ex_entity_id map_id, int64_t ent_start, int64_t ent_count, void_int *elem_map)
 
SEACAS_DEPRECATED int ex_get_partial_elem_conn (int exoid, ex_entity_id elem_blk_id, int64_t start_elem_num, int64_t num_elems, void_int *connect)
 
SEACAS_DEPRECATED int ex_get_partial_elem_attr (int exoid, ex_entity_id elem_blk_id, int64_t start_elem_num, int64_t num_elems, void *attrib)
 
SEACAS_DEPRECATED int ex_get_partial_elem_num_map (int exoid, int64_t start_ent, int64_t num_ents, void_int *elem_map)
 
SEACAS_DEPRECATED int ex_get_partial_node_num_map (int exoid, int64_t start_ent, int64_t num_ents, void_int *node_map)
 
SEACAS_DEPRECATED int ex_get_partial_node_set (int exoid, ex_entity_id node_set_id, int64_t start_node_num, int64_t num_nodes, void_int *node_set_node_list)
 
SEACAS_DEPRECATED int ex_get_partial_node_set_df (int exoid, ex_entity_id node_set_id, int64_t start_num, int64_t num_df_to_get, void *node_set_dist_fact)
 
SEACAS_DEPRECATED int ex_get_partial_side_set (int exoid, ex_entity_id side_set_id, int64_t start_side_num, int64_t num_sides, void_int *side_set_elem_list, void_int *side_set_side_list)
 
SEACAS_DEPRECATED int ex_get_partial_side_set_df (int exoid, ex_entity_id side_set_id, int64_t start_num, int64_t num_df_to_get, void *side_set_dist_fact)
 
SEACAS_DEPRECATED int ex_put_partial_node_num_map (int exoid, int64_t start_ent, int64_t num_ents, const void_int *node_map)
 
SEACAS_DEPRECATED int ex_put_partial_elem_num_map (int exoid, int64_t start_ent, int64_t num_ents, const void_int *elem_map)
 
SEACAS_DEPRECATED int ex_put_partial_elem_map (int exoid, ex_entity_id map_id, int64_t ent_start, int64_t ent_count, const void_int *elem_map)
 
SEACAS_DEPRECATED int ex_put_partial_side_set (int exoid, ex_entity_id side_set_id, int64_t start_side_num, int64_t num_sides, const void_int *side_set_elem_list, const void_int *side_set_side_list)
 
SEACAS_DEPRECATED int ex_put_partial_side_set_df (int exoid, ex_entity_id side_set_id, int64_t start_num, int64_t num_df_to_get, void *side_set_dist_fact)
 
SEACAS_DEPRECATED int ex_put_partial_node_set (int exoid, ex_entity_id node_set_id, int64_t start_node_num, int64_t num_nodes, const void_int *node_set_node_list)
 
SEACAS_DEPRECATED int ex_put_partial_node_set_df (int exoid, ex_entity_id node_set_id, int64_t start_num, int64_t num_df_to_get, void *node_set_dist_fact)
 
SEACAS_DEPRECATED int ex_put_partial_elem_conn (int exoid, ex_entity_id elem_blk_id, int64_t start_elem_num, int64_t num_elems, const void_int *connect)
 
SEACAS_DEPRECATED int ex_put_partial_elem_attr (int exoid, ex_entity_id elem_blk_id, int64_t start_elem_num, int64_t num_elems, void *attrib)
 
SEACAS_DEPRECATED int ex_put_elem_var_slab (int exoid, int time_step, int elem_var_index, ex_entity_id elem_blk_id, int64_t start_pos, int64_t num_vals, void *elem_var_vals)
 
SEACAS_DEPRECATED int ex_put_nodal_var_slab (int exoid, int time_step, int nodal_var_index, int64_t start_pos, int64_t num_vals, void *nodal_var_vals)
 
char * ex_name_of_object (ex_entity_type obj_type)
 
ex_entity_type ex_var_type_to_ex_entity_type (char var_type)
 
int ex_set_parallel (int exoid, int is_parallel)
 
int ex_get_idx (int exoid, const char *ne_var_name, int64_t *my_index, int pos)
 

Variables

int exoptval
 
int exerrval
 

Macro Definition Documentation

◆ EX_API_VERS

#define EX_API_VERS   9.04f

◆ EX_API_VERS_NODOT

#define EX_API_VERS_NODOT   (100 * EXODUS_VERSION_MAJOR + EXODUS_VERSION_MINOR)

◆ EX_FALSE

#define EX_FALSE   0

◆ EX_INVALID_ID

#define EX_INVALID_ID   -1

The value used to indicate that an entity (block, nset, sset) has not had its id set to a valid value

◆ EX_MAX_FIELD_NESTING

#define EX_MAX_FIELD_NESTING   2

◆ EX_MAX_NAME

#define EX_MAX_NAME   NC_MAX_NAME

Maximum length of name permitted by NetCDF

◆ EX_TRUE

#define EX_TRUE   -1

◆ EX_VERS

#define EX_VERS   EX_API_VERS

◆ EXODUS_EXPORT

#define EXODUS_EXPORT   extern

◆ EXODUS_RELEASE_DATE

#define EXODUS_RELEASE_DATE   "November 5, 2024"

◆ EXODUS_VERSION

#define EXODUS_VERSION   "9.04"

◆ EXODUS_VERSION_MAJOR

#define EXODUS_VERSION_MAJOR   9

◆ EXODUS_VERSION_MINOR

#define EXODUS_VERSION_MINOR   4

◆ NEMESIS_API_VERSION

#define NEMESIS_API_VERSION   EX_API_VERS

◆ NEMESIS_API_VERSION_NODOT

#define NEMESIS_API_VERSION_NODOT   EX_API_VERS_NODOT

◆ NEMESIS_FILE_VERSION

#define NEMESIS_FILE_VERSION   2.6

◆ SEACAS_DEPRECATED

#define SEACAS_DEPRECATED

Typedef Documentation

◆ ex_basis

typedef struct ex_basis ex_basis

◆ ex_entity_id

typedef int64_t ex_entity_id

Specifies that this argument is the id of an entity: element block, nodeset, sideset, ...

◆ ex_entity_type

◆ ex_field

typedef struct ex_field ex_field

◆ ex_field_type

◆ ex_inquiry

typedef enum ex_inquiry ex_inquiry

◆ ex_options

typedef enum ex_options ex_options

◆ ex_quadrature

typedef struct ex_quadrature ex_quadrature

◆ void_int

typedef void void_int

The mechanism for passing double/float and int/int64_t both use a void*; to avoid some confusion as to whether a function takes an integer or a float/double, the following typedef is used for the integer argument

Enumeration Type Documentation

◆ ex_entity_type

Enumerator
EX_NODAL 

nodal "block" for variables

EX_NODE_BLOCK 

alias for EX_NODAL

EX_NODE_SET 

node set property code

EX_EDGE_BLOCK 

edge block property code

EX_EDGE_SET 

edge set property code

EX_FACE_BLOCK 

face block property code

EX_FACE_SET 

face set property code

EX_ELEM_BLOCK 

element block property code

EX_ELEM_SET 

face set property code

EX_SIDE_SET 

side set property code

EX_ELEM_MAP 

element map property code

EX_NODE_MAP 

node map property code

EX_EDGE_MAP 

edge map property code

EX_FACE_MAP 

face map property code

EX_GLOBAL 

global "block" for variables

EX_COORDINATE 

kluge so some internal wrapper functions work

EX_ASSEMBLY 

assembly property code

EX_BLOB 

blob property code

EX_INVALID 

◆ ex_field_type

Enumerator
EX_FIELD_TYPE_INVALID 
EX_FIELD_TYPE_USER_DEFINED 
EX_FIELD_TYPE_SEQUENCE 
EX_BASIS 
EX_QUADRATURE 
EX_SCALAR 
EX_VECTOR_1D 
EX_VECTOR_2D 
EX_VECTOR_3D 
EX_QUATERNION_2D 
EX_QUATERNION_3D 
EX_FULL_TENSOR_36 
EX_FULL_TENSOR_32 
EX_FULL_TENSOR_22 
EX_FULL_TENSOR_16 
EX_FULL_TENSOR_12 
EX_SYM_TENSOR_33 
EX_SYM_TENSOR_31 
EX_SYM_TENSOR_21 
EX_SYM_TENSOR_13 
EX_SYM_TENSOR_11 
EX_SYM_TENSOR_10 
EX_ASYM_TENSOR_03 
EX_ASYM_TENSOR_02 
EX_ASYM_TENSOR_01 
EX_MATRIX_2X2 
EX_MATRIX_3X3 

◆ ex_inquiry

enum ex_inquiry
See also
ex_inquire() All inquiries return an integer of the current database integer size unless otherwise noted.
Enumerator
EX_INQ_FILE_TYPE 

EXODUS file type (deprecated)

EX_INQ_API_VERS 

API version number (float)

EX_INQ_DB_VERS 

database version number (float)

EX_INQ_TITLE 

database title. MAX_LINE_LENGTH+1 char* size

EX_INQ_DIM 

number of dimensions

EX_INQ_NODES 

number of nodes

EX_INQ_ELEM 

number of elements

EX_INQ_ELEM_BLK 

number of element blocks

EX_INQ_NODE_SETS 

number of node sets

EX_INQ_NS_NODE_LEN 

length of node set node list

EX_INQ_SIDE_SETS 

number of side sets

EX_INQ_SS_NODE_LEN 

length of side set node list

EX_INQ_SS_ELEM_LEN 

length of side set element list

EX_INQ_QA 

number of QA records

EX_INQ_INFO 

number of info records

EX_INQ_TIME 

number of time steps in the database

EX_INQ_EB_PROP 

number of element block properties

EX_INQ_NS_PROP 

number of node set properties

EX_INQ_SS_PROP 

number of side set properties

EX_INQ_NS_DF_LEN 

length of node set distribution factor list

EX_INQ_SS_DF_LEN 

length of side set distribution factor list

EX_INQ_LIB_VERS 

API Lib vers number (float)

EX_INQ_EM_PROP 

number of element map properties

EX_INQ_NM_PROP 

number of node map properties

EX_INQ_ELEM_MAP 

number of element maps

EX_INQ_NODE_MAP 

number of node maps

EX_INQ_EDGE 

number of edges

EX_INQ_EDGE_BLK 

number of edge blocks

EX_INQ_EDGE_SETS 

number of edge sets

EX_INQ_ES_LEN 

length of concat edge set edge list

EX_INQ_ES_DF_LEN 

length of concat edge set dist factor list

EX_INQ_EDGE_PROP 

number of properties stored per edge block

EX_INQ_ES_PROP 

number of properties stored per edge set

EX_INQ_FACE 

number of faces

EX_INQ_FACE_BLK 

number of face blocks

EX_INQ_FACE_SETS 

number of face sets

EX_INQ_FS_LEN 

length of concat face set face list

EX_INQ_FS_DF_LEN 

length of concat face set dist factor list

EX_INQ_FACE_PROP 

number of properties stored per face block

EX_INQ_FS_PROP 

number of properties stored per face set

EX_INQ_ELEM_SETS 

number of element sets

EX_INQ_ELS_LEN 

length of concat element set element list

EX_INQ_ELS_DF_LEN 

length of concat element set dist factor list

EX_INQ_ELS_PROP 

number of properties stored per elem set

EX_INQ_EDGE_MAP 

number of edge maps

EX_INQ_FACE_MAP 

number of face maps

EX_INQ_COORD_FRAMES 

number of coordinate frames

EX_INQ_DB_MAX_ALLOWED_NAME_LENGTH 

size of MAX_NAME_LENGTH dimension on database

EX_INQ_DB_MAX_USED_NAME_LENGTH 

size of MAX_NAME_LENGTH dimension on database

EX_INQ_MAX_READ_NAME_LENGTH 

client-specified max size of returned names

EX_INQ_DB_FLOAT_SIZE 

size of floating-point values stored on database

EX_INQ_NUM_CHILD_GROUPS 

number of groups contained in this (exoid) group

EX_INQ_GROUP_PARENT 

id of parent of this (exoid) group; returns exoid if at root

EX_INQ_GROUP_ROOT 

id of root group "/" of this (exoid) group; returns exoid if at root

EX_INQ_GROUP_NAME_LEN 

length of name of group exoid

EX_INQ_GROUP_NAME 

name of group exoid. "/" returned for root group (char* GROUP_NAME_LEN+1 size)

EX_INQ_FULL_GROUP_NAME_LEN 

length of full path name of this (exoid) group

EX_INQ_FULL_GROUP_NAME 

full "/"-separated path name of this (exoid) group

EX_INQ_THREADSAFE 

Returns 1 if library is thread-safe; 0 otherwise

EX_INQ_ASSEMBLY 

number of assemblies

EX_INQ_BLOB 

number of blobs

EX_INQ_NUM_NODE_VAR 

number of nodal variables

EX_INQ_NUM_EDGE_BLOCK_VAR 

number of edge block variables

EX_INQ_NUM_FACE_BLOCK_VAR 

number of face block variables

EX_INQ_NUM_ELEM_BLOCK_VAR 

number of element block variables

EX_INQ_NUM_NODE_SET_VAR 

number of node set variables

EX_INQ_NUM_EDGE_SET_VAR 

number of edge set variables

EX_INQ_NUM_FACE_SET_VAR 

number of face set variables

EX_INQ_NUM_ELEM_SET_VAR 

number of element set variables

EX_INQ_NUM_SIDE_SET_VAR 

number of sideset variables

EX_INQ_NUM_GLOBAL_VAR 

number of global variables

EX_INQ_FILE_FORMAT 

netCDF file format

EX_INQ_INVALID 

◆ ex_options

enum ex_options

ex_opts() function codes - codes are OR'ed into exopts

Enumerator
EX_DEFAULT 
EX_VERBOSE 

verbose mode message flag

EX_DEBUG 

debug mode def

EX_ABORT 

abort mode flag def

EX_NULLVERBOSE 

verbose mode for null entity detection warning

Function Documentation

◆ ex_copy_string()

char * ex_copy_string ( char * dest,
char const * source,
size_t elements )

◆ ex_get_concat_node_sets()

SEACAS_DEPRECATED int ex_get_concat_node_sets ( int exoid,
void_int * node_set_ids,
void_int * num_nodes_per_set,
void_int * num_df_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 )
extern
Deprecated
Use ex_get_concat_sets()(exoid, EX_NODE_SET, set_specs) instead

The function ex_get_concat_node_sets() reads the node set ID's, node set node count array, node set distribution factors count array, node set node pointers array, node set distribution factors pointer array, 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.

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().

The length of each of the returned arrays can be determined by invoking ex_inquire() or ex_inquire_int().

Returns
In case of an error, ex_get_concat_node_sets() 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()
  • a warning value is returned if no node sets are stored in the file.
Parameters
[in]exoidexodus file ID returned from a previous call to ex_create() or ex_open().
[out]node_set_idsReturned array containing the node set ID for each set.
[out]num_nodes_per_setReturned array containing the number of nodes for each set.
[out]num_df_per_setReturned array containing the number of distribution factors for each set.
[out]node_sets_node_indexReturned 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.
[out]node_sets_df_indexReturned array containing the indices into the node_set_dist_fact which are the locations of the first distribution factor for each set. These indices are 0-based.
[out]node_sets_node_listReturned array containing the nodes for all sets. Internal node IDs are used in this list (see Section LocalNodeIds).
[out]node_sets_dist_factReturned array containing the distribution factors for all sets.

As an example, the following code segment will read concatenated node sets:

int error, exoid, num_node_sets, list_len, *ids,
*num_nodes_per_set, *num_df_per_set, *node_ind,
*df_ind, *node_list;
float *dist_fact
\comment{read concatenated node sets}
num_node_sets = ex_inquire_int(exoid, EX_INQ_NODE_SETS);
ids = (int *) calloc(num_node_sets, sizeof(int));
num_nodes_per_set = (int *) calloc(num_node_sets, sizeof(int));
num_df_per_set = (int *) calloc(num_node_sets, sizeof(int));
node_ind = (int *) calloc(num_node_sets, sizeof(int));
df_ind = (int *) calloc(num_node_sets, sizeof(int));
node_list = (int *) calloc(list_len, sizeof(int));
list_len = ex_inquire_int(exoid, EX_INQ_NS_DF_LEN);
dist_fact = (float *) calloc(list_len, sizeof(float));
error = ex_get_concat_node_sets (exoid, ids, num_nodes_per_set,
num_df_per_set, node_ind, df_ind,
node_list, dist_fact);
SEACAS_DEPRECATED int ex_get_concat_node_sets(int exoid, void_int *node_set_ids, void_int *num_nodes_per_set, void_int *num_df_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)
Definition ex_get_concat_node_sets.c:103
@ EX_INQ_NS_NODE_LEN
Definition exodusII.h:153
@ EX_INQ_NODE_SETS
Definition exodusII.h:152
@ EX_INQ_NS_DF_LEN
Definition exodusII.h:163
int64_t ex_inquire_int(int exoid, ex_inquiry req_info)
Definition ex_inquire.c:1029
Examples
/test/testrd_par.c.

◆ ex_get_concat_side_sets()

SEACAS_DEPRECATED int ex_get_concat_side_sets ( int exoid,
void_int * side_set_ids,
void_int * num_elem_per_set,
void_int * num_dist_per_set,
void_int * side_sets_elem_index,
void_int * side_sets_dist_index,
void_int * side_sets_elem_list,
void_int * side_sets_side_list,
void * side_sets_dist_fact )
extern
Undocumented
reads the side set ID's, side set element count array, side set node count array, side set element pointers array, side set node pointers array, side set element list, side set node list, and side set distribution factors
Deprecated
Use ex_get_concat_sets()(exoid, EX_SIDE_SET, set_specs) instead
Examples
/test/testrd_par.c.

◆ ex_get_elem_attr()

SEACAS_DEPRECATED int ex_get_elem_attr ( int exoid,
ex_entity_id elem_blk_id,
void * attrib )
extern
Deprecated
Use ex_get_attr()(exoid, EX_ELEM_BLOCK, elem_blk_id, attrib) instead

The function ex_get_elem_attr() reads the attributes for an element block. Memory must be allocated for(num_attr x num_elem_this_blk) attributes before this routine is called.

Because the attributes 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().

Returns
In case of an error, ex_get_elem_attr() 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()
  • invalid element block ID.
  • a warning value is returned if no attributes are stored in the file.
Parameters
[in]exoidexodus file ID returned from a previous call to ex_create() or ex_open().
[in]elem_blk_idThe element block ID.
[out]attribSize [num_elem_this_blk*num_attr]. Returned list of(num_attr x num_elem_this_blk) attributes for the element block, with the num_attr index cycling faster.

Refer to the code example in ex_get_elem_block() for an example of reading the element attributes for an element block.

◆ ex_get_elem_attr_names()

SEACAS_DEPRECATED int ex_get_elem_attr_names ( int exoid,
ex_entity_id elem_blk_id,
char ** names )
extern

reads the attribute names for an element block

Deprecated
Use ex_get_attr_names()(exoid, EX_ELEM_BLOCK, elem_blk_id, names) instead

◆ ex_get_elem_blk_ids()

SEACAS_DEPRECATED int ex_get_elem_blk_ids ( int exoid,
void_int * ids )
extern
Deprecated
Use ex_get_ids()(exoid, EX_ELEM_BLOCK, ids) instead

The function ex_get_elem_blk_ids() reads the IDs of all of the element blocks. Memory must be allocated for the returned array of ({num_elem_blk}) IDs before this function is invoked. The required size(num_elem_blk) can be determined via a call to ex_inquire() or ex_inquire_int().

Returns
In case of an error, ex_get_elem_blk_ids() returns a negative number; a warning will return a positive number. Possible causes of errors include:
Parameters
[in]exoidexodus file ID returned from a previous call to ex_create() or ex_open().
[out]idsReturned array of the element blocks IDs. The order of the IDs in this array reflects the sequence that the element blocks were introduced into the file.

The following code segment reads all the element block IDs:

int error, exoid, *idelbs, num_elem_blk;
idelbs = (int *) calloc(num_elem_blk, sizeof(int));
error = ex_get_elem_blk_ids (exoid, idelbs);
\comment{Same result using non-deprecated functions}
error = ex_get_ids (exoid, EX_ELEM_BLOCK, idelbs);
@ EX_ELEM_BLOCK
Definition exodusII.h:275
SEACAS_DEPRECATED int ex_get_elem_blk_ids(int exoid, void_int *ids)
Definition ex_get_elem_blk_ids.c:48
int ex_get_ids(int exoid, ex_entity_type obj_type, void_int *ids)
Definition ex_get_ids.c:101

◆ ex_get_elem_block()

SEACAS_DEPRECATED int ex_get_elem_block ( int exoid,
ex_entity_id elem_blk_id,
char * elem_type,
void_int * num_elem_this_blk,
void_int * num_nodes_per_elem,
void_int * num_attr )
extern
Deprecated
Use ex_get_block()(exoid, EX_ELEM_BLOCK, elem_blk_id, elem_type, num_elem_this_blk, num_nodes_per_elem, NULL, NULL, num_attr) instead

The function ex_get_elem_block() reads the parameters used to describe an element block. IDs of all element blocks stored can be determined by calling ex_get_elem_blk_ids().

Returns
In case of an error, ex_get_elem_block() 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()
  • element block with specified ID is not stored in the data file.
Parameters
[in]exoidexodus file ID returned from a previous call to ex_create() or ex_open().
[in]elem_blk_idThe element block ID.
[out]elem_typeReturned element typetype of elements in the element block. The maximum length of this string is MAX_STR_LENGTH .
[out]num_elem_this_blkReturned number of elements in the element block.
[out]num_nodes_per_elemReturned number of nodes per element in the element block.
[out]num_attrReturned number of attributes per element in the element block.

As an example, the following code segment will read the parameters for the element block with an ID of 10 and read the connectivity and element attributes arrays from an open exodus file :

#include "exodusII.h"
int id, error, exoid, num_el_in_blk, num_nod_per_el, num_attr,
*connect;
float *attrib;
char elem_type[MAX_STR_LENGTH+1];
\comment{read element block parameters}
id = 10;
error = ex_get_elem_block(exoid, id, elem_type, &num_el_in_blk,
&num_nod_per_elem, &num_attr);
\comment{read element connectivity}
connect = (int *) calloc(num_nod_per_el*num_el_in_blk,
sizeof(int));
error = ex_get_elem_conn(exoid, id, connect);
\comment{read element block attributes}
attrib = (float *) calloc (num_attr * num_el_in_blk, sizeof(float));
error = ex_get_elem_attr (exoid, id, attrib);
\comment{Same result using non-deprecated functions}
error = ex_get_block(exoid, EX_ELEM_BLOCK, id, elem_type, &num_el_in_blk,
&num_nod_per_elem, 0, 0, &num_attr);
error = ex_get_conn (exoid, EX_ELEM_BLOCK, id, connect);
error = ex_get_attr (exoid, EX_ELEM_BLOCK, id, attrib);
SEACAS_DEPRECATED int ex_get_elem_block(int exoid, ex_entity_id elem_blk_id, char *elem_type, void_int *num_elem_this_blk, void_int *num_nodes_per_elem, void_int *num_attr)
Definition ex_get_elem_block.c:74
SEACAS_DEPRECATED int ex_get_elem_conn(int exoid, ex_entity_id elem_blk_id, void_int *connect)
Definition ex_get_elem_conn.c:39
SEACAS_DEPRECATED int ex_get_elem_attr(int exoid, ex_entity_id elem_blk_id, void *attrib)
Definition ex_get_elem_attr.c:43
int ex_get_attr(int exoid, ex_entity_type obj_type, ex_entity_id obj_id, void *attrib)
Definition ex_get_attr.c:33
int ex_get_block(int exoid, ex_entity_type blk_type, ex_entity_id blk_id, char *elem_type, void_int *num_entries_this_blk, void_int *num_nodes_per_entry, void_int *num_edges_per_entry, void_int *num_faces_per_entry, void_int *num_attr_per_entry)
Definition ex_get_block.c:36
int ex_get_conn(int exoid, ex_entity_type blk_type, ex_entity_id blk_id, void_int *nodeconn, void_int *edgeconn, void_int *faceconn)
Definition ex_get_conn.c:29
#define MAX_STR_LENGTH
Definition exodusII.h:409

◆ ex_get_elem_conn()

SEACAS_DEPRECATED int ex_get_elem_conn ( int exoid,
ex_entity_id elem_blk_id,
void_int * connect )
extern
Deprecated
Use ex_get_conn()(exoid, EX_ELEM_BLOCK, elem_blk_id, connect, 0, 0) instead

The function ex_get_elem_conn() reads the connectivity array for an element block. Memory must be allocated for the connectivity array (num_elem_this_blk * num_nodes_per_elem in length) before this routine is called.

Returns
In case of an error, ex_get_elem_conn() returns a negative number; a warning will return a positive number. Possible causes of errors include:
  • an element block with the specified ID is not stored in the file.
Parameters
[in]exoidexodus file ID returned from a previous call to ex_create() or ex_open().
[in]elem_blk_idThe element block ID.
[out]connectSize [num_elem_this_blk,num_nodes_per_elem]. Returned connectivity array; a list of nodes (internal node IDs; See Section LocalNodeIds) that define each element. The node index cycles faster than the element index.

Refer to the code example in ex_get_elem_block() for an example of reading the connectivity for an element block.

◆ ex_get_elem_map()

SEACAS_DEPRECATED int ex_get_elem_map ( int exoid,
ex_entity_id map_id,
void_int * elem_map )
extern

reads the element map with specified ID

Deprecated
Use ex_get_num_map()(exoid, EX_ELEM_MAP, map_id, elem_map) instead

◆ ex_get_elem_num_map()

SEACAS_DEPRECATED int ex_get_elem_num_map ( int exoid,
void_int * elem_map )
extern
Deprecated
Use ex_get_id_map()(exoid, EX_ELEM_MAP, elem_map)

The function ex_get_elem_num_map() reads the optional element number map from the database. See Section LocalElementIds for a description of the element number map. If an element number map is not stored in the data file, a default array (1,2,3,. .. num_elem) is returned. Memory must be allocated for the element number map array ({num_elem} in length) before this call is made.

Returns
In case of an error, ex_get_elem_num_map() 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()
  • if an element number map is not stored, a default map and a warning value are returned.
Parameters
[in]exoidexodus file ID returned from a previous call to ex_create() or ex_open().
[out]elem_mapReturned element number map.

The following code will read an element number map from an open exodus file :

int *elem_map, error, exoid;
\comment{read element number map}
elem_map = (int *) calloc(num_elem, sizeof(int));
error = ex_get_elem_num_map (exoid, elem_map);
\comment{Equivalent using non-deprecated function}
error = ex_get_id_map(exoid, EX_ELEM_MAP, elem_map);
@ EX_ELEM_MAP
Definition exodusII.h:280
SEACAS_DEPRECATED int ex_get_elem_num_map(int exoid, void_int *elem_map)
Definition ex_get_elem_num_map.c:60
int ex_get_id_map(int exoid, ex_entity_type map_type, void_int *map)
Definition ex_get_id_map.c:29

◆ ex_get_elem_var()

SEACAS_DEPRECATED int ex_get_elem_var ( int exoid,
int time_step,
int elem_var_index,
ex_entity_id elem_blk_id,
int64_t num_elem_this_blk,
void * elem_var_vals )
extern
Deprecated
Use ex_get_var()(exoid, time_step, EX_ELEM_BLOCK, elem_var_index, elem_blk_id, num_elem_this_blk, elem_var_vals) instead

The function ex_get_elem_var() reads the values of a single element variable for one element block at one time step. Memory must be allocated for the element variable values array before this function is invoked.

Because element variables 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().

Returns
In case of an error, ex_get_elem_var() 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()
  • variable does not exist for the desired element block.
  • invalid element block.
Parameters
[in]exoidexodus file ID returned from a previous call to ex_create() or ex_open().
[in]time_stepThe time step number, as described under ex_put_time(), at which the element variable values are desired. This is essentially an index (in the time dimension) into the element variable values array stored in the database. The first time step is 1.
[in]elem_var_indexThe index of the desired element variable. The first variable has an index of 1.
[in]elem_blk_idThe desired element block ID.
[in]num_elem_this_blkThe number of elements in this element block.
[out]elem_var_valsReturned array of num_elem_this_blk values of the elem_var_index element variable for the element block with ID of elem_blk_id at the time_step time step.

As an example, the following code segment will read the var_index-th element variable at one time step stored in an exodus file :

int *ids, num_elem_blk, error, exoid, *num_elem_in_block,
step, var_ind;
float *var_vals;
ids = (int *) calloc(num_elem_blk, sizeof(int));
error = ex_get_elem_blk_ids (exoid, ids);
step = 1; \comment{read at the first time step}
for (i=0; i < num_elem_blk; i++) {
var_vals = (float *) calloc (num_elem_in_block[i], sizeof(float));
error = ex_get_elem_var (exoid, step, var_ind, ids[i],
num_elem_in_block[i], var_vals);
\comment{Using non-deprecated function:}
error = ex_get_var (exoid, step, EX_ELEM_BLOCK, var_ind, ids[i],
num_elem_in_block[i], var_vals);
free (var_values);
}
SEACAS_DEPRECATED int ex_get_elem_var(int exoid, int time_step, int elem_var_index, ex_entity_id elem_blk_id, int64_t num_elem_this_blk, void *elem_var_vals)
Definition ex_get_elem_var.c:84
int ex_get_var(int exoid, int time_step, ex_entity_type var_type, int var_index, ex_entity_id obj_id, int64_t num_entry_this_obj, void *var_vals)
Definition ex_get_var.c:68

◆ ex_get_elem_var_tab()

SEACAS_DEPRECATED int ex_get_elem_var_tab ( int exoid,
int num_elem_blk,
int num_elem_var,
int * elem_var_tab )
extern
Deprecated
Use ex_get_truth_table()(exoid, EX_ELEM_BLOCK, num_elem_blk, num_elem_var, elem_var_tab)

The function ex_get_elem_var_tab() reads the exodus element variable truth table from the database. For a description of the truth table, see the usage of the function ex_put_elem_var_tab(). Memory must be allocated for the truth table(num_elem_blk x num_elem_var in length) before this function is invoked. If the truth table is not stored in the file, it will be created based on information in the file and then returned.

Returns
In case of an error, ex_get_elem_var_tab() 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()
  • data file not initialized properly with call to ex_put_init().
  • the specified number of element blocks is different than the number specified in a call to ex_put_init().
  • there are no element variables stored in the file or the specified number of element variables doesn't match the number specified in a call to ex_put_variable_param().
Parameters
[in]exoidexodus file ID returned from a previous call to ex_create() or ex_open().
[in]num_elem_blkThe number of element blocks.
[in]num_elem_varThe number of element variables.
[out]elem_var_tabSize [num_elem_blk,num_elem_var]. Returned 2-dimensional array (with the num_elem_var index cycling faster) containing the element variable truth table.

As an example, the following coding will read the element variable truth table from an opened exodus file :

int *truth_tab, num_elem_blk, num_ele_vars, error, exoid;
truth_tab = (int *) calloc ((num_elem_blk*num_ele_vars),
sizeof(int));
error = ex_get_elem_var_tab (exoid, num_elem_blk, num_ele_vars,
truth_tab);
SEACAS_DEPRECATED int ex_get_elem_var_tab(int exoid, int num_elem_blk, int num_elem_var, int *elem_var_tab)
Definition ex_get_elem_var_tab.c:75

◆ ex_get_elem_var_time()

SEACAS_DEPRECATED int ex_get_elem_var_time ( int exoid,
int elem_var_index,
int64_t elem_number,
int beg_time_step,
int end_time_step,
void * elem_var_vals )
extern
Deprecated
Use ex_get_var_time()(exoid, EX_ELEM_BLOCK, elem_var_index, elem_number, beg_time_step, end_time_step, elem_var_vals)

The function ex_get_elem_var_time() reads the values of an element variable for a single element through a specified number of time steps. Memory must be allocated for the element variable values array before this function is invoked.

Because element variables 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().

Returns
In case of an error, ex_get_elem_var_time() 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()
  • data file not initialized properly with call to ex_put_init().
  • ex_put_elem_block() not called previously to specify parameters for all element blocks.
  • variable does not exist for the desired element or results haven't been written.
Parameters
[in]exoidexodus file ID returned from a previous call to ex_create() or ex_open().
[in]elem_var_indexThe index of the desired element variable. The first variable has an index of 1.
[in]elem_numberThe internal ID (see Section LocalElementIds) of the desired element. The first element is 1.
[in]beg_time_stepThe beginning time step for which an element variable value is desired. This is not a time value but rather a time step number, as described under ex_put_time(). The first time step is 1.
[in]end_time_stepThe last time step for which an element variable value is desired. If negative, the last time step in the database will be used. The first time step is 1.
[out]elem_var_valsreturned array of(end_time_step {-} beg_time_step + 1) values of the elem_number-th element for the elem_var_index-th element variable.

For example, the following coding will read the values of the var_index-th element variable for element number 2 from the first time step to the last time step:

int error, exoid, num_time_steps, var_index, elem_num,
beg_time, end_time;
float *var_values;
\comment{determine how many time steps are stored}
num_time_steps = ex_inquire_int(exoid, EX_INQ_TIME);
\comment{read an element variable through time}
var_values = (float *) calloc (num_time_steps, sizeof(float));
var_index = 2;
elem_num = 2;
beg_time = 1;
end_time = -1;
error = ex_get_elem_var_time (exoid, var_index, elem_num,
beg_time, end_time, var_values);
\comment{Using non-deprecated function:}
error = ex_get_elem_var_time (exoid, EX_ELEM_BLOCK, var_index, elem_num,
beg_time, end_time, var_values);
@ EX_INQ_TIME
Definition exodusII.h:159
SEACAS_DEPRECATED int ex_get_elem_var_time(int exoid, int elem_var_index, int64_t elem_number, int beg_time_step, int end_time_step, void *elem_var_vals)
Definition ex_get_elem_var_time.c:112

◆ ex_get_glob_var_time()

SEACAS_DEPRECATED int ex_get_glob_var_time ( int exoid,
int glob_var_index,
int beg_time_step,
int end_time_step,
void * glob_var_vals )
extern
Deprecated
Use ex_get_var_time()(exoid, EX_GLOBAL, global_var_index, 1, beg_time_step, end_time_step, glob_var_vals)

The function ex_get_glob_var_time() reads the values of a single global variable through a specified number of time steps. Memory must be allocated for the global variable values array before this function is invoked.

Because global variables 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().

Returns
In case of an error, ex_get_glob_var_time() 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()
  • specified global variable does not exist.
  • a warning value is returned if no global variables are stored in the file.
Parameters
exoidexodus file ID returned from a previous call to ex_create() or ex_open().
glob_var_indexThe index of the desired global variable. The first variable has an index of 1.
beg_time_stepThe beginning time step for which a global variable value is desired. This is not a time value but rather a time step number, as described under ex_put_time(). The first time step is 1.
end_time_stepThe last time step for which a global variable value is desired. If negative, the last time step in the database will be used. The first time step is 1.
[out]glob_var_valsReturned array of (end_time_step - beg_time_step + 1) values for the glob_var_index$^{th}$ global variable.

The following is an example of using this function:

int error, exoid, num_time_steps, var_index;
int beg_time, end_time;
float *var_values;
num_time_steps = ex_inquire_int(exoid, EX_INQ_TIME);
var_index = 1;
beg_time = 1;
end_time = -1;
var_values = (float *) calloc (num_time_steps, sizeof(float));
error = ex_get_glob_var_time(exoid, var_index, beg_time,
end_time, var_values);
SEACAS_DEPRECATED int ex_get_glob_var_time(int exoid, int glob_var_index, int beg_time_step, int end_time_step, void *glob_var_vals)
Definition ex_get_glob_var_time.c:76
Examples
/test/testrd_par.c.

◆ ex_get_idx()

int ex_get_idx ( int exoid,
const char * ne_var_name,
int64_t * my_index,
int pos )
extern
Parameters
exoidNetCDF/Exodus file ID
ne_var_nameNemesis index variable name
my_indexarray of length 2 to hold results
posposition of this proc/cmap in index

◆ ex_get_n_attr()

SEACAS_DEPRECATED int ex_get_n_attr ( int exoid,
ex_entity_type obj_type,
ex_entity_id obj_id,
int64_t start_num,
int64_t num_ent,
void * attrib )
extern
Deprecated
Use ex_get_partial_attr()(exoid, obj_type, obj_id, start_num, num_ent, attrib) instead reads the specified attribute for a subsect of a block
Parameters
exoidexodus file id
obj_typeobject type (edge, face, elem block)
obj_idobject id (edge, face, elem block ID)
start_numthe starting index of the attributes to be returned.
num_entthe number of entities to read attributes for.
attribarray of attributes

◆ ex_get_n_conn()

SEACAS_DEPRECATED int ex_get_n_conn ( int exoid,
ex_entity_type blk_type,
ex_entity_id blk_id,
int64_t start_num,
int64_t num_ent,
void_int * nodeconn,
void_int * edgeconn,
void_int * faceconn )
extern
Deprecated
Use ex_get_partial_conn()(exoid, blk_type, blk_id, start_num, num_ent, nodeconn, edgeconn, faceconn) instead.

◆ ex_get_n_coord()

SEACAS_DEPRECATED int ex_get_n_coord ( int exoid,
int64_t start_node_num,
int64_t num_nodes,
void * x_coor,
void * y_coor,
void * z_coor )
extern
  \deprecated Use ex_get_partial_coord()(exoid, start_node_num, num_nodes, x_coor, y_coor,

z_coor) instead reads the coordinates of the nodes. Memory must be allocated for the coordinate arrays (x_coor, y_coor, and z_coor) before this call is made. The length of each of these arrays is the number of nodes in the mesh. Because the coordinates are floating point values, the application code must declare the arrays passed to be the appropriate type "float" or "double" to match the compute word size passed in ex_create() or ex_open()

Parameters
exoidexodus file id
start_node_numthe starting index of the coordinates to be returned.
num_nodesthe number of nodes to read coordinates for.
[out]x_coorReturned X coordinates of the nodes. These are returned only if x_coor is non-NULL.
[out]y_coorReturned Y coordinates of the nodes. These are returned only if y_coor is non-NULL.
[out]z_coorReturned Z coordinates of the nodes. These are returned only if z_coor is non-NULL.

◆ ex_get_n_elem_attr()

SEACAS_DEPRECATED int ex_get_n_elem_attr ( int exoid,
ex_entity_id elem_blk_id,
int64_t start_elem_num,
int64_t num_elems,
void * attrib )
extern
Deprecated
Use ex_get_partial_attr()(exoid, EX_ELEM_BLOCK, elem_blk_id, start_elem_num, num_elems, attrib) instead.
Parameters
exoidNetCDF/Exodus file ID
elem_blk_idElement block ID
start_elem_numStarting position to read from
num_elemsNumber of elements to read
attribAttribute

◆ ex_get_n_elem_conn()

SEACAS_DEPRECATED int ex_get_n_elem_conn ( int exoid,
ex_entity_id elem_blk_id,
int64_t start_elem_num,
int64_t num_elems,
void_int * connect )
extern
Deprecated
use ex_get_partial_conn()(exoid, EX_ELEM_BLOCK, elem_blk_id, start_elem_num, num_elems, connect, NULL, NULL) reads the connectivity array for an element block
Parameters
exoidNetCDF/Exodus file ID
elem_blk_idElement block ID
start_elem_numStarting position to read from
num_elemsNumber of elements to read
connectConnectivity vector

◆ ex_get_n_elem_num_map()

SEACAS_DEPRECATED int ex_get_n_elem_num_map ( int exoid,
int64_t start_ent,
int64_t num_ents,
void_int * elem_map )
extern
Deprecated
Use ex_get_partial_id_map()(exoid, EX_ELEM_MAP, start_ent, num_ents, elem_map) instead
Parameters
exoidNetCDF/Exodus file ID
start_entStarting position to read from
num_entsNumber of elements to read
elem_mapelement map numbers

◆ ex_get_n_node_num_map()

SEACAS_DEPRECATED int ex_get_n_node_num_map ( int exoid,
int64_t start_ent,
int64_t num_ents,
void_int * node_map )
extern
Deprecated
Use ex_get_partial_id_map()(exoid, EX_NODE_MAP, start_ent, num_ents, node_map) instead
Parameters
exoidNetCDF/Exodus file ID
start_entstarting node number
num_entsnumber of nodes to read
node_mapvector for node map

◆ ex_get_n_node_set()

SEACAS_DEPRECATED int ex_get_n_node_set ( int exoid,
ex_entity_id node_set_id,
int64_t start_node_num,
int64_t num_nodes,
void_int * node_set_node_list )
extern
Deprecated
Use ex_get_partial_set()(exoid, EX_NODE_SET, node_set_id, start_node_num, num_nodes, node_set_node_list, NULL) instead
Parameters
exoidNetCDF/Exodus file ID
node_set_idNode set ID
start_node_numNode index to start reading at
num_nodesNumber of nodes to read
node_set_node_listList of nodes in node set

◆ ex_get_n_node_set_df()

SEACAS_DEPRECATED int ex_get_n_node_set_df ( int exoid,
ex_entity_id node_set_id,
int64_t start_num,
int64_t num_df_to_get,
void * node_set_dist_fact )
extern
Deprecated
Use ex_get_partial_set_dist_fact()(exoid, EX_NODE_SET, node_set_id, start_num, num_df_to_get, node_set_dist_fact) instead
Parameters
exoidNetCDF/Exodus file ID
node_set_idNode-set ID
start_numStarting df number
num_df_to_getNumber of df's to read
node_set_dist_factDistribution factors

◆ ex_get_n_one_attr()

SEACAS_DEPRECATED int ex_get_n_one_attr ( int exoid,
ex_entity_type obj_type,
ex_entity_id obj_id,
int64_t start_num,
int64_t num_ent,
int attrib_index,
void * attrib )
extern
Deprecated
Use ex_get_partial_one_attr()(exoid, obj_type, obj_id, start_num, num_ent, attrib_index, attrib) instead.

reads the specified attribute for a subsect of a block

Parameters
exoidexodus file id
obj_typeobject type (edge, face, elem block)
obj_idobject id (edge, face, elem block ID)
start_numthe starting index of the attributes to be returned.
num_entthe number of entities to read attributes for.
attrib_indexindex of attribute to write
attribarray of attributes

◆ ex_get_n_side_set()

SEACAS_DEPRECATED int ex_get_n_side_set ( int exoid,
ex_entity_id side_set_id,
int64_t start_side_num,
int64_t num_sides,
void_int * side_set_elem_list,
void_int * side_set_side_list )
extern
Deprecated
Use ex_get_partial_side_set()(exoid, EX_SIDE_SET, side_set_id, start_side_num, num_sides, side_set_elem_list, side_set_side_list) instead
Parameters
exoidNetCDF/Exodus file ID
side_set_idSide-set ID to read
start_side_numStarting element number
num_sidesNumber of sides to read
side_set_elem_listList of element IDs
side_set_side_listList of side IDs

◆ ex_get_n_side_set_df()

SEACAS_DEPRECATED int ex_get_n_side_set_df ( int exoid,
ex_entity_id side_set_id,
int64_t start_num,
int64_t num_df_to_get,
void * side_set_dist_fact )
extern
Deprecated
Use ex_get_partial_set_dist_fact()(exoid, EX_SIDE_SET, side_set_id, start_num, num_df_to_get, side_set_dist_fact) instead
Parameters
exoidNetCDF/Exodus file ID
side_set_idSide-set ID
start_numStarting df number
num_df_to_getNumber of df's to read
side_set_dist_factDistribution factors

◆ ex_get_nodal_var_time()

SEACAS_DEPRECATED int ex_get_nodal_var_time ( int exoid,
int nodal_var_index,
int64_t node_number,
int beg_time_step,
int end_time_step,
void * nodal_var_vals )
extern
Deprecated
Use ex_get_var_time()(exoid, EX_NODAL, nodal_var_index, node_number, beg_time_step, end_time_step, node_var_vals) The function ex_get_nodal_var_time() reads the values of a nodal variable for a single node through a specified number of time steps. Memory must be allocated for the nodal variable values array before this function is invoked.

Because nodal variables 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().

Returns
In case of an error, ex_get_nodal_var_time() returns a negative number; a warning will return a positive number. Possible causes of errors include:
  • specified nodal variable does not exist.
  • a warning value is returned if no nodal variables are stored in the file.
Parameters
[in]exoidexodus file ID returned from a previous call to ex_create() or ex_open().
[in]nodal_var_indexThe index of the desired nodal variable. The first variable has an index of 1.
[in]node_numberThe internal ID (see Section LocalNodeIds) of the desired node. The first node is 1.
[in]beg_time_stepThe beginning time step for which a nodal variable value is desired. This is not a time value but rather a time step number, as described under ex_put_time(). The first time step is 1.
[in]end_time_stepThe last time step for which a nodal variable value is desired. If negative, the last time step in the database will be used. The first time step is 1.
[out]nodal_var_valsReturned array of(end_time_step {-} beg_time_step +1) values of the node_number-th node for the nodal_var_index-th nodal variable.

For example, the following code segment will read the values of the first nodal variable for node number one for all time steps stored in the data file:

int num_time_steps, var_index, node_num, beg_time, end_time, error, exoid;
float *var_values;
\comment{determine how many time steps are stored}
num_time_steps = ex_inquire_int(exoid, EX_INQ_TIME);
\comment{read a nodal variable through time}
var_values = (float *) calloc (num_time_steps, sizeof(float));
var_index = 1; node_num = 1; beg_time = 1; end_time = -1;
error = ex_get_var_time(exoid, EX_NODAL, var_index, node_num, beg_time,
end_time, var_values);
@ EX_NODAL
Definition exodusII.h:268
int ex_get_var_time(int exoid, ex_entity_type var_type, int var_index, ex_entity_id id, int beg_time_step, int end_time_step, void *var_vals)
Definition ex_get_var_time.c:44

◆ ex_get_node_map()

SEACAS_DEPRECATED int ex_get_node_map ( int exoid,
ex_entity_id map_id,
void_int * node_map )
extern

reads the node map with specified ID

Deprecated
Use ex_get_num_map()(exoid, EX_NODE_MAP, map_id, node_map

◆ ex_get_node_num_map()

SEACAS_DEPRECATED int ex_get_node_num_map ( int exoid,
void_int * node_map )
extern
Deprecated
Use ex_get_id_map()(exoid, EX_NODE_MAP, node_map)

The function ex_get_node_num_map() reads the optional node number mapnode number map from the database. See Section LocalNodeIds for a description of the node number map. If a node number map is not stored in the data file, a default array (1,2,3,. .. num_nodes) is returned. Memory must be allocated for the node number map array (num_nodes in length) before this call is made.

Returns
In case of an error, ex_get_node_num_map() 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()
  • if a node number map is not stored, a default map and a warning value are returned.
Parameters
[in]exoidexodus file ID returned from a previous call to ex_create() or ex_open().
[out]node_mapReturned node number map.

The following code will read a node number map from an open exodus file :

int *node_map, error, exoid;
\comment{read node number map}
node_map = (int *)calloc(num_nodes, sizeof(int));
error = ex_get_node_num_map(exoid, node_map);
\comment{Equivalent using non-deprecated function}
error = ex_get_id_map(exoid, EX_NODE_MAP, node_map);
@ EX_NODE_MAP
Definition exodusII.h:281
SEACAS_DEPRECATED int ex_get_node_num_map(int exoid, void_int *node_map)
Definition ex_get_node_num_map.c:63

◆ ex_get_node_set()

SEACAS_DEPRECATED int ex_get_node_set ( int exoid,
ex_entity_id node_set_id,
void_int * node_set_node_list )
extern

reads the node list for a single node set

Deprecated
Use ex_get_set()(exoid, EX_NODE_SET, node_set_id, node_set_node_list, NULL)

◆ ex_get_node_set_dist_fact()

SEACAS_DEPRECATED int ex_get_node_set_dist_fact ( int exoid,
ex_entity_id node_set_id,
void * node_set_dist_fact )
extern
Deprecated
Use ex_get_set_dist_fact()(exoid, EX_NODE_SET, node_set_id, node_set_dist_fact)

The function ex_get_node_set_dist_fact() returns the node set distribution factors for a single node set. Memory must be allocated for the list of distribution factors(num_dist_in_set in length) before this function is invoked.

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().

Returns
In case of an error, ex_get_node_set_dist_fact() returns a negative number; a warning will return a positive number. Possible causes of errors include:
  • a warning value is returned if no distribution factors were stored.
Parameters
[in]exoidexodus file ID returned from a previous call to ex_create() or ex_open().
[in]node_set_idThe node set ID.
[out]node_set_dist_factReturned array containing the distribution factors in the node set.

Refer to the description of ex_get_node_set_param() for a sample code segment to read a node set's distribution factors.

◆ ex_get_node_set_ids()

SEACAS_DEPRECATED int ex_get_node_set_ids ( int exoid,
void_int * ids )
extern
Deprecated
Use ex_get_ids()(exoid, EX_NODE_SET, ids)

The function ex_get_node_set_ids() reads the IDs of all of the node sets. Memory must be allocated for the returned array of ({num_node_sets}) IDs before this function is invoked.

Returns
In case of an error, ex_get_node_set_ids() 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()
  • a warning value is returned if no node sets are stored in the file.
Parameters
[in]exoidexodus file ID returned from a previous call to ex_create() or ex_open().
[out]idsReturned array of the node sets IDs. The order of the IDs in this array reflects the sequence the node sets were introduced into the file.

As an example, the following code will read all of the node set IDs from an open data file:

int *ids, num_node_sets, error, exoid;
\comment{read node sets IDs}
ids = (int *) calloc(num_node_sets, sizeof(int));
error = ex_get_node_set_ids (exoid, ids);
\comment{Same result using non-deprecated functions.}
error = ex_get_ids (exoid, EX_NODE_SET, ids);
SEACAS_DEPRECATED int ex_get_node_set_ids(int exoid, void_int *ids)
Definition ex_get_node_set_ids.c:47
@ EX_NODE_SET
Definition exodusII.h:270

◆ ex_get_node_set_param()

SEACAS_DEPRECATED int ex_get_node_set_param ( int exoid,
ex_entity_id node_set_id,
void_int * num_nodes_in_set,
void_int * num_df_in_set )
extern
Deprecated
Use ex_get_set_param()(exoid, EX_NODE_SET, node_set_id, num_nodes_in_set, num_df_in_set)

The function ex_get_node_set_param() reads the number of nodes which describe a single node set and the number of distribution factors for the node set.

Returns
In case of an error, ex_get_node_set_param() 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()
  • a warning value is returned if no node sets are stored in the file.
  • incorrect node set ID.
Parameters
[in]exoidexodus file ID returned from a previous call to ex_create() or ex_open().
[in]node_set_idThe node set ID.
[out]num_nodes_in_setReturned number of nodes in the node set.
[out]num_df_in_setReturned number of distribution factors in the node set.

The following code segment will read a node set from an open exodus file :

int error, exoid, id, num_nodes_in_set, num_df_in_set, *node_list;
float *dist_fact;
\comment{read node set parameters}
id = 100;
error = ex_get_node_set_param(exoid, id, &num_nodes_in_set,
&num_df_in_set);
\comment{read node set node list}
node_list = (int *) calloc(num_nodes_in_set, sizeof(int));
error = ex_get_node_set(exoid, id, node_list);
\comment{read node set distribution factors}
if (num_df_in_set > 0) {
dist_fact = (float *) calloc(num_nodes_in_set, sizeof(float));
error = ex_get_node_set_dist_fact(exoid, id, dist_fact);
}
\comment{Same result using non-deprecated functions}
error = ex_get_set_param(exoid, EX_NODE_SET, id, &num_nodes_in_set,
&num_df_in_set);
error = ex_get_set(exoid, EX_NODE_SET, id, node_list);
if (num_df_in_set > 0) {
error = ex_get_set_dist_fact(exoid, EX_NODE_SET, id, dist_fact);
}
SEACAS_DEPRECATED int ex_get_node_set(int exoid, ex_entity_id node_set_id, void_int *node_set_node_list)
Definition ex_get_node_set.c:33
SEACAS_DEPRECATED int ex_get_node_set_dist_fact(int exoid, ex_entity_id node_set_id, void *node_set_dist_fact)
Definition ex_get_node_set_dist_fact.c:40
SEACAS_DEPRECATED int ex_get_node_set_param(int exoid, ex_entity_id node_set_id, void_int *num_nodes_in_set, void_int *num_df_in_set)
Definition ex_get_node_set_param.c:67
int ex_get_set(int exoid, ex_entity_type set_type, ex_entity_id set_id, void_int *set_entry_list, void_int *set_extra_list)
Definition ex_get_set.c:23
int ex_get_set_param(int exoid, ex_entity_type set_type, ex_entity_id set_id, void_int *num_entry_in_set, void_int *num_dist_fact_in_set)
Definition ex_get_set_param.c:36
int ex_get_set_dist_fact(int exoid, ex_entity_type set_type, ex_entity_id set_id, void *set_dist_fact)
Definition ex_get_set_dist_fact.c:33

◆ ex_get_nset_var()

SEACAS_DEPRECATED int ex_get_nset_var ( int exoid,
int time_step,
int nset_var_index,
ex_entity_id nset_id,
int64_t num_node_this_nset,
void * nset_var_vals )
extern

reads the values of a single nodeset variable for one nodeset at one time step in the database; assume the first time step and nodeset variable index is 1

Deprecated
Use ex_get_var()(exoid, time_step, EX_NODE_SET, nset_var_index, nset_id, num_node_this_nset, nset_var_vals) instead

◆ ex_get_nset_var_tab()

SEACAS_DEPRECATED int ex_get_nset_var_tab ( int exoid,
int num_nodesets,
int num_nset_var,
int * nset_var_tab )
extern

reads the EXODUS nodeset variable truth table from the database

Deprecated
Use ex_get_truth_table()(exoid, EX_NODE_SET, num_nodesets, num_nset_var, nset_var_tab)

◆ ex_get_one_elem_attr()

SEACAS_DEPRECATED int ex_get_one_elem_attr ( int exoid,
ex_entity_id elem_blk_id,
int attrib_index,
void * attrib )
extern

reads the attributes for an element block

Deprecated
Use ex_get_one_attr()(exoid, EX_ELEM_BLOCK, elem_blk_id, attrib_index, attrib)

◆ ex_get_partial_elem_attr()

SEACAS_DEPRECATED int ex_get_partial_elem_attr ( int exoid,
ex_entity_id elem_blk_id,
int64_t start_elem_num,
int64_t num_elems,
void * attrib )
extern
Deprecated
use ex_get_partial_attr()(exoid, EX_ELEM_BLOCK, elem_blk_id, start_elem_num, num_elems, attrib)
Parameters
exoidNetCDF/Exodus file ID
elem_blk_idElement block ID
start_elem_numStarting position to read from
num_elemsNumber of elements to read
attribAttribute

◆ ex_get_partial_elem_conn()

SEACAS_DEPRECATED int ex_get_partial_elem_conn ( int exoid,
ex_entity_id elem_blk_id,
int64_t start_elem_num,
int64_t num_elems,
void_int * connect )
extern
Deprecated
use ex_get_partial_conn()(exoid, EX_ELEM_BLOCK, elem_blk_id, start_elem_num, num_elems, connect, NULL, NULL) reads the connectivity array for an element block
Parameters
exoidNetCDF/Exodus file ID
elem_blk_idElement block ID
start_elem_numStarting position to read from
num_elemsNumber of elements to read
connectConnectivity vector

◆ ex_get_partial_elem_map()

SEACAS_DEPRECATED int ex_get_partial_elem_map ( int exoid,
ex_entity_id map_id,
int64_t ent_start,
int64_t ent_count,
void_int * elem_map )
extern

◆ ex_get_partial_elem_num_map()

SEACAS_DEPRECATED int ex_get_partial_elem_num_map ( int exoid,
int64_t start_ent,
int64_t num_ents,
void_int * elem_map )
extern
Deprecated
Use ex_get_partial_id_map()(exoid, EX_ELEM_MAP, start_ent, num_ents, elem_map)
Parameters
exoidNetCDF/Exodus file ID
start_entStarting position to read from
num_entsNumber of elements to read
elem_mapelement map numbers

◆ ex_get_partial_node_num_map()

SEACAS_DEPRECATED int ex_get_partial_node_num_map ( int exoid,
int64_t start_ent,
int64_t num_ents,
void_int * node_map )
extern
Deprecated
Use ex_get_partial_node_num_map()(exoid, EX_NODE_MAP, start_ent, num_ents, node_map)
Parameters
exoidNetCDF/Exodus file ID
start_entstarting node number
num_entsnumber of nodes to read
node_mapvector for node map

◆ ex_get_partial_node_set()

SEACAS_DEPRECATED int ex_get_partial_node_set ( int exoid,
ex_entity_id node_set_id,
int64_t start_node_num,
int64_t num_nodes,
void_int * node_set_node_list )
extern
Deprecated
use ex_get_partial_set()(exoid, EX_NODE_SET, node_set_id, start_node_num, num_nodes, node_set_node_list, NULL)
Parameters
exoidNetCDF/Exodus file ID
node_set_idNode set ID
start_node_numNode index to start reading at
num_nodesNumber of nodes to read
node_set_node_listList of nodes in node set

◆ ex_get_partial_node_set_df()

SEACAS_DEPRECATED int ex_get_partial_node_set_df ( int exoid,
ex_entity_id node_set_id,
int64_t start_num,
int64_t num_df_to_get,
void * node_set_dist_fact )
extern
Deprecated
use ex_get_partial_set_dist_fact()(exoid, EX_NODE_SET, node_set_id, start_num, num_df_to_get, node_set_dist_fact)
Parameters
exoidNetCDF/Exodus file ID
node_set_idNode-set ID
start_numStarting df number
num_df_to_getNumber of df's to read
node_set_dist_factDistribution factors

◆ ex_get_partial_side_set()

SEACAS_DEPRECATED int ex_get_partial_side_set ( int exoid,
ex_entity_id side_set_id,
int64_t start_side_num,
int64_t num_sides,
void_int * side_set_elem_list,
void_int * side_set_side_list )
extern
Deprecated
use ex_get_partial_set()(exoid, EX_SIDE_SET, side_set_id, start_side_num, num_sides, side_set_elem_list, side_set_side_list)
Parameters
exoidNetCDF/Exodus file ID
side_set_idSide-set ID to read
start_side_numStarting element number
num_sidesNumber of sides to read
side_set_elem_listList of element IDs
side_set_side_listList of side IDs

◆ ex_get_partial_side_set_df()

SEACAS_DEPRECATED int ex_get_partial_side_set_df ( int exoid,
ex_entity_id side_set_id,
int64_t start_num,
int64_t num_df_to_get,
void * side_set_dist_fact )
extern
Deprecated
Use ex_get_partial_set_dist_fact()(exoid, EX_SIDE_SET, side_set_id, start_num, num_df_to_get, side_set_dist_fact)
Parameters
exoidNetCDF/Exodus file ID
side_set_idSide-set ID
start_numStarting df number
num_df_to_getNumber of df's to read
side_set_dist_factDistribution factors

◆ ex_get_side_set()

SEACAS_DEPRECATED int ex_get_side_set ( int exoid,
ex_entity_id side_set_id,
void_int * side_set_elem_list,
void_int * side_set_side_list )
extern

reads the side set element list and side set side list for a single side set

Deprecated
Use ex_get_set()(exoid, EX_SIDE_SET, side_set_id, side_set_elem_list, side_set_side_list)

◆ ex_get_side_set_dist_fact()

SEACAS_DEPRECATED int ex_get_side_set_dist_fact ( int exoid,
ex_entity_id side_set_id,
void * side_set_dist_fact )
extern

reads the distribution factors for a single side set

Deprecated
Use ex_get_set_dist_fact()(exoid, EX_SIDE_SET, side_set_id, side_set_dist_fact)

◆ ex_get_side_set_ids()

SEACAS_DEPRECATED int ex_get_side_set_ids ( int exoid,
void_int * ids )
extern

reads the side set ids from the database

Deprecated
Use ex_get_ids()(exoid, EX_SIDE_SET, ids)

◆ ex_get_side_set_param()

SEACAS_DEPRECATED int ex_get_side_set_param ( int exoid,
ex_entity_id side_set_id,
void_int * num_side_in_set,
void_int * num_dist_fact_in_set )
extern

reads the number of sides and the number of distribution factors which describe a single side set

Parameters
exoidexodus file id
side_set_idside set id
[out]num_side_in_setnumber of sides in the side set
[out]num_dist_fact_in_setnumber of distribution factors in the
Deprecated
Use ex_get_set_param()(exoid, EX_SIDE_SET, side_set_id, num_side_in_set, num_dist_fact_in_set)

◆ ex_get_sset_var()

SEACAS_DEPRECATED int ex_get_sset_var ( int exoid,
int time_step,
int sset_var_index,
ex_entity_id sset_id,
int64_t num_side_this_sset,
void * sset_var_vals )
extern

reads the values of a single sideset variable for one sideset at one time step in the database; assume the first time step and sideset variable index is 1

Deprecated
Use ex_get_var()(exoid, time_step, EX_SIDE_SET, sset_var_index, sset_id, num_side_this_sset, sset_var_vals) instead

◆ ex_get_sset_var_tab()

SEACAS_DEPRECATED int ex_get_sset_var_tab ( int exoid,
int num_sidesets,
int num_sset_var,
int * sset_var_tab )
extern

reads the EXODUS sideset variable truth table from the database

Deprecated
Use ex_get_truth_table()(exoid, EX_SIDE_SET, num_sidesets, num_sset_var, sset_var_tab)

◆ ex_name_of_object()

char * ex_name_of_object ( ex_entity_type obj_type)
extern

◆ ex_put_concat_node_sets()

SEACAS_DEPRECATED 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 )
extern
Deprecated
Use ex_put_concat_sets()(exoid, EX_NODE_SET, &set_specs)

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().

Returns
In case of an error, ex_put_concat_node_sets() 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()
  • data file opened for read only.
  • data file not initialized properly with call to ex_put_init().
  • the number of node sets specified in a call to ex_put_init() was zero or has been exceeded.
  • a node set with the same ID has already been stored.
  • the number of distribution factors specified for one of the node sets is not zero and is not equal to the number of nodes in the same node set.
Parameters
[in]exoidexodus file ID returned from a previous call to ex_create() or ex_open().
[in]node_set_idsArray containing the node set ID for each set.
[in]num_nodes_per_setArray containing the number of nodes for each set.
[in]num_dist_per_setArray containing the number of distribution factors for each set.
[in]node_sets_node_indexArray 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_indexArray 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_listArray containing the nodes for all sets. Internal node IDs are used in this list (See Section LocalNodeIds).
[in]node_sets_dist_factArray containing the distribution factors for all sets.

For example, the following code will write out two node sets in a concatenated format:

int ids[2], num_nodes_per_set[2], node_ind[2], node_list[8],
num_df_per_set[2], df_ind[2], error, exoid;
float dist_fact[8];
ids[0] = 20; ids[1] = 21;
num_nodes_per_set[0] = 5; num_nodes_per_set[1] = 3;
node_ind[0] = 0; node_ind[1] = 5;
node_list[0] = 100; node_list[1] = 101; node_list[2] = 102;
node_list[3] = 103; node_list[4] = 104;
node_list[5] = 200; node_list[6] = 201; node_list[7] = 202;
num_df_per_set[0] = 5; num_df_per_set[1] = 3;
df_ind[0] = 0; df_ind[1] = 5;
dist_fact[0] = 1.0; dist_fact[1] = 2.0; dist_fact[2] = 3.0;
dist_fact[3] = 4.0; dist_fact[4] = 5.0;
dist_fact[5] = 1.1; dist_fact[6] = 2.1;
dist_fact[7] = 3.1;
error = ex_put_concat_node_sets (exoid, ids, num_nodes_per_set,
num_df_per_set, node_ind, df_ind,
node_list, dist_fact);
SEACAS_DEPRECATED 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)
Definition ex_put_concat_node_sets.c:108
Examples
/test/testwtm.c.

◆ ex_put_concat_side_sets()

SEACAS_DEPRECATED int ex_put_concat_side_sets ( int exoid,
void_int * side_set_ids,
void_int * num_elem_per_set,
void_int * num_dist_per_set,
void_int * side_sets_elem_index,
void_int * side_sets_dist_index,
void_int * side_sets_elem_list,
void_int * side_sets_side_list,
void * side_sets_dist_fact )
extern

writes the side set ID's, side set element count array, side set element pointers array, side set element list, side set side list, and distribution factors list.

Parameters
exoidexodus file id
side_set_idsarray of side set ids
num_elem_per_setnumber of elements/sides/faces per set
num_dist_per_setnumber of distribution factors per set
side_sets_elem_indexindex array of elements into elem list
side_sets_dist_indexindex array of df into df list
side_sets_elem_listarray of elements
side_sets_side_listarray of sides/faces
side_sets_dist_factarray of distribution factors
Deprecated
Use ex_put_concat_sets()(exoid, EX_SIDE_SET, set_specs)

◆ ex_put_concat_var_param()

SEACAS_DEPRECATED int ex_put_concat_var_param ( int exoid,
int num_g,
int num_n,
int num_e,
int num_elem_blk,
int * elem_var_tab )
extern

writes the number of global, nodal, and element variables that will be written to the database

Parameters
exoidint exodus file id
num_gint global variable count
num_nint nodal variable count
num_eint element variable count
num_elem_blkint number of element blocks
elem_var_tabint* element variable truth table array
Deprecated
Use ex_put_all_var_param()(exoid, num_g, num_n, num_e, elem_var_tab, 0, 0, 0, 0)

◆ ex_put_elem_attr()

SEACAS_DEPRECATED int ex_put_elem_attr ( int exoid,
ex_entity_id elem_blk_id,
const void * attrib )
extern
Deprecated
Use ex_put_attr()(exoid, EX_ELEM_BLOCK, elem_blk_id, attrib)

The function ex_put_elem_attr() writes the attributes for an element block. Each element in the element block must have the same number of attributes, so there are(num_attr x num_elem_this_blk) attributes for each element block. The function ex_put_elem_block() must be invoked before this call is made.

Because the attributes 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().

Returns
In case of an error, ex_put_elem_attr() returns a negative number; a warning will return a positive number. Possible causes of errors include:
Parameters
[in]exoidexodus file ID returned from a previous call to ex_create() or ex_open().
[in]elem_blk_idThe element block ID.
[in]attribSize [num_elem_this_blk*num_attr] The list of attributes for the element block. The num_attr index cycles faster.

Refer to the code example in ex_put_elem_block() for an example of writing the attributes array for an element block.

◆ ex_put_elem_attr_names()

SEACAS_DEPRECATED int ex_put_elem_attr_names ( int exoid,
ex_entity_id elem_blk_id,
char * names[] )
extern

writes the attribute names for an element block

Parameters
exoidexodus file id
elem_blk_idelement block id
names[]ptr array of attribute names
Deprecated
Use ex_put_attr_names()(exoid, EX_ELEM_BLOCK, elem_blk_id, names)

◆ ex_put_elem_block()

SEACAS_DEPRECATED int ex_put_elem_block ( int exoid,
ex_entity_id elem_blk_id,
const char * elem_type,
int64_t num_elem_this_blk,
int64_t num_nodes_per_elem,
int64_t num_attr_per_elem )
extern
Deprecated
Use ex_put_block()(exoid, EX_ELEM_BLOCK, elem_blk_id, elem_type, num_elem_this_blk, num_nodes_per_elem, 0, 0, num_attr_per_elem)

The function ex_put_elem_block() writes the parameters used to describe an element block.

Returns
In case of an error, ex_put_elem_block() 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()
  • data file opened for read only.
  • data file not initialized properly with call to ex_put_init().
  • an element block with the same ID has already been specified.
  • the number of element blocks specified in the call to ex_put_init() has been exceeded.
Parameters
[in]exoidexodus file ID returned from a previous call to ex_create() or ex_open().
[in]elem_blk_idThe element block ID.
[in]elem_typeThe type of elements in the element block. The maximum length of this string is MAX_STR_LENGTH .
[in]num_elem_this_blkThe number of elements in the element block.
[in]num_nodes_per_elemThe number of nodes per element in the element block.
[in]num_attr_per_elemThe number of attributes per element in the element block.

For example, the following code segment will initialize an element block with an ID of 10, write out the connectivity array, and write out the element attributes array:

int id, error, exoid, num_elem_in_blk, num_nodes_per_elem, *connect, num_attr;
float *attrib;
\comment{write element block parameters}
id = 10;
num_elem_in_blk = 2;
num_nodes_per_elem = 4; \comment{elements are 4-node shells}
num_attr = 1; \comment{one attribute per element}
error = ex_put_elem_block(exoid, id, "SHELL", num_elem_in_blk,
num_nodes_per_elem, num_attr);
\comment{write element connectivity}
connect = (int *)calloc(num_elem_in_blk*num_nodes_per_elem, sizeof(int));
\comment{fill connect with node numbers; nodes for first element}
connect[0] = 1; connect[1] = 2; connect[2] = 3; connect[3] = 4;
\comment{nodes for second element}
connect[4] = 5; connect[5] = 6; connect[6] = 7; connect[7] = 8;
error = ex_put_elem_conn (exoid, id, connect);
\comment{write element block attributes}
attrib = (float *) calloc (num_attr*num_elem_in_blk, sizeof(float));
for (i=0, cnt=0; i < num_elem_in_blk; i++) {
for (j=0; j < num_attr; j++, cnt++) {
attrib[cnt] = 1.0;
}
}
error = ex_put_elem_attr (exoid, id, attrib);
\comment{Same result using non-deprecated code}
error = ex_put_block(exoid, EX_ELEM_BLOCK, id, "SHELL", num_elem_in_blk,
num_nodes_per_elem, 0, 0, num_attr);
error = ex_put_conn (exoid, EX_ELEM_BLOCK, id, connect);
error = ex_put_attr (exoid, EX_ELEM_BLOCK, id, attrib);
SEACAS_DEPRECATED int ex_put_elem_conn(int exoid, ex_entity_id elem_blk_id, const void_int *connect)
Definition ex_put_elem_conn.c:41
SEACAS_DEPRECATED int ex_put_elem_block(int exoid, ex_entity_id elem_blk_id, const char *elem_type, int64_t num_elem_this_blk, int64_t num_nodes_per_elem, int64_t num_attr_per_elem)
Definition ex_put_elem_block.c:106
SEACAS_DEPRECATED int ex_put_elem_attr(int exoid, ex_entity_id elem_blk_id, const void *attrib)
Definition ex_put_elem_attr.c:48
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)
Definition ex_put_conn.c:44
int ex_put_attr(int exoid, ex_entity_type blk_type, ex_entity_id blk_id, const void *attrib)
Definition ex_put_attr.c:37
int ex_put_block(int exoid, ex_entity_type blk_type, ex_entity_id blk_id, const char *entry_descrip, int64_t num_entries_this_blk, int64_t num_nodes_per_entry, int64_t num_edges_per_entry, int64_t num_faces_per_entry, int64_t num_attr_per_entry)
Definition ex_put_block.c:47

◆ ex_put_elem_conn()

SEACAS_DEPRECATED int ex_put_elem_conn ( int exoid,
ex_entity_id elem_blk_id,
const void_int * connect )
extern
Deprecated
Use ex_put_conn()(exoid, EX_ELEM_BLOCK, elem_blk_id, connect, 0, 0)

The function ex_put_elem_conn() writes the connectivity array for an element block. The function ex_put_elem_block() must be invoked before this call is made.

Returns
In case of an error, ex_put_elem_conn() returns a negative number; a warning will return a positive number. Possible causes of errors include:
Parameters
[in]exoidexodus file ID returned from a previous call to ex_create() or ex_open().
[in]elem_blk_idThe element block ID.
[in]connectSize [num_elem_this_blk,num_nodes_per_elem], The connectivity array; a list of nodes (internal node IDs; See Section LocalNodeIds) that define each element in the element block. The node index cycles faster than the element index.

Refer to the code example in ex_put_elem_block() for an example of writing the connectivity array for an element block.

◆ ex_put_elem_map()

SEACAS_DEPRECATED int ex_put_elem_map ( int exoid,
ex_entity_id map_id,
const void_int * elem_map )
extern

writes an element map; this is a vector of integers of length number of elements

Parameters
exoidexodus file id
map_idelement map id
elem_mapelement map
Deprecated
Use ex_put_num_map()(exoid, EX_ELEM_MAP, map_id, elem_map)

◆ ex_put_elem_num_map()

SEACAS_DEPRECATED int ex_put_elem_num_map ( int exoid,
const void_int * elem_map )
extern
Deprecated
Use ex_put_id_map()(exoid, EX_ELEM_MAP, elem_map)

The function ex_put_elem_num_map() writes out the optional element number map to the database. See Section LocalElementIds for a description of the element number map. The function ex_put_init() must be invoked before this call is made.

Returns
In case of an error, ex_put_elem_num_map() 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()
  • data file opened for read only.
  • data file not initialized properly with call to ex_put_init().
  • an element number map already exists in the file.
Parameters
[in]exoidexodus file ID returned from a previous call to ex_create() or ex_open().
[in]elem_mapThe element number map.

The following code generates a default element number map and outputs it to an open exodus file. This is a trivial case and included just for illustration. Since this map is optional, it should be written out only if it contains something other than the default map.

int error, exoid;
int *elem_map = (int *)calloc(num_elem, sizeof(int));
for (i=1; i <= num_elem; i++)
elem_map[i-1] = i;
error = ex_put_elem_num_map(exoid, elem_map);
\comment{Equivalent using non-deprecated function}
error = ex_put_id_map(exoid, EX_ELEM_MAP, elem_map);
SEACAS_DEPRECATED int ex_put_elem_num_map(int exoid, const void_int *elem_map)
Definition ex_put_elem_num_map.c:51
int ex_put_id_map(int exoid, ex_entity_type map_type, const void_int *map)
Definition ex_put_id_map.c:37

◆ ex_put_elem_var()

SEACAS_DEPRECATED int ex_put_elem_var ( int exoid,
int time_step,
int elem_var_index,
ex_entity_id elem_blk_id,
int64_t num_elem_this_blk,
const void * elem_var_vals )
extern
Deprecated
Use ex_put_var()(exoid, time_step, EX_ELEM_BLOCK, elem_var_index, elem_blk_id, num_elem_this_blk, elem_var_vals)

The function ex_put_elem_var() writes the values of a single element variable for one element block at one time step. It is recommended, but not required, to write the element variable truth table (with ex_put_elem_var_tab() before this function is invoked for better efficiency.

Because element variables 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().

Returns
In case of an error, ex_put_elem_var() 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()
  • data file opened for read only.
  • data file not initialized properly with call to ex_put_init().
  • invalid element block ID.
  • ex_put_elem_block() not called previously to specify parameters for this element block.
  • ex_put_variable_param() not called previously specifying the number of element variables.
  • an element variable truth table was stored in the file but contains a zero (indicating no valid element variable) for the specified element block and element variable.
Parameters
[in]exoidexodus file ID returned from a previous call to ex_create() or ex_open().
[in]time_stepThe time step number, as described under ex_put_time(). This is essentially a counter that is incremented only when results variables are output. The first time step is 1.
[in]elem_var_indexThe index of the element variable. The first variable has an index of 1.
[in]elem_blk_idThe element block ID.
[in]num_elem_this_blkThe number of elements in the given element block.
[in]elem_var_valsArray of num_elem_this_blk values of the elem_var_index-th element variable for the element block with ID of elem_blk_id at the time_step-th time step.

The following coding will write out all of the element variables for a single time step n to an open exodus file :

int num_ele_vars, num_elem_blk, *num_elem_in_block,error,
exoid, n, *ebids;
float *elem_var_vals;
\comment{write element variables}
for (k=1; k <= num_ele_vars; k++) {
for (j=0; j < num_elem_blk; j++) {
elem_var_vals = (float *)
calloc(num_elem_in_block[j], sizeof(float));
for (m=0; m < num_elem_in_block[j]; m++) {
\comment{simulation code fills this in}
elem_var_vals[m] = 10.0;
}
error = ex_put_elem_var (exoid, n, k, ebids[j],
num_elem_in_block[j], elem_var_vals);
\comment{Using non-deprecated function:}
error = ex_put_var (exoid, n, EX_ELEM_BLOCK, k, ebids[j],
num_elem_in_block[j], elem_var_vals);
free (elem_var_vals);
}
}
SEACAS_DEPRECATED int ex_put_elem_var(int exoid, int time_step, int elem_var_index, ex_entity_id elem_blk_id, int64_t num_elem_this_blk, const void *elem_var_vals)
Definition ex_put_elem_var.c:114
int ex_put_var(int exoid, int time_step, ex_entity_type var_type, int var_index, ex_entity_id obj_id, int64_t num_entries_this_obj, const void *var_vals)
Definition ex_put_var.c:77
Examples
/test/testwt-groups.c, /test/testwt-nface-nside.c, and /test/twod.c.

◆ ex_put_elem_var_slab()

SEACAS_DEPRECATED int ex_put_elem_var_slab ( int exoid,
int time_step,
int elem_var_index,
ex_entity_id elem_blk_id,
int64_t start_pos,
int64_t num_vals,
void * elem_var_vals )
extern
Deprecated
Use ex_put_partial_var()(exoid, time_step, EX_ELEM_BLOCK, elem_var_index, elem_blk_id, start_pos, num_vals, elem_var_vals)
Parameters
exoidNetCDF/Exodus file ID
time_steptime index
elem_var_indexelemental variable index
elem_blk_idelemental block id
start_posStarting position to write to
num_valsNumber of elements to write
elem_var_valsvariable values

◆ ex_put_elem_var_tab()

SEACAS_DEPRECATED int ex_put_elem_var_tab ( int exoid,
int num_elem_blk,
int num_elem_var,
int * elem_var_tab )
extern
Deprecated
Use ex_put_truth_table()(exoid, EX_ELEM_BLOCK, num_elem_blk, num_elem_var, 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.

Returns
In case of an error, ex_put_elem_var_tab() 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()
  • data file opened for read only.
  • data file not initialized properly with call to ex_put_init().
  • the specified number of element blocks is different than the number specified in a call to ex_put_init().
  • ex_put_elem_block() not called previously to specify element block parameters.
  • ex_put_variable_param() not called previously to specify the number of element variables or was called but with a different number of element variables.
  • ex_put_elem_var() previously called.
Parameters
[in]exoidexodus file ID returned from a previous call to ex_create() or ex_open().
[in]num_elem_blkThe number of element blocks.
[in]num_elem_varThe number of element variables.
[in]elem_var_tabSize [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.):

int *truth_tab, num_elem_blk, num_ele_vars, error, exoid;
\comment{write element variable truth table}
truth_tab = (int *)calloc((num_elem_blk*num_ele_vars), sizeof(int));
for (i=0, k=0; i < num_elem_blk; i++) {
for (j=0; j < num_ele_vars; j++) {
truth_tab[k++] = 1;
}
}
error = ex_put_elem_var_tab(exoid, num_elem_blk, num_ele_vars,
truth_tab);
SEACAS_DEPRECATED int ex_put_elem_var_tab(int exoid, int num_elem_blk, int num_elem_var, int *elem_var_tab)
Definition ex_put_elem_var_tab.c:77

◆ ex_put_glob_vars()

SEACAS_DEPRECATED int ex_put_glob_vars ( int exoid,
int time_step,
int num_glob_vars,
const void * glob_var_vals )
extern
Deprecated
Use ex_put_var()(exoid, time_step, EX_GLOBAL, 1, 0, num_glob_vars, glob_var_vals)

The function ex_put_glob_vars() writes the values of all the global variables for a single time step. The function ex_put_variable_param() must be invoked before this call is made.

Because global variables 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().

Returns
In case of an error, ex_put_glob_vars() returns a negative number; a warning will return a positive number. Possible causes of errors include:
Parameters
[in]exoidexodus file ID returned from a previous call to ex_create() or ex_open().
[in]time_stepThe time step number, as described under ex_put_time(). This is essentially a counter that is incremented when results variables are output. The first time step is 1.
[in]num_glob_varsThe number of global variables to be written to the database.
[in]glob_var_valsArray of num_glob_vars global variable values for the time_step-th time step.

As an example, the following coding will write the values of all the global variables at one time step to an open exodus II file:

int num_glo_vars, error, exoid, time_step;
float *glob_var_vals
\comment{write global variables}
for (j=0; j < num_glo_vars; j++) {
\comment{application code fills this array}
glob_var_vals[j] = 10.0;
}
error = ex_put_glob_vars (exoid, time_step, num_glo_vars, glob_var_vals);
\comment{Using non-deprecated functions:}
error = ex_put_var (exoid, time_step, EX_GLOBAL, 1, 0, num_glo_vars,
glob_var_vals);
@ EX_GLOBAL
Definition exodusII.h:285
SEACAS_DEPRECATED int ex_put_glob_vars(int exoid, int time_step, int num_glob_vars, const void *glob_var_vals)
Definition ex_put_glob_vars.c:84

◆ ex_put_n_coord()

SEACAS_DEPRECATED int ex_put_n_coord ( int exoid,
int64_t start_node_num,
int64_t num_nodes,
const void * x_coor,
const void * y_coor,
const void * z_coor )
extern
Deprecated
Use ex_put_partial_coord()(exoid, start_node_num, num_nodes, x_coor, y_coor, z_coor) instead. writes the coordinates of some of the nodes in the model Only writes the 'non-null' arrays.
Parameters
exoidexodus file id
start_node_numthe starting index (1-based) of the coordinates to be written
num_nodesthe number of nodes to write coordinates for.
x_coorx coord array
y_coory coord array
z_coorz coord array

◆ ex_put_n_elem_attr()

SEACAS_DEPRECATED int ex_put_n_elem_attr ( int exoid,
ex_entity_id elem_blk_id,
int64_t start_elem_num,
int64_t num_elems,
void * attrib )
extern
Parameters
exoidNetCDF/Exodus file ID
elem_blk_idElement block ID
start_elem_numStarting position to write to
num_elemsNumber of elements to write
attribAttribute

◆ ex_put_n_elem_conn()

SEACAS_DEPRECATED int ex_put_n_elem_conn ( int exoid,
ex_entity_id elem_blk_id,
int64_t start_elem_num,
int64_t num_elems,
const void_int * connect )
extern
Deprecated
Use ex_put_partial_conn()(exoid, EX_ELEM_BLOCK, elem_blk_id, start_elem_num, num_elems, connect, NULL, NULL)
Parameters
exoidNetCDF/Exodus file ID
elem_blk_idElement block ID
start_elem_numStarting position to write to
num_elemsNumber of elements to write
connectConnectivity vector

◆ ex_put_n_elem_num_map()

SEACAS_DEPRECATED int ex_put_n_elem_num_map ( int exoid,
int64_t start_ent,
int64_t num_ents,
const void_int * elem_map )
extern
Deprecated
Use ex_put_partial_id_map()(exoid, EX_ELEM_MAP, start_ent, num_ents, elem_map)

◆ ex_put_n_node_num_map()

SEACAS_DEPRECATED int ex_put_n_node_num_map ( int exoid,
int64_t start_ent,
int64_t num_ents,
const void_int * node_map )
extern
Deprecated
Use ex_put_partial_id_map()(exoid, EX_NODE_MAP, start_ent, num_ents, node_map)

◆ ex_put_n_node_set()

SEACAS_DEPRECATED int ex_put_n_node_set ( int exoid,
ex_entity_id node_set_id,
int64_t start_node_num,
int64_t num_nodes,
const void_int * node_set_node_list )
extern
Parameters
exoidNetCDF/Exodus file ID
node_set_idNode set ID
start_node_numNode index to start writing at
num_nodesNumber of nodes to write
node_set_node_listList of nodes in node set

◆ ex_put_n_node_set_df()

SEACAS_DEPRECATED int ex_put_n_node_set_df ( int exoid,
ex_entity_id node_set_id,
int64_t start_num,
int64_t num_df_to_get,
void * node_set_dist_fact )
extern
Deprecated
Use ex_put_partial_set_dist_fact()(exoid, EX_NODE_SET, node_set_id, start_num, num_df_to_get, node_set_dist_fact)
Parameters
exoidNetCDF/Exodus file ID
node_set_idNode-set ID
start_numStarting df number
num_df_to_getNumber of df's to write
node_set_dist_factDistribution factors

◆ ex_put_n_one_attr()

SEACAS_DEPRECATED int ex_put_n_one_attr ( int exoid,
ex_entity_type obj_type,
ex_entity_id obj_id,
int64_t start_num,
int64_t num_ent,
int attrib_index,
const void * attrib )
extern
Deprecated
Use ex_put_partial_one_attr()(exoid, obj_type, obj_id, start_num, num_ent, attrib_index, attrib) writes the specified attribute for a block
Parameters
exoidexodus file id
obj_typeobject type (edge, face, elem block)
obj_idobject id (edge, face, elem block ID)
start_numthe starting index of the attributes to be written
num_entthe number of entities to write attributes for.
attrib_indexindex of attribute to write
attribarray of attributes

◆ ex_put_n_side_set()

SEACAS_DEPRECATED int ex_put_n_side_set ( int exoid,
ex_entity_id side_set_id,
int64_t start_side_num,
int64_t num_sides,
const void_int * side_set_elem_list,
const void_int * side_set_side_list )
extern
Deprecated
use ex_put_partial_set()(exoid, EX_SIDE_SET, side_set_id, start_side_num, num_sides, side_set_elem_list, side_set_side_list) instead
Parameters
exoidNetCDF/Exodus file ID
side_set_idSide-set ID to write
start_side_numStarting element number
num_sidesNumber of sides to write
side_set_elem_listList of element IDs
side_set_side_listList of side IDs

◆ ex_put_n_side_set_df()

SEACAS_DEPRECATED int ex_put_n_side_set_df ( int exoid,
ex_entity_id side_set_id,
int64_t start_num,
int64_t num_df_to_get,
void * side_set_dist_fact )
extern
Deprecated
use ex_put_partial_set_dist_fact()(exoid, EX_SIDE_SET, side_set_id, start_num, num_df_to_get, side_set_dist_fact)
Parameters
exoidNetCDF/Exodus file ID
side_set_idSide-set ID
start_numStarting df number
num_df_to_getNumber of df's to write
side_set_dist_factDistribution factors

◆ ex_put_nodal_var()

SEACAS_DEPRECATED int ex_put_nodal_var ( int exoid,
int time_step,
int nodal_var_index,
int64_t num_nodes,
const void * nodal_var_vals )
extern
Deprecated
Use ex_put_var()(exoid, time_step, EX_NODAL, nodal_var_index, 1, num_nodes, nodal_var_vals)

The function ex_put_nodal_var() writes the values of a single nodal variable for a single time step. The function ex_put_variable_param() must be invoked before this call is made.

Because nodal variables 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().

Returns
In case of an error, ex_put_nodal_var() returns a negative number; a warning will return a positive number. Possible causes of errors include:
Parameters
[in]exoidexodus file ID returned from a previous call to ex_create() or ex_open().
[in]time_stepThe time step number, as described under ex_put_time(). This is essentially a counter that is incremented when results variables are output. The first time step is 1.
[in]nodal_var_indexThe index of the nodal variable. The first variable has an index of 1.
[in]num_nodesThe number of nodal points.
[in]nodal_var_valsArray of num_nodes values of the nodal_var_index-th nodal variable for the time_step-th time step.

As an example, the following code segment writes all the nodal variables for a single time step:

int num_nod_vars, num_nodes, error, exoid, time_step;
float *nodal_var_vals;
\comment{write nodal variables}
nodal_var_vals = (float *) calloc(num_nodes, sizeof(float));
for (k=1; k <= num_nod_vars; k++) {
for (j=0; j < num_nodes; j++) {
\comment{application code fills in this array}
nodal_var_vals[j] = 10.0;
}
error = ex_put_nodal_var(exoid, time_step, k, num_nodes,
nodal_var_vals);
}
SEACAS_DEPRECATED int ex_put_nodal_var(int exoid, int time_step, int nodal_var_index, int64_t num_nodes, const void *nodal_var_vals)
Definition ex_put_nodal_var.c:74
Examples
/test/testwt-groups.c, and /test/testwt-nface-nside.c.

◆ ex_put_node_map()

SEACAS_DEPRECATED int ex_put_node_map ( int exoid,
ex_entity_id map_id,
const void_int * node_map )
extern

writes an node map; this is a vector of integers of length number of nodes

Parameters
exoidexodus file id
map_idnode map id
node_mapnode map
Deprecated
Use ex_put_num_map()(exoid, EX_NODE_MAP, map_id, node_map)

◆ ex_put_node_num_map()

SEACAS_DEPRECATED int ex_put_node_num_map ( int exoid,
const void_int * node_map )
extern
Deprecated
Use ex_put_id_map()(exoid, EX_NODE_MAP, node_map)

The function ex_put_node_num_map() writes out the optional node number map to the database. See Section LocalNodeIds for a description of the node number map. The function ex_put_init() must be invoked before this call is made.

Returns
In case of an error, ex_put_node_num_map() 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()
  • data file opened for read only.
  • data file not initialized properly with call to ex_put_init().
  • a node number map already exists in the file.
Parameters
[in]exoidexodus file ID returned from a previous call to ex_create() or ex_open().
[in]node_mapThe node number map.

The following code generates a default node number map and outputs it to an open exodus file. This is a trivial case and included just for illustration. Since this map is optional, it should be written out only if it contains something other than the default map.

int error, exoid;
int *node_map = (int *)calloc(num_nodes, sizeof(int));
for (i=1; i <= num_nodes; i++)
node_map[i-1] = i;
error = ex_put_node_num_map(exoid, node_map);
\comment{Equivalent using non-deprecated function}
error = ex_put_id_map(exoid, EX_NODE_MAP, node_map);
SEACAS_DEPRECATED int ex_put_node_num_map(int exoid, const void_int *node_map)
Definition ex_put_node_num_map.c:50

◆ ex_put_node_set()

SEACAS_DEPRECATED int ex_put_node_set ( int exoid,
ex_entity_id node_set_id,
const void_int * node_set_node_list )
extern
Deprecated
Use ex_put_set()(exoid, EX_NODE_SET, node_set_id, node_set_node_list, NULL)

The function ex_put_node_set() writes the node list for a single node set. The function ex_put_node_set_param() must be called before this routine is invoked.

Returns
In case of an error, ex_put_node_set() returns a negative number; a warning will return a positive number. Possible causes of errors include:
Parameters
[in]exoidexodus file ID returned from a previous call to ex_create() or ex_open().
[in]node_set_idThe node set ID.
[in]node_set_node_listArray containing the node list for the node set. Internal node IDs are used in this list (See Section LocalNodeIds).

Refer to the description of ex_put_node_set_param() for a sample code segment to write out a node set.

◆ ex_put_node_set_dist_fact()

SEACAS_DEPRECATED int ex_put_node_set_dist_fact ( int exoid,
ex_entity_id node_set_id,
const void * node_set_dist_fact )
extern
Deprecated
Use ex_put_set_dist_fact()(exoid, EX_NODE_SET, node_set_id, node_set_dist_fact)

The function ex_put_node_set_dist_fact() writes node set distribution factors for a single node set. The function ex_put_node_set_param() must be called before this routine is invoked.

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().

Returns
In case of an error, ex_put_node_set_dist_fact() returns a negative number; a warning will return a positive number. Possible causes of errors include:
Parameters
[in]exoidexodus file ID returned from a previous call to ex_create() or ex_open().
[in]node_set_idThe node set ID.
[in]node_set_dist_factArray containing the distribution factors in the node set.

Refer to the description of ex_put_node_set_param() for a sample code segment to write out the distribution factors for a node set.

◆ ex_put_node_set_param()

SEACAS_DEPRECATED int ex_put_node_set_param ( int exoid,
ex_entity_id node_set_id,
int64_t num_nodes_in_set,
int64_t num_dist_in_set )
extern
Deprecated
Use ex_put_set_param()(exoid, EX_NODE_SET, node_set_id, num_nodes_in_set, num_dist_in_set)

The function ex_put_node_set_param() writes the node set ID, the number of nodes which describe a single node set, and the number of node set distribution factors for the node set.

Returns
In case of an error, ex_put_node_set_param() 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()
  • data file opened for read only.
  • data file not initialized properly with call to ex_put_init().
  • the number of node sets specified in the call to ex_put_init() was zero or has been exceeded.
  • a node set with the same ID has already been stored.
  • the specified number of distribution factors is not zero and is not equal to the number of nodes.
Parameters
[in]exoidexodus file ID returned from a previous call to ex_create() or ex_open().
[in]node_set_idThe node set ID.
[in]num_nodes_in_setThe number of nodes in the node set.
[in]num_dist_in_setThe number of distribution factors in the node set. This should be either 0 (zero) for no factors, or should equal num_nodes_in_set.

The following code segment will write out a node set to an open exodus file :

int id, num_nodes_in_set, num_dist_in_set, error, exoid, *node_list;
float *dist_fact;
\comment{write node set parameters}
id = 20; num_nodes_in_set = 5; num_dist_in_set = 5;
error = ex_put_node_set_param(exoid, id, num_nodes_in_set,
num_dist_in_set);
\comment{write node set node list}
node_list = (int *) calloc (num_nodes_in_set, sizeof(int));
node_list[0] = 100; node_list[1] = 101; node_list[2] = 102;
node_list[3] = 103; node_list[4] = 104;
error = ex_put_node_set(exoid, id, node_list);
\comment{write node set distribution factors}
dist_fact = (float *) calloc (num_dist_in_set, sizeof(float));
dist_fact[0] = 1.0; dist_fact[1] = 2.0; dist_fact[2] = 3.0;
dist_fact[3] = 4.0; dist_fact[4] = 5.0;
error = ex_put_node_set_dist_fact(exoid, id, dist_fact);
\comment{Same result using non-deprecated functions}
error = ex_put_set_param(exoid, EX_NODE_SET, id, num_nodes_in_set,
num_dist_in_set);
error = ex_put_set(exoid, EX_NODE_SET, id, node_list, NULL);
error = ex_put_set_dist_fact(exoid, EX_NODE_SET, id, dist_fact);
SEACAS_DEPRECATED int ex_put_node_set_dist_fact(int exoid, ex_entity_id node_set_id, const void *node_set_dist_fact)
Definition ex_put_node_set_dist_fact.c:43
SEACAS_DEPRECATED int ex_put_node_set_param(int exoid, ex_entity_id node_set_id, int64_t num_nodes_in_set, int64_t num_dist_in_set)
Definition ex_put_node_set_param.c:73
SEACAS_DEPRECATED int ex_put_node_set(int exoid, ex_entity_id node_set_id, const void_int *node_set_node_list)
Definition ex_put_node_set.c:38
int ex_put_set_param(int exoid, ex_entity_type set_type, ex_entity_id set_id, int64_t num_entries_in_set, int64_t num_dist_fact_in_set)
Definition ex_put_set_param.c:39
int ex_put_set_dist_fact(int exoid, ex_entity_type set_type, ex_entity_id set_id, const void *set_dist_fact)
Definition ex_put_set_dist_fact.c:37
int ex_put_set(int exoid, ex_entity_type set_type, ex_entity_id set_id, const void_int *set_entry_list, const void_int *set_extra_list)
Definition ex_put_set.c:41

◆ ex_put_nset_var()

SEACAS_DEPRECATED int ex_put_nset_var ( int exoid,
int time_step,
int nset_var_index,
ex_entity_id nset_id,
int64_t num_nodes_this_nset,
const void * nset_var_vals )
extern

writes the values of a single nodeset variable for one nodeset at one time step to the database; assume the first time step and nodeset variable index are 1

Parameters
exoidexodus file id
time_steptime step number
nset_var_indexnodeset variable index
nset_idnodeset id
num_nodes_this_nsetnumber of nodes in this nodeset
nset_var_valsthe values to be written
Deprecated
Use ex_put_var()(exoid, time_step, EX_NODE_SET, nset_var_index, nset_id, num_nodes_this_nset, nset_var_vals)
Examples
/test/testwt-groups.c, and /test/twod.c.

◆ ex_put_nset_var_tab()

SEACAS_DEPRECATED int ex_put_nset_var_tab ( int exoid,
int num_nset,
int num_nset_var,
int * nset_var_tab )
extern

writes the EXODUS nodeset variable truth table to the database; also, creates netCDF variables in which to store EXODUS nodeset variable values; although this table isn't required (because the netCDF variables can also be created in ex_put_nset_var), this call will save tremendous time because all of the variables are defined at once while the file is in define mode, rather than going in and out of define mode (causing the entire file to be copied over and over) which is what occurs when the nodeset variable values variables are defined in ex_put_nset_var

Parameters
exoidexodus file id
num_nsetnumber of nodesets
num_nset_varnumber of nodeset variables
nset_var_tabnodeset variable truth table array
Deprecated
Use ex_put_truth_table()(exoid, EX_NODE_SET, num_nset, num_nset_var, nset_var_tab)

◆ ex_put_one_elem_attr()

SEACAS_DEPRECATED int ex_put_one_elem_attr ( int exoid,
ex_entity_id elem_blk_id,
int attrib_index,
const void * attrib )
extern

writes the specified attribute for an element block

Parameters
exoidexodus file id
elem_blk_idelement block id
attrib_indexindex of attribute to write
attribarray of attributes
Deprecated
Use ex_put_one_attr()(exoid, EX_ELEM_BLOCK, elem_blk_id, attrib_index, attrib)

◆ ex_put_partial_elem_attr()

SEACAS_DEPRECATED int ex_put_partial_elem_attr ( int exoid,
ex_entity_id elem_blk_id,
int64_t start_elem_num,
int64_t num_elems,
void * attrib )
extern
Deprecated
Use ex_put_partial_attr()(exoid, EX_ELEM_BLOCK, elem_blk_id, start_elem_num, num_elems, attrib) instead.
Parameters
exoidNetCDF/Exodus file ID
elem_blk_idElement block ID
start_elem_numStarting position to write to
num_elemsNumber of elements to write
attribAttribute

◆ ex_put_partial_elem_conn()

SEACAS_DEPRECATED int ex_put_partial_elem_conn ( int exoid,
ex_entity_id elem_blk_id,
int64_t start_elem_num,
int64_t num_elems,
const void_int * connect )
extern
Deprecated
Use ex_put_partial_conn()(exoid, EX_ELEM_BLOCK, elem_blk_id, start_elem_num, num_elems, connect, NULL, NULL)
Parameters
exoidNetCDF/Exodus file ID
elem_blk_idElement block ID
start_elem_numStarting position to write to
num_elemsNumber of elements to write
connectConnectivity vector

◆ ex_put_partial_elem_map()

SEACAS_DEPRECATED int ex_put_partial_elem_map ( int exoid,
ex_entity_id map_id,
int64_t ent_start,
int64_t ent_count,
const void_int * elem_map )
extern

writes an element map; this is a vector of integers of length number of elements

Deprecated
Use ex_put_partial_num_map()(exoid, EX_ELEM_MAP, map_id, ent_start, ent_count, elem_map) instead

◆ ex_put_partial_elem_num_map()

SEACAS_DEPRECATED int ex_put_partial_elem_num_map ( int exoid,
int64_t start_ent,
int64_t num_ents,
const void_int * elem_map )
extern
Deprecated
Use ex_put_partial_id_map()(exoid, EX_ELEM_MAP, start_ent, num_ents, elem_map)

◆ ex_put_partial_node_num_map()

SEACAS_DEPRECATED int ex_put_partial_node_num_map ( int exoid,
int64_t start_ent,
int64_t num_ents,
const void_int * node_map )
extern
Deprecated
Use ex_put_partial_id_map()(exoid, EX_NODE_MAP, start_ent, num_ents, node_map)

◆ ex_put_partial_node_set()

SEACAS_DEPRECATED int ex_put_partial_node_set ( int exoid,
ex_entity_id node_set_id,
int64_t start_node_num,
int64_t num_nodes,
const void_int * node_set_node_list )
extern
Deprecated
Use ex_put_partial_set()(exoid, EX_NODE_SET, node_set_id, start_node_num, num_nodes, node_set_node_list, NULL)
Parameters
exoidNetCDF/Exodus file ID
node_set_idNode set ID
start_node_numNode index to start writing at
num_nodesNumber of nodes to write
node_set_node_listList of nodes in node set

◆ ex_put_partial_node_set_df()

SEACAS_DEPRECATED int ex_put_partial_node_set_df ( int exoid,
ex_entity_id node_set_id,
int64_t start_num,
int64_t num_df_to_get,
void * node_set_dist_fact )
extern
Deprecated
Use ex_put_partial_set_dist_fact()(exoid, EX_NODE_SET, node_set_id, start_num, num_df_to_get, node_set_dist_fact)
Parameters
exoidNetCDF/Exodus file ID
node_set_idNode-set ID
start_numStarting df number
num_df_to_getNumber of df's to write
node_set_dist_factDistribution factors

◆ ex_put_partial_side_set()

SEACAS_DEPRECATED int ex_put_partial_side_set ( int exoid,
ex_entity_id side_set_id,
int64_t start_side_num,
int64_t num_sides,
const void_int * side_set_elem_list,
const void_int * side_set_side_list )
extern
Deprecated
Use ex_put_partial_set()(exoid, EX_SIDE_SET, side_set_id, start_side_num, num_sides, side_set_elem_list, side_set_side_list)
Parameters
exoidNetCDF/Exodus file ID
side_set_idSide-set ID to write
start_side_numStarting element number
num_sidesNumber of sides to write
side_set_elem_listList of element IDs
side_set_side_listList of side IDs

◆ ex_put_partial_side_set_df()

SEACAS_DEPRECATED int ex_put_partial_side_set_df ( int exoid,
ex_entity_id side_set_id,
int64_t start_num,
int64_t num_df_to_get,
void * side_set_dist_fact )
extern
Deprecated
Use ex_put_partial_set_dist_fact()(exoid, EX_SIDE_SET, side_set_id, start_num, num_df_to_get, side_set_dist_fact)
Parameters
exoidNetCDF/Exodus file ID
side_set_idSide-set ID
start_numStarting df number
num_df_to_getNumber of df's to write
side_set_dist_factDistribution factors

◆ ex_put_side_set()

SEACAS_DEPRECATED int ex_put_side_set ( int exoid,
ex_entity_id side_set_id,
const void_int * side_set_elem_list,
const void_int * side_set_side_list )
extern

writes the side set element list and side set side list for a single side set

Parameters
exoidexodus file id
side_set_idside set id
*side_set_elem_listarray of elements in side set
*side_set_side_listarray of sides in side set
Deprecated
Use ex_put_set()(exoid, EX_SIDE_SET, side_set_id, side_set_elem_list, side_set_side_list)

◆ ex_put_side_set_dist_fact()

SEACAS_DEPRECATED int ex_put_side_set_dist_fact ( int exoid,
ex_entity_id side_set_id,
const void * side_set_dist_fact )
extern

writes the distribution factors for a single side set

Parameters
exoidexodus file id
side_set_idside set id
*side_set_dist_factarray of dist factors for side set
Deprecated
Use ex_put_set_dist_fact()(exoid, EX_SIDE_SET, side_set_id, side_set_dist_fact)

◆ ex_put_side_set_param()

SEACAS_DEPRECATED int ex_put_side_set_param ( int exoid,
ex_entity_id side_set_id,
int64_t num_side_in_set,
int64_t num_dist_fact_in_set )
extern

writes the side set id and the number of sides (edges or faces) which describe a single side set

Parameters
exoidexodus file id
side_set_idside set id
num_side_in_setnumber of sides in the side set
num_dist_fact_in_setnumber of distribution factors in the side set
Deprecated
Use ex_put_set_param()(exoid, EX_SIDE_SET, side_set_id, num_side_in_set, num_dist_fact_in_set)

◆ ex_put_sset_var()

SEACAS_DEPRECATED int ex_put_sset_var ( int exoid,
int time_step,
int sset_var_index,
ex_entity_id sset_id,
int64_t num_faces_this_sset,
const void * sset_var_vals )
extern

writes the values of a single sideset variable for one sideset at one time step to the database; assume the first time step and sideset variable index are 1

Parameters
exoidexodus file id
time_steptime step number
sset_var_indexsideset variable index
sset_idsideset id
num_faces_this_ssetnumber of faces in this sideset
sset_var_valsthe variable values to be written
Deprecated
Use ex_put_var()(exoid, time_step, EX_SIDE_SET, sset_var_index, sset_id, num_faces_this_sset, sset_var_vals)
Examples
/test/testwt-groups.c, and /test/twod.c.

◆ ex_put_sset_var_tab()

SEACAS_DEPRECATED int ex_put_sset_var_tab ( int exoid,
int num_sset,
int num_sset_var,
int * sset_var_tab )
extern

writes the EXODUS sideset variable truth table to the database; also, creates netCDF variables in which to store EXODUS sideset variable values; although this table isn't required (because the netCDF variables can also be created in ex_put_sset_var), this call will save tremendous time because all of the variables are defined at once while the file is in define mode, rather than going in and out of define mode (causing the entire file to be copied over and over) which is what occurs when the sideset variable values variables are defined in ex_put_sset_var

Parameters
exoidexodus file id
num_ssetnumber of sidesets
num_sset_varnumber of sideset variables
*sset_var_tabsideset variable truth table array
Deprecated
Use ex_put_truth_table()(exoid, EX_SIDE_SET, num_sset, num_sset_var, sset_var_tab)

◆ ex_var_type_to_ex_entity_type()

ex_entity_type ex_var_type_to_ex_entity_type ( char var_type)
extern

Variable Documentation

◆ exerrval

int exerrval
extern

shared error return value

◆ exoptval

int exoptval
extern

error reporting flag (default is quiet)