MACSio  0.9
Multi-purpose, Application-Centric, Scalable I/O Proxy App
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Exodus

Data Structures

struct  _ex_global_init_params
 

Typedefs

typedef struct
_ex_global_init_params 
ex_global_init_params_t
 

Functions

static int process_args (int argi, int argc, char *argv[])
 
static void * CreateExodusFile (const char *fname, const char *nsname, void *userData)
 MIF Create callback. More...
 
static void * OpenExodusFile (const char *fname, const char *nsname, MACSIO_MIF_ioFlags_t ioFlags, void *userData)
 
static void CloseExodusFile (void *file, void *userData)
 
static void get_exodus_global_init_params (json_object *main_obj, int dumpn, double dumpt, ex_global_init_params_t *params)
 
static void write_rect_mesh_coords_all_parts (int exoid, ex_global_init_params_t const *params, json_object *parts, int **elem_block_coord_offsets)
 
static void write_mesh_coords_all_parts (int exoid, ex_global_init_params_t const *params, json_object *parts, int **elem_block_coord_offsets)
 
static void write_mesh_part_blocks_and_vars (int exoid, ex_global_init_params_t const *params, json_object *part, int coord_offset, int dumpn, double dumpt)
 
static void WriteNemesis (json_object *main_obj, int exoid, int dumpn, MACSIO_MIF_baton_t *bat)
 
static void WriteDecompMesh (json_object *main_obj, int exoid, int dumpn, MACSIO_MIF_baton_t *bat)
 
static void main_dump (int argi, int argc, char **argv, json_object *main_obj, int dumpn, double dumpt)
 
static int register_this_interface ()
 

Variables

static char const * iface_name = "exodus"
 
static char const * iface_ext = "exoII"
 
static char * cpu_word_size = "double"
 
static char io_word_size [32]
 
static int use_nemesis = 0
 
static char use_large_model [32]
 
static int dummy = register_this_interface()
 

Detailed Description


Data Structure Documentation

struct _ex_global_init_params

Definition at line 67 of file macsio_exodus.c.

Data Fields
int file_creation_flags
int cpu_word_size
int io_word_size
int num_dim
int num_nodes
int num_elems
int num_elem_block
int num_node_sets
int num_side_sets
int dumpn
double dumpt

Typedef Documentation

Function Documentation

static int process_args ( int  argi,
int  argc,
char *  argv[] 
)
static

Definition at line 84 of file macsio_exodus.c.

static void* CreateExodusFile ( const char *  fname,
const char *  nsname,
void *  userData 
)
static

MIF Create callback.

This is a create callback. However, Exodus expects additional timesteps to be written to the same file(s) as the time zero data went into (unless there are changes in mesh connectivity/topology. So, this callback really only does file creation during time-zero. Thereafter, it only does opens. We put an additional field into ex_global_init_params (passed in here as userData), dumpn, to detect when this callback is called for time zero or not.

Definition at line 118 of file macsio_exodus.c.

static void* OpenExodusFile ( const char *  fname,
const char *  nsname,
MACSIO_MIF_ioFlags_t  ioFlags,
void *  userData 
)
static

Definition at line 170 of file macsio_exodus.c.

static void CloseExodusFile ( void *  file,
void *  userData 
)
static

Definition at line 177 of file macsio_exodus.c.

static void get_exodus_global_init_params ( json_object main_obj,
int  dumpn,
double  dumpt,
ex_global_init_params_t params 
)
static

Definition at line 185 of file macsio_exodus.c.

static void write_rect_mesh_coords_all_parts ( int  exoid,
ex_global_init_params_t const *  params,
json_object parts,
int **  elem_block_coord_offsets 
)
static

Definition at line 269 of file macsio_exodus.c.

static void write_mesh_coords_all_parts ( int  exoid,
ex_global_init_params_t const *  params,
json_object parts,
int **  elem_block_coord_offsets 
)
static

Definition at line 341 of file macsio_exodus.c.

static void write_mesh_part_blocks_and_vars ( int  exoid,
ex_global_init_params_t const *  params,
json_object part,
int  coord_offset,
int  dumpn,
double  dumpt 
)
static

Definition at line 350 of file macsio_exodus.c.

static void WriteNemesis ( json_object main_obj,
int  exoid,
int  dumpn,
MACSIO_MIF_baton_t bat 
)
static

Definition at line 457 of file macsio_exodus.c.

static void WriteDecompMesh ( json_object main_obj,
int  exoid,
int  dumpn,
MACSIO_MIF_baton_t bat 
)
static

Definition at line 467 of file macsio_exodus.c.

static void main_dump ( int  argi,
int  argc,
char **  argv,
json_object main_obj,
int  dumpn,
double  dumpt 
)
static

Definition at line 522 of file macsio_exodus.c.

static int register_this_interface ( )
static

Definition at line 628 of file macsio_exodus.c.

Variable Documentation

char const* iface_name = "exodus"
static

Definition at line 60 of file macsio_exodus.c.

char const* iface_ext = "exoII"
static

Definition at line 61 of file macsio_exodus.c.

char* cpu_word_size = "double"
static

Definition at line 62 of file macsio_exodus.c.

char io_word_size[32]
static

Definition at line 63 of file macsio_exodus.c.

int use_nemesis = 0
static

Definition at line 64 of file macsio_exodus.c.

char use_large_model[32]
static

Definition at line 65 of file macsio_exodus.c.

int dummy = register_this_interface()
static

Definition at line 656 of file macsio_exodus.c.