MACSio  0.9
Multi-purpose, Application-Centric, Scalable I/O Proxy App
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
macsio_silo.c File Reference
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <macsio_clargs.h>
#include <macsio_data.h>
#include <macsio_iface.h>
#include <macsio_log.h>
#include <macsio_main.h>
#include <macsio_mif.h>
#include <macsio_utils.h>
#include <silo.h>
#include <mpi.h>

Go to the source code of this file.

Macros

#define NARRVALS(Arr)   (sizeof(Arr)/sizeof(Arr[0]))
 
#define CHECK_SYMBOL(A)   if (!strncmp(str, #A, strlen(str))) return A
 
#define CHECK_SYMBOLN_INT(A)
 
#define CHECK_SYMBOLN_STR(A)
 
#define CHECK_SYMBOLN_SYM(A)
 

Functions

static void CleanupDriverStuff ()
 
static void MakeDriverOpts (DBoptlist **_opts, int *opts_id)
 
static int StringToDriver (const char *str)
 
static int process_args (int argi, int argc, char *argv[])
 
static void * CreateSiloFile (const char *fname, const char *nsname, void *userData)
 
static void * OpenSiloFile (const char *fname, const char *nsname, MACSIO_MIF_ioFlags_t ioFlags, void *userData)
 
static void CloseSiloFile (void *file, void *userData)
 
static void write_rect_mesh_part (DBfile *dbfile, json_object *part)
 
static void write_mesh_part (DBfile *dbfile, json_object *part)
 
static void WriteMultiXXXObjects (json_object *main_obj, DBfile *siloFile, int dumpn, MACSIO_MIF_baton_t *bat)
 
static void WriteDecompMesh (json_object *main_obj, DBfile *siloFile, 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 void DBSplitMultiName (char *mname, char **file, char **dir, char **obj)
 
static char const * DBGetFilename (DBfile const *f)
 
static void main_load (int argi, int argc, char **argv, char const *path, json_object *main_obj, json_object **data_read_obj)
 
static int register_this_interface ()
 

Variables

static DBoptlist * driver_opts [] = {0,0,0,0,0,0,0,0,0,0}
 
static int driver_opts_ids [] = {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1}
 
static int driver_ints [100]
 
static int driver_nints = 0
 
static char * driver_strs [] = {0,0,0,0,0,0,0,0,0,0}
 
static int driver_nstrs = 0
 
static const int driver_nopts = sizeof(driver_opts)/sizeof(driver_opts[0])
 
static char const * iface_name = "silo"
 
static char const * iface_ext = "silo"
 
static const char * filename
 
static int has_mesh = 0
 
static int driver = DB_HDF5
 
static int show_all_errors = FALSE
 
static int dummy = register_this_interface()