source: proiecte/NBody/Tree codes/treecode.h @ 170

Last change on this file since 170 was 170, checked in by (none), 14 years ago
File size: 2.1 KB
Line 
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
15global string infile;                   /* file name for snapshot input     */
16
17global string outfile;                  /* file name for snapshot output    */
18
19global string savefile;                 /* file name for state output       */
20
21#if defined(USEFREQ)
22
23global real freq;                       /* basic integration frequency      */
24
25global real freqout;                    /* data output frequency            */
26
27#else
28
29global real dtime;                      /* basic integration timestep       */
30
31global real dtout;                      /* data output timestep             */
32
33#endif
34
35global real tstop;                      /* time to stop calculation         */
36
37global string headline;                 /* message describing calculation   */
38
39global real tnow;                       /* current value of time            */
40
41global real tout;                       /* time of next output              */
42
43global int nstep;                       /* number of time-steps             */
44
45global int nbody;                       /* number of bodies in system       */
46
47global bodyptr bodytab;                 /* points to array of bodies        */
48
49/*
50 * Prototypes for I/O routines.
51 */
52
53void inputdata(void);                   /* read initial data file           */
54void inputdata_2(void); 
55void startoutput(void);                 /* open files for output            */
56void forcereport(void);                 /* report on force calculation      */
57void output(void);                      /* perform output operation         */
58void savestate(string);                 /* save system state                */
59void restorestate(string);              /* restore system state             */
60
61#endif /* ! _treecode_h */
Note: See TracBrowser for help on using the repository browser.