00001
00005 #include <stdio.h>
00006 #include <gsl/gsl_rng.h>
00007 #include "tags.h"
00008 #include "allvars.h"
00009
00010
00011 int ThisTask;
00012 int NTask;
00013 int PTask;
00015 int NumPart;
00016 int N_gas;
00017 long long Ntype[6];
00018 int NtypeLocal[6];
00020 int NumForceUpdate;
00021 int NumSphUpdate;
00023 double CPUThisRun;
00026 int RestartFlag;
00030 char *Exportflag;
00032 int *Ngblist;
00034 int TreeReconstructFlag;
00036 int Flag_FullStep;
00039 gsl_rng *random_generator;
00041 double RndTable[RNDTABLE];
00044 double DomainCorner[3];
00045 double DomainCenter[3];
00046 double DomainLen;
00047 double DomainFac;
00048 int DomainMyStart;
00049 int DomainMyLast;
00050 int *DomainStartList;
00051 int *DomainEndList;
00052 double *DomainWork;
00053 int *DomainCount;
00054 int *DomainCountSph;
00056 int *DomainTask;
00057 int *DomainNodeIndex;
00058 FLOAT *DomainTreeNodeLen;
00059 FLOAT *DomainHmax;
00061 struct DomainNODE
00062 *DomainMoment;
00064 peanokey *DomainKeyBuf;
00066 peanokey *Key;
00067 peanokey *KeySorted;
00070 int NTopnodes;
00071 int NTopleaves;
00073 struct topnode_data
00074 *TopNodes;
00077 double TimeOfLastTreeConstruction;
00081
00082
00083 char ParameterFile[MAXLEN_FILENAME];
00085 FILE *FdInfo;
00086 FILE *FdEnergy;
00087 FILE *FdTimings;
00088 FILE *FdCPU;
00090 #ifdef FORCETEST
00091 FILE *FdForceTest;
00092 #endif
00093
00094
00095 double DriftTable[DRIFT_TABLE_LENGTH];
00096 double GravKickTable[DRIFT_TABLE_LENGTH];
00097 double HydroKickTable[DRIFT_TABLE_LENGTH];
00099 void *CommBuffer;
00109 struct global_data_all_processes
00110 All;
00111
00112
00113
00117 struct particle_data
00118 *P,
00119 *DomainPartBuf;
00122
00123
00124
00125 struct sph_particle_data
00126 *SphP,
00127 *DomainSphBuf;
00133
00134
00135
00136 int MaxNodes;
00137 int Numnodestree;
00139 struct NODE
00140 *Nodes_base,
00141 *Nodes;
00145 int *Nextnode;
00146 int *Father;
00149 struct extNODE
00150 *Extnodes_base,
00151 *Extnodes;
00159 struct io_header
00160 header;
00164 char Tab_IO_Labels[IO_NBLOCKS][4];
00165
00166
00167
00168
00169
00170 struct state_of_system
00171 SysState;
00172
00173
00174
00175
00176
00177 struct gravdata_in
00178 *GravDataIn,
00179 *GravDataGet,
00180 *GravDataResult,
00181 *GravDataOut;
00183 struct gravdata_index
00184 *GravDataIndexTable;
00188 struct densdata_in
00189 *DensDataIn,
00190 *DensDataGet;
00192 struct densdata_out
00193 *DensDataResult,
00194 *DensDataPartialResult;
00198 struct hydrodata_in
00199 *HydroDataIn,
00200 *HydroDataGet;
00202 struct hydrodata_out
00203 *HydroDataResult,
00204 *HydroDataPartialResult;