1 | /****************************************************************************/ |
---|
2 | /* TREECODE.H: define various things for treecode.c and treeio.c. */ |
---|
3 | /* Copyright (c) 2001 by Joshua E. Barnes, Honolulu, Hawai`i. */ |
---|
4 | /****************************************************************************/ |
---|
5 | |
---|
6 | #ifndef _treecode_h |
---|
7 | #define _treecode_h |
---|
8 | |
---|
9 | #include "treedefs.h" |
---|
10 | |
---|
11 | /* |
---|
12 | * Parameters, state variables, and diagnostics for N-body integration. |
---|
13 | */ |
---|
14 | |
---|
15 | global string infile; /* file name for snapshot input */ |
---|
16 | |
---|
17 | global string outfile; /* file name for snapshot output */ |
---|
18 | |
---|
19 | global string savefile; /* file name for state output */ |
---|
20 | |
---|
21 | #if defined(USEFREQ) |
---|
22 | |
---|
23 | global real freq; /* basic integration frequency */ |
---|
24 | |
---|
25 | global real freqout; /* data output frequency */ |
---|
26 | |
---|
27 | #else |
---|
28 | |
---|
29 | global real dtime; /* basic integration timestep */ |
---|
30 | |
---|
31 | global real dtout; /* data output timestep */ |
---|
32 | |
---|
33 | #endif |
---|
34 | |
---|
35 | global real tstop; /* time to stop calculation */ |
---|
36 | |
---|
37 | global string headline; /* message describing calculation */ |
---|
38 | |
---|
39 | global real tnow; /* current value of time */ |
---|
40 | |
---|
41 | global real tout; /* time of next output */ |
---|
42 | |
---|
43 | global int nstep; /* number of time-steps */ |
---|
44 | |
---|
45 | global int nbody; /* number of bodies in system */ |
---|
46 | |
---|
47 | global bodyptr bodytab; /* points to array of bodies */ |
---|
48 | |
---|
49 | /* |
---|
50 | * Prototypes for I/O routines. |
---|
51 | */ |
---|
52 | |
---|
53 | void inputdata(void); /* read initial data file */ |
---|
54 | void inputdata_2(void); |
---|
55 | void startoutput(void); /* open files for output */ |
---|
56 | void forcereport(void); /* report on force calculation */ |
---|
57 | void output(void); /* perform output operation */ |
---|
58 | void savestate(string); /* save system state */ |
---|
59 | void restorestate(string); /* restore system state */ |
---|
60 | |
---|
61 | #endif /* ! _treecode_h */ |
---|