19 #ifndef _BENCH_UTILS_H
20 #define _BENCH_UTILS_H
58 char*
fn[NUM_IMP_DATA_TYPES+1];
59 int dtype[NUM_IMP_DATA_TYPES+1];
64 #define us_RESOLUTION 1
97 static const char *
const data_type_names[] = {
113 #define GATETYPE_SIZE 4
114 #define GLOBALDATA_T_SIZE 8
116 static const int data_type_sizes[] = {
131 void open_globalvec_dump(FILE **fhdls, GVEC_DUMP *gvd, MULTI_IF *pMIIF,
char *base_name, IOCtrl *io);
#define GLOBALDATA_T_SIZE
Abstract class representing an ionic model type.
centralize time managment and output triggering
void initial_SVs(MULTI_IF *miif, char *SVs, char *imp, char *plgins, int num)
int write_dump_header(GVEC_DUMP *gvd, SV_DUMP *svd, const char *ExpID)
void globalvec_dump(FILE **fhdls, GVEC_DUMP *gvd, MULTI_IF *pMIIF, timer_manager *tmo, IOCtrl *io, int numNode)
@ LOOP_IDX
timing for main loop (including IO and ODE solve)
@ ODE_IDX
timing for ODE solve
@ INIT_IDX
timing for initialization
@ N_TIMINGS
number of benchmark timings we use
@ SETUP_IDX
timing for setup phase
void dump_all(MULTI_IF *MIIF, int reg, char *imp, char *plugs, double t, double ddt, char *fout)
void close_globalvec_dump(FILE **fhdls, GVEC_DUMP *gvd, IOCtrl *io)
double getCellVal(sf_vec *v, int ind)
void initialize_timings(event_timing *t)
void determine_stim_list(char *stl, TrgList *trg, bool DIAs)
std::vector< std::reference_wrapper< IonType > > IonTypeList
float determine_duration(struct gengetopt_args_info *p, TrgList *stim_lst)
determine time of last stimulus
void open_globalvec_dump(FILE **fhdls, GVEC_DUMP *gvd, MULTI_IF *pMIIF, char *base_name, IOCtrl *io)
void update_timing(event_timing *t, double event_duration)
void print_param_help(IonType *im, IonTypeList &plugs)
char * fn[NUM_IMP_DATA_TYPES+1]
array to store file names
opencarp::FILE_SPEC hdls[NUM_IMP_DATA_TYPES+1]
array of file handles to gvec output files
int n_dumps
keep track of number of dumped time slices
int dtype[NUM_IMP_DATA_TYPES+1]
data type
char first
first line of output
char wsplt
split -> each vector goes into separate file
char wbin
write to file in binary format
char w2stdout
turn on/off output to stdout
int count
number of events counted so far
double avg
average duration of event
double mx
maximum duration of event
double mn
minimum duration of event
double tot
total duration of all events
bool init
initialization flag