Trisurf Monte Carlo simulator
Samo Penic
2019-10-18 a69203a95d66595b80891aafc1ca8a59303290d0
commit | author | age
7f6076 1 /* vim: set ts=4 sts=4 sw=4 noet : */
d7639a 2 #ifndef _IO_H
SP 3 #define _IO_H
7b0c07 4 #include <confuse.h>
083e03 5 /** @ Global variables for I/O operations like filenames etc. */
SP 6 /*static char mastername[1024];
7 static char prefixname[1024];
8 static ts_bool restore=0;
9 static char tape[1024]; */
10 int force_from_tape;
698ae1 11 char tapetxt[128000]; //stores text file of the tape
8a6614 12 typedef struct{
SP 13     ts_int force_from_tape;
14     ts_int reset_iteration_count;
3f5c83 15     char path[1024]; //path where all files should be added
SP 16     char output_fullfilename[1024]; //name of the master file
17     char dump_fullfilename[1024]; //name of the dump file
18     char tape_fullfilename[1024]; //name of the tape file
1bf3c3 19     char tape_templatefull[1024]; //name of the tape template file
7b0c07 20     char tape_opts[1000]; //commandline tape options
ee84bd 21     char dump_from_vtk[1024];
8a6614 22 } ts_args;
SP 23
24 ts_args command_line_args;
25
083e03 26 ts_bool parse_args(int argc, char **argv);
SP 27
28
29
3c6e26 30 /** @brief Outputs file in newer vtk xml format, compatible with paraview.
d7639a 31  *
3c6e26 32  *    @param *vesicle is a list of vertices
SP 33  *    @param *timestepno is a timestep number. Output file will be timestep_XXXXXX.vtu
34  *    @param *cstlist TO BE DOCUMENTED
d7639a 35  */
0a2c81 36 ts_bool write_vertex_xml_file(ts_vesicle *vesicle, ts_uint timestepno, ts_cluster_list *cstlist);
144784 37 ts_bool write_pov_file(ts_vesicle *vesicle, char *filename);
SP 38
1ab449 39 ts_tape *parsetape(char *filename);
698ae1 40 ts_tape *parsetapebuffer(char *buffer);
1ab449 41 ts_bool tape_free(ts_tape *tape);
7b0c07 42 ts_bool getcmdline_tape(cfg_t *cfg, char *opts);
SP 43 ts_bool cmdline_to_tape(cfg_t *cfg, char *key, char *val);
ba73ab 44 ts_bool print_help(FILE *fd);
d7639a 45 #endif