HARM
harm and utilities
 All Data Structures Files Functions Variables Typedefs Macros Pages
restart.h
Go to the documentation of this file.
1 
7 // whether to assume restart file to READ is in old format or not -- assume written format is new
8 // note that Rebecca's code never changes number of output primitives (NPRDUMP) unlike Jon's code
9 // This means only have to change header information and choose to change read/write as below:
10 #define OLD3DMODEREAD 0
11 // assume want to write in new mode so have dissipation stuff in case need to restart yet again
12 #define OLD3DMODEWRITE 0
13 
14 
15 #if(OLD3DMODEREAD)
16 // old assumes DISS and DISSVSR off
17 #define read_restart_header read_restart_header_old
18 #define restart_read_defs restart_read_defs_old
19 #define extrarestartfunction extrarestartfunction_old
20 #else
21 #define read_restart_header read_restart_header_new
22 #define restart_read_defs restart_read_defs_new
23 #define extrarestartfunction extrarestartfunction_new
24 #endif
25 
26 #if(OLD3DMODEWRITE)
27 // old assumes DISS and DISSVSR off
28 #define write_restart_header write_restart_header_old
29 #else
30 #define write_restart_header write_restart_header_new
31 #endif
32 
33 
34 int extrarestartfunction_old(void);
35 int read_restart_header_old(int whichdump, int whichdumpversion, int numcolumns, int bintxt, FILE*headerptr);
36 int restart_read_defs_old(void);
37 int write_restart_header_old(int whichdump, int whichdumpversion, int numcolumns, int bintxt,FILE*headerptr);
38 
39 int extrarestartfunction_new(void);
40 int read_restart_header_new(int whichdump, int whichdumpversion, int numcolumns, int bintxt, FILE*headerptr);
41 int restart_read_defs_new(void);
42 int write_restart_header_new(int whichdump, int whichdumpversion, int numcolumns, int bintxt,FILE*headerptr);
43