/****************************************************************************/ /* TREECODE.H: define various things for treecode.c and treeio.c. */ /* Copyright (c) 2001 by Joshua E. Barnes, Honolulu, Hawai`i. */ /****************************************************************************/ #ifndef _treecode_h #define _treecode_h #include "treedefs.h" /* * Parameters, state variables, and diagnostics for N-body integration. */ global string infile; /* file name for snapshot input */ global string outfile; /* file name for snapshot output */ global string savefile; /* file name for state output */ #if defined(USEFREQ) global real freq; /* basic integration frequency */ global real freqout; /* data output frequency */ #else global real dtime; /* basic integration timestep */ global real dtout; /* data output timestep */ #endif global real tstop; /* time to stop calculation */ global string headline; /* message describing calculation */ global real tnow; /* current value of time */ global real tout; /* time of next output */ global int nstep; /* number of time-steps */ global int nbody; /* number of bodies in system */ global bodyptr bodytab; /* points to array of bodies */ /* * Prototypes for I/O routines. */ void inputdata(void); /* read initial data file */ void inputdata_2(void); void startoutput(void); /* open files for output */ void forcereport(void); /* report on force calculation */ void output(void); /* perform output operation */ void savestate(string); /* save system state */ void restorestate(string); /* restore system state */ #endif /* ! _treecode_h */