Exodus 8.24
Loading...
Searching...
No Matches
ex_put_all_var_param_ext.c File Reference
#include "exodusII.h"
#include "exodusII_int.h"

Macros

#define EX_GET_IDS_STATUS(TNAME, NUMVAR, DNAME, DID, DVAL, VIDS, EIDS, VSTAT, VSTATVAL)
 

Functions

static int define_dimension (int exoid, const char *DIMENSION, int count, const char *label, int *dimid)
 
static int define_variable_name_variable (int exoid, const char *VARIABLE, int dimension, const char *label)
 
static int * get_status_array (int exoid, int var_count, const char *VARIABLE, const char *label)
 
static int put_truth_table (int exoid, int varid, int *table, const char *label)
 
static int define_truth_table (ex_entity_type obj_type, int exoid, int num_ent, int num_var, int *var_tab, int *status_tab, void_int *ids, const char *label)
 
static int exi_define_vars (int exoid, ex_entity_type obj_type, const char *entity_name, const char *entity_blk_name, int numvar, const char *DNAME, int dimid1, int dimid2, int DVAL, void_int **entity_ids, const char *VNOV, const char *VTV, int **status_var, int *truth_table, int *truth_table_var)
 
int ex_put_all_var_param_ext (int exoid, const ex_var_params *vp)
 

Macro Definition Documentation

◆ EX_GET_IDS_STATUS

#define EX_GET_IDS_STATUS ( TNAME,
NUMVAR,
DNAME,
DID,
DVAL,
VIDS,
EIDS,
VSTAT,
VSTATVAL )
Value:
if (NUMVAR > 0) { \
status = exi_get_dimension(exoid, DNAME, TNAME "s", &DVAL, &DID, __func__); \
if (status != NC_NOERR) \
goto error_ret; \
\
/* get element block IDs */ \
if (!(VIDS = malloc(sizeof(int64_t) * DVAL))) { \
snprintf(errmsg, MAX_ERR_LENGTH, \
"ERROR: failed to allocate memory for " TNAME " id array for file id %d", exoid); \
ex_err_fn(exoid, __func__, errmsg, EX_MEMFAIL); \
goto error_ret; \
} \
ex_get_ids(exoid, EIDS, VIDS); \
\
/* Get element block status array for later use (allocates memory) */ \
VSTATVAL = get_status_array(exoid, DVAL, VSTAT, TNAME); \
if (VSTATVAL == NULL) { \
goto error_ret; \
} \
}
static int * get_status_array(int exoid, int var_count, const char *VARIABLE, const char *label)
Definition ex_put_all_var_param_ext.c:393
@ EX_MEMFAIL
Definition exodusII.h:1947
int exi_get_dimension(int exoid, const char *DIMENSION, const char *label, size_t *count, int *dimid, const char *routine)
Definition ex_utils.c:1659
#define MAX_ERR_LENGTH
Definition exodusII.h:417

Function Documentation

◆ define_dimension()

static int define_dimension ( int exoid,
const char * DIMENSION,
int count,
const char * label,
int * dimid )
static

◆ define_truth_table()

static int define_truth_table ( ex_entity_type obj_type,
int exoid,
int num_ent,
int num_var,
int * var_tab,
int * status_tab,
void_int * ids,
const char * label )
static

◆ define_variable_name_variable()

static int define_variable_name_variable ( int exoid,
const char * VARIABLE,
int dimension,
const char * label )
static

◆ exi_define_vars()

static int exi_define_vars ( int exoid,
ex_entity_type obj_type,
const char * entity_name,
const char * entity_blk_name,
int numvar,
const char * DNAME,
int dimid1,
int dimid2,
int DVAL,
void_int ** entity_ids,
const char * VNOV,
const char * VTV,
int ** status_var,
int * truth_table,
int * truth_table_var )
static

◆ get_status_array()

static int * get_status_array ( int exoid,
int var_count,
const char * VARIABLE,
const char * label )
static

◆ put_truth_table()

static int put_truth_table ( int exoid,
int varid,
int * table,
const char * label )
static