00001
00003 struct Option {
00004 unsigned int restart :1;
00005 unsigned int verbose :1;
00006 unsigned int debug :1;
00007 unsigned int mesh :1;
00008 unsigned int tags :1;
00009 unsigned int xterm :1;
00010 };
00014 namespace Run {
00015 extern struct Option option;
00016 extern char programname[];
00017 extern char configfile[];
00018 extern char inputfile[];
00019 extern char outputfile[];
00020 extern char outputname[];
00021 #ifdef OMP
00022 extern int nthreads;
00023 #endif
00025 struct Time
00026 { double
00027 start,
00028 end,
00029 prev,
00030 current,
00031 step,
00032 #ifdef COLLISIONTIME
00033 next,
00034 #else
00035 nextstep,
00036 #endif
00037 step0,
00038 output;
00039 };
00040 extern struct Time time;
00041 void init(int argc, char *argv[]);
00042 void readcmdline(int argc, char *argv[]);
00043 int elapsed();
00044 void seed();
00045 REAL rnd();
00046 REAL gauss();
00047 extern void (*usage)();
00048 }