Exodus 8.24
Loading...
Searching...
No Matches
ex_utils.c File Reference
#include <stdlib.h>
#include <errno.h>
#include <stdbool.h>
#include "exodusII.h"
#include "exodusII_int.h"

Macros

#define _GNU_SOURCE
 
#define MAGIC_NUMBER_LEN   4
 
#define EX_QSORT_CUTOFF   12
 

Functions

const char * ex_config (void)
 
void ex_print_config (void)
 
int exi_check_file_type (const char *path, int *type)
 
int ex_set_max_name_length (int exoid, int length)
 
void exi_update_max_name_length (int exoid, int length)
 
int exi_put_names (int exoid, int varid, size_t num_names, char *const *names, ex_entity_type obj_type, const char *subtype, const char *routine)
 
int exi_put_name (int exoid, int varid, size_t index, const char *name, ex_entity_type obj_type, const char *subtype, const char *routine)
 
int exi_get_names (int exoid, int varid, size_t num_names, char **names, ex_entity_type obj_type, const char *routine)
 
int exi_get_name (int exoid, int varid, size_t index, char *name, int name_size, ex_entity_type obj_type, const char *routine)
 
void exi_trim (char *name)
 
char * exi_catstr (const char *string, int num)
 
char * exi_catstr2 (const char *string1, int num1, const char *string2, int num2)
 
char * ex_name_of_object (ex_entity_type obj_type)
 
ex_entity_type ex_var_type_to_ex_entity_type (char var_type)
 
char * exi_dim_num_objects (ex_entity_type obj_type)
 
char * exi_dim_num_entries_in_object (ex_entity_type obj_type, int idx)
 
char * exi_name_var_of_object (ex_entity_type obj_type, int i, int j)
 
char * exi_name_red_var_of_object (ex_entity_type obj_type, int id)
 
char * exi_name_of_map (ex_entity_type map_type, int map_index)
 
int exi_id_lkup (int exoid, ex_entity_type id_type, ex_entity_id num)
 
struct exi_obj_statsexi_get_stat_ptr (int exoid, struct exi_obj_stats **obj_ptr)
 
void exi_rm_stat_ptr (int exoid, struct exi_obj_stats **obj_ptr)
 
struct exi_list_item ** exi_get_counter_list (ex_entity_type obj_type)
 
int exi_inc_file_item (int exoid, struct exi_list_item **list_ptr)
 
int exi_get_file_item (int exoid, struct exi_list_item **list_ptr)
 
void exi_rm_file_item (int exoid, struct exi_list_item **list_ptr)
 
int ex_get_num_props (int exoid, ex_entity_type obj_type)
 
int exi_get_cpu_ws (void)
 
static void ex_swap (int v[], int64_t i, int64_t j)
 
static void ex_swap64 (int64_t v[], int64_t i, int64_t j)
 
static int ex_int_median3 (int v[], int iv[], int64_t left, int64_t right)
 
static int64_t ex_int_median3_64 (int64_t v[], int64_t iv[], int64_t left, int64_t right)
 
static void ex_int_iqsort (int v[], int iv[], int left, int right)
 
static void ex_int_iqsort64 (int64_t v[], int64_t iv[], int64_t left, int64_t right)
 
static void ex_int_iisort (int v[], int iv[], int N)
 
static void ex_int_iisort64 (int64_t v[], int64_t iv[], int64_t N)
 
void exi_iqsort (int v[], int iv[], size_t N)
 
void exi_iqsort64 (int64_t v[], int64_t iv[], int64_t N)
 
int ex_large_model (int exoid)
 
int exi_get_dimension (int exoid, const char *DIMENSION, const char *label, size_t *count, int *dimid, const char *routine)
 
size_t ex_header_size (int exoid)
 
void exi_set_compact_storage (int exoid, int varid)
 
void exi_compress_variable (int exoid, int varid, int type)
 
int exi_leavedef (int exoid, const char *call_func)
 
int exi_redef (int exoid, const char *call_func)
 
int exi_persist_redef (int exoid, const char *call_func)
 
int exi_persist_leavedef (int exoid, const char *call_func)
 
int exi_check_version (int run_version)
 
int exi_handle_mode (unsigned int my_mode, int is_parallel, int run_version)
 
int exi_populate_header (int exoid, const char *path, int my_mode, int is_parallel, int *comp_ws, int *io_ws)
 
char * ex_copy_string (char *dest, char const *source, size_t elements)
 
int exi_get_varid (int exoid, ex_entity_type obj_type, ex_entity_id id)
 
char * exi_canonicalize_filename (char const *file_path)
 

Variables

struct exi_obj_statsexoII_eb = NULL
 
struct exi_obj_statsexoII_ed = NULL
 
struct exi_obj_statsexoII_fa = NULL
 
struct exi_obj_statsexoII_ns = NULL
 
struct exi_obj_statsexoII_es = NULL
 
struct exi_obj_statsexoII_fs = NULL
 
struct exi_obj_statsexoII_ss = NULL
 
struct exi_obj_statsexoII_els = NULL
 
struct exi_obj_statsexoII_em = NULL
 
struct exi_obj_statsexoII_edm = NULL
 
struct exi_obj_statsexoII_fam = NULL
 
struct exi_obj_statsexoII_nm = NULL
 
struct exi_obj_statsexoII_ass = NULL
 
static char ret_string [10 *(MAX_VAR_NAME_LENGTH+1)]
 
static char * cur_string = &ret_string[0]
 
static struct exi_list_itemed_ctr_list = NULL
 
static struct exi_list_itemfa_ctr_list = NULL
 
static struct exi_list_itemeb_ctr_list = NULL
 
static struct exi_list_itemns_ctr_list = NULL
 
static struct exi_list_itemes_ctr_list = NULL
 
static struct exi_list_itemfs_ctr_list = NULL
 
static struct exi_list_itemss_ctr_list = NULL
 
static struct exi_list_itemels_ctr_list = NULL
 
static struct exi_list_itemassm_ctr_list = NULL
 
static struct exi_list_itemblob_ctr_list = NULL
 
static struct exi_list_itemnm_ctr_list = NULL
 
static struct exi_list_itemedm_ctr_list = NULL
 
static struct exi_list_itemfam_ctr_list = NULL
 
static struct exi_list_itemem_ctr_list = NULL
 
static int warning_output = 0
 

Macro Definition Documentation

◆ _GNU_SOURCE

#define _GNU_SOURCE

◆ EX_QSORT_CUTOFF

#define EX_QSORT_CUTOFF   12

◆ MAGIC_NUMBER_LEN

#define MAGIC_NUMBER_LEN   4

Function Documentation

◆ ex_copy_string()

char * ex_copy_string ( char * dest,
char const * source,
size_t elements )
Undocumented
Safer than strncpy – guarantees null termination

◆ ex_int_iisort()

static void ex_int_iisort ( int v[],
int iv[],
int N )
static

◆ ex_int_iisort64()

static void ex_int_iisort64 ( int64_t v[],
int64_t iv[],
int64_t N )
static

◆ ex_int_iqsort()

static void ex_int_iqsort ( int v[],
int iv[],
int left,
int right )
static

◆ ex_int_iqsort64()

static void ex_int_iqsort64 ( int64_t v[],
int64_t iv[],
int64_t left,
int64_t right )
static

◆ ex_int_median3()

static int ex_int_median3 ( int v[],
int iv[],
int64_t left,
int64_t right )
static

◆ ex_int_median3_64()

static int64_t ex_int_median3_64 ( int64_t v[],
int64_t iv[],
int64_t left,
int64_t right )
static

◆ ex_name_of_object()

char * ex_name_of_object ( ex_entity_type obj_type)

◆ ex_swap()

static void ex_swap ( int v[],
int64_t i,
int64_t j )
static

◆ ex_swap64()

static void ex_swap64 ( int64_t v[],
int64_t i,
int64_t j )
static

◆ ex_var_type_to_ex_entity_type()

ex_entity_type ex_var_type_to_ex_entity_type ( char var_type)

Variable Documentation

◆ assm_ctr_list

struct exi_list_item* assm_ctr_list = NULL
static

◆ blob_ctr_list

struct exi_list_item* blob_ctr_list = NULL
static

◆ cur_string

char* cur_string = &ret_string[0]
static

◆ eb_ctr_list

struct exi_list_item* eb_ctr_list = NULL
static

◆ ed_ctr_list

struct exi_list_item* ed_ctr_list = NULL
static

◆ edm_ctr_list

struct exi_list_item* edm_ctr_list = NULL
static

◆ els_ctr_list

struct exi_list_item* els_ctr_list = NULL
static

◆ em_ctr_list

struct exi_list_item* em_ctr_list = NULL
static

◆ es_ctr_list

struct exi_list_item* es_ctr_list = NULL
static

◆ exoII_ass

struct exi_obj_stats* exoII_ass = NULL

◆ fa_ctr_list

struct exi_list_item* fa_ctr_list = NULL
static

◆ fam_ctr_list

struct exi_list_item* fam_ctr_list = NULL
static

◆ fs_ctr_list

struct exi_list_item* fs_ctr_list = NULL
static

◆ nm_ctr_list

struct exi_list_item* nm_ctr_list = NULL
static

◆ ns_ctr_list

struct exi_list_item* ns_ctr_list = NULL
static

◆ ret_string

char ret_string[10 *(MAX_VAR_NAME_LENGTH+1)]
static

◆ ss_ctr_list

struct exi_list_item* ss_ctr_list = NULL
static

◆ warning_output

int warning_output = 0
static