Main Page | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

allvars.h File Reference

declares global variables. More...

#include <stdio.h>
#include <gsl/gsl_rng.h>
#include "tags.h"

Go to the source code of this file.

Data Structures

struct  DomainNODE
struct  topnode_data
struct  global_data_all_processes
struct  particle_data
struct  sph_particle_data
struct  NODE
struct  extNODE
struct  io_header
struct  state_of_system
struct  gravdata_in
struct  gravdata_index
struct  densdata_in
struct  densdata_out
struct  hydrodata_in
struct  hydrodata_out

Defines

#define GADGETVERSION   "2.0"
#define TIMEBASE   (1<<28)
#define MAXTOPNODES   200000
#define BITS_PER_DIMENSION   18
#define PEANOCELLS   (((peanokey)1)<<(3*BITS_PER_DIMENSION))
#define RNDTABLE   256
#define MAX_REAL_NUMBER   1e37
#define MIN_REAL_NUMBER   1e-37
#define MAXLEN_FILENAME   100
#define GAMMA   (5.0/3)
#define GAMMA_MINUS1   (GAMMA-1)
#define HYDROGEN_MASSFRAC   0.76
#define GRAVITY   6.672e-8
#define SOLAR_MASS   1.989e33
#define SOLAR_LUM   3.826e33
#define RAD_CONST   7.565e-15
#define AVOGADRO   6.0222e23
#define BOLTZMANN   1.3806e-16
#define GAS_CONST   8.31425e7
#define C   2.9979e10
#define PLANCK   6.6262e-27
#define CM_PER_MPC   3.085678e24
#define PROTONMASS   1.6726e-24
#define ELECTRONMASS   9.10953e-28
#define THOMPSON   6.65245e-25
#define ELECTRONCHARGE   4.8032e-10
#define HUBBLE   3.2407789e-18
#define SEC_PER_MEGAYEAR   3.155e13
#define SEC_PER_YEAR   3.155e7
#define ASMTH   1.25
#define RCUT   4.5
#define MAX_NGB   20000
#define MAXLEN_OUTPUTLIST   500
#define DRIFT_TABLE_LENGTH   1000
#define MAXITER   150
#define FLOAT   float
#define NUMDIMS   3
#define KERNEL_COEFF_1   2.546479089470
#define KERNEL_COEFF_2   15.278874536822
#define KERNEL_COEFF_3   45.836623610466
#define KERNEL_COEFF_4   30.557749073644
#define KERNEL_COEFF_5   5.092958178941
#define KERNEL_COEFF_6   (-15.278874536822)
#define NORM_COEFF   4.188790204786
#define IO_NBLOCKS   11

Typedefs

typedef long long peanokey

Enumerations

enum  iofields {
  IO_POS, IO_VEL, IO_ID, IO_MASS,
  IO_U, IO_RHO, IO_HSML, IO_POT,
  IO_ACCEL, IO_DTENTR, IO_TSTP
}

Variables

int ThisTask
int NTask
int PTask
int NumPart
int N_gas
long long Ntype [6]
int NtypeLocal [6]
int NumForceUpdate
int NumSphUpdate
double CPUThisRun
int RestartFlag
char * Exportflag
int * Ngblist
int TreeReconstructFlag
int Flag_FullStep
gsl_rng * random_generator
double RndTable [256]
double DomainCorner [3]
double DomainCenter [3]
double DomainLen
double DomainFac
int DomainMyStart
int DomainMyLast
int * DomainStartList
int * DomainEndList
double * DomainWork
int * DomainCount
int * DomainCountSph
int * DomainTask
int * DomainNodeIndex
float * DomainTreeNodeLen
float * DomainHmax
DomainNODEDomainMoment
peanokeyDomainKeyBuf
peanokeyKey
peanokeyKeySorted
int NTopnodes
int NTopleaves
topnode_dataTopNodes
double TimeOfLastTreeConstruction
char ParameterFile [100]
FILE * FdInfo
FILE * FdEnergy
FILE * FdTimings
FILE * FdCPU
FILE * FdForceTest
double DriftTable [1000]
double GravKickTable [1000]
double HydroKickTable [1000]
void * CommBuffer
global_data_all_processes All
particle_dataP
particle_dataDomainPartBuf
sph_particle_dataSphP
sph_particle_dataDomainSphBuf
int MaxNodes
int Numnodestree
NODENodes_base
NODENodes
int * Nextnode
int * Father
extNODEExtnodes_base
extNODEExtnodes
io_header header
char Tab_IO_Labels [11][4]
state_of_system SysState
gravdata_inGravDataIn
gravdata_inGravDataGet
gravdata_inGravDataResult
gravdata_inGravDataOut
gravdata_indexGravDataIndexTable
densdata_inDensDataIn
densdata_inDensDataGet
densdata_outDensDataResult
densdata_outDensDataPartialResult
hydrodata_inHydroDataIn
hydrodata_inHydroDataGet
hydrodata_outHydroDataResult
hydrodata_outHydroDataPartialResult


Detailed Description

declares global variables.

This file declares all global variables. Further variables should be added here, and declared as 'extern'. The actual existence of these variables is provided by the file 'allvars.c'. To produce 'allvars.c' from 'allvars.h', do the following:

Definition in file allvars.h.


Define Documentation

#define ASMTH   1.25
 

ASMTH gives the scale of the short-range/long-range force split in units of FFT-mesh cells

Definition at line 83 of file allvars.h.

Referenced by pm_init_periodic().

#define AVOGADRO   6.0222e23
 

Definition at line 65 of file allvars.h.

#define BITS_PER_DIMENSION   18
 

Bits per dimension available for Peano-Hilbert order. Note: If peanokey is defined as type int, the allowed maximum is 10. If 64-bit integers are used, the maximum is 21

Definition at line 34 of file allvars.h.

Referenced by domain_determineTopTree(), and force_treebuild_single().

#define BOLTZMANN   1.3806e-16
 

Definition at line 66 of file allvars.h.

Referenced by read_ic(), and set_units().

#define C   2.9979e10
 

Definition at line 68 of file allvars.h.

#define CM_PER_MPC   3.085678e24
 

Definition at line 70 of file allvars.h.

#define DRIFT_TABLE_LENGTH   1000
 

length of the lookup table used to hold the drift and kick factors

Definition at line 95 of file allvars.h.

Referenced by get_drift_factor(), get_gravkick_factor(), get_hydrokick_factor(), and init_drift_table().

#define ELECTRONCHARGE   4.8032e-10
 

Definition at line 74 of file allvars.h.

#define ELECTRONMASS   9.10953e-28
 

Definition at line 72 of file allvars.h.

#define FLOAT   float
 

Definition at line 103 of file allvars.h.

Referenced by advance_and_find_timesteps(), allocate_commbuffers(), density_evaluate(), fill_write_buffer(), force_treeupdate_pseudos(), force_update_node_len_local(), force_update_node_len_toptree(), force_update_node_recursive(), hydro_evaluate(), ngb_clear_buf(), ngb_treefind_pairs(), ngb_treefind_variable(), and restart().

#define GADGETVERSION   "2.0"
 

code version string

Definition at line 23 of file allvars.h.

Referenced by begrun().

#define GAMMA   (5.0/3)
 

adiabatic index of simulated gas

Definition at line 52 of file allvars.h.

Referenced by advance_and_find_timesteps(), density(), fill_write_buffer(), hydro_evaluate(), hydro_force(), and move_particles().

#define GAMMA_MINUS1   (GAMMA-1)
 

Definition at line 55 of file allvars.h.

Referenced by advance_and_find_timesteps(), compute_global_quantities_of_system(), fill_write_buffer(), hydro_force(), hydrokick_integ(), and init().

#define GAS_CONST   8.31425e7
 

Definition at line 67 of file allvars.h.

#define GRAVITY   6.672e-8
 

Gravitational constant (in cgs units)

Definition at line 61 of file allvars.h.

Referenced by set_units().

#define HUBBLE   3.2407789e-18
 

Definition at line 75 of file allvars.h.

Referenced by set_units().

#define HYDROGEN_MASSFRAC   0.76
 

mass fraction of hydrogen, relevant only for radiative cooling

Definition at line 57 of file allvars.h.

#define IO_NBLOCKS   11
 

total number of defined information blocks for snapshot files. Must be equal to the number of entries in "enum iofields"

Definition at line 628 of file allvars.h.

#define KERNEL_COEFF_1   2.546479089470
 

Coefficients for SPH spline kernel and its derivative

Definition at line 109 of file allvars.h.

Referenced by density_evaluate().

#define KERNEL_COEFF_2   15.278874536822
 

Definition at line 110 of file allvars.h.

Referenced by density_evaluate().

#define KERNEL_COEFF_3   45.836623610466
 

Definition at line 111 of file allvars.h.

Referenced by density_evaluate(), and hydro_evaluate().

#define KERNEL_COEFF_4   30.557749073644
 

Definition at line 112 of file allvars.h.

#define KERNEL_COEFF_5   5.092958178941
 

Definition at line 113 of file allvars.h.

Referenced by density_evaluate().

#define KERNEL_COEFF_6   (-15.278874536822)
 

Definition at line 114 of file allvars.h.

Referenced by density_evaluate(), and hydro_evaluate().

#define MAX_NGB   20000
 

defines maximum length of neighbour list

Definition at line 91 of file allvars.h.

Referenced by init(), and restart().

#define MAX_REAL_NUMBER   1e37
 

Definition at line 44 of file allvars.h.

#define MAXITER   150
 

If defined, the variable type FLOAT is set to "double", otherwise to FLOAT

Definition at line 97 of file allvars.h.

Referenced by density().

#define MAXLEN_FILENAME   100
 

Maximum number of characters for filenames (including the full path)

Definition at line 47 of file allvars.h.

#define MAXLEN_OUTPUTLIST   500
 

maxmimum number of entries in list of snapshot output times

Definition at line 93 of file allvars.h.

#define MAXTOPNODES   200000
 

Maximum number of nodes in the top-level tree used for domain decomposition

Definition at line 29 of file allvars.h.

Referenced by allocate_commbuffers(), and restart().

#define MIN_REAL_NUMBER   1e-37
 

Definition at line 45 of file allvars.h.

#define NORM_COEFF   4.188790204786
 

Coefficient for kernel normalization. Note: 4.0/3 * PI = 4.188790204786

Definition at line 115 of file allvars.h.

Referenced by density_evaluate().

#define NUMDIMS   3
 

For 3D-normalized kernel

Definition at line 108 of file allvars.h.

Referenced by density(), and density_evaluate().

#define PEANOCELLS   (((peanokey)1)<<(3*BITS_PER_DIMENSION))
 

The number of different Peano-Hilbert cells

Definition at line 38 of file allvars.h.

#define PLANCK   6.6262e-27
 

Definition at line 69 of file allvars.h.

#define PROTONMASS   1.6726e-24
 

Definition at line 71 of file allvars.h.

#define RAD_CONST   7.565e-15
 

Definition at line 64 of file allvars.h.

#define RCUT   4.5
 

RCUT gives the maximum distance (in units of the scale used for the force split) out to which short-range forces are evaluated in the short-range tree walk.

Definition at line 87 of file allvars.h.

Referenced by pm_init_periodic().

#define RNDTABLE   256
 

gives the length of a table with random numbers, refreshed at every timestep. This is used to allow application of random numbers to a specific particle in a way that is independent of the number of processors used.

Definition at line 41 of file allvars.h.

#define SEC_PER_MEGAYEAR   3.155e13
 

Definition at line 79 of file allvars.h.

#define SEC_PER_YEAR   3.155e7
 

Definition at line 80 of file allvars.h.

#define SOLAR_LUM   3.826e33
 

Definition at line 63 of file allvars.h.

#define SOLAR_MASS   1.989e33
 

Definition at line 62 of file allvars.h.

#define THOMPSON   6.65245e-25
 

Definition at line 73 of file allvars.h.

#define TIMEBASE   (1<<28)
 

The simulated timespan is mapped onto the integer interval [0,TIMESPAN], where TIMESPAN needs to be a power of 2. Note that (1<<28) corresponds to 2^29

Definition at line 25 of file allvars.h.

Referenced by advance_and_find_timesteps(), and run().


Typedef Documentation

typedef long long peanokey
 

defines the variable type used for Peano-Hilbert keys

Definition at line 32 of file allvars.h.

Referenced by allocate_commbuffers(), domain_Decomposition(), domain_exchangeParticles(), force_treebuild_single(), and peano_hilbert_key().


Enumeration Type Documentation

enum iofields
 

< this enumeration lists the defined output blocks in snapshot files. Not all of them need to be present.

Enumeration values:
IO_POS 
IO_VEL 
IO_ID 
IO_MASS 
IO_U 
IO_RHO 
IO_HSML 
IO_POT 
IO_ACCEL 
IO_DTENTR 
IO_TSTP 

Definition at line 631 of file allvars.h.

Referenced by fill_Tab_IO_Labels(), read_file(), and write_file().


Variable Documentation

struct global_data_all_processes All
 

a container variable for global variables that are equal on all processors

void* CommBuffer
 

points to communication buffer, which is used in the domain decomposition, the parallel tree-force computation, the SPH routines, etc.

Definition at line 101 of file allvars.c.

Referenced by allocate_commbuffers(), read_file(), and write_file().

double CPUThisRun
 

Sums the CPU time for the process (current submission only)

Definition at line 23 of file allvars.c.

Referenced by main(), and run().

struct densdata_in * DensDataGet
 

holds imported particle data for SPH density computation

struct densdata_in * DensDataIn
 

holds particle data for SPH density computation to be exported to other processors

struct densdata_out * DensDataPartialResult
 

imported partial SPH density results from other processors

struct densdata_out * DensDataResult
 

stores the locally computed SPH density results for imported particles

double DomainCenter[3]
 

gives the center of simulation volume

Definition at line 47 of file allvars.c.

Referenced by domain_findExtent(), force_treebuild_single(), and restart().

double DomainCorner[3]
 

gives the lower left corner of simulation volume

Definition at line 46 of file allvars.c.

Referenced by domain_determineTopTree(), domain_findExtent(), force_treebuild_single(), and restart().

int* DomainCount
 

a table that gives the total number of particles held by each processor

Definition at line 55 of file allvars.c.

Referenced by allocate_commbuffers(), domain_findSplit(), domain_shiftSplit(), and domain_sumCost().

int* DomainCountSph
 

a table that gives the total number of SPH particles held by each processor

Definition at line 56 of file allvars.c.

Referenced by allocate_commbuffers(), domain_findSplit(), domain_shiftSplit(), and domain_sumCost().

int* DomainEndList
 

a table that lists the last domain mesh cell for all processors

Definition at line 53 of file allvars.c.

Referenced by allocate_commbuffers(), domain_decompose(), domain_findSplit(), domain_shiftSplit(), and restart().

double DomainFac
 

factor used for converting particle coordinates to a Peano-Hilbert mesh covering the simulation volume

Definition at line 49 of file allvars.c.

Referenced by domain_determineTopTree(), domain_findExtent(), force_treebuild_single(), and restart().

float* DomainHmax
 

this table gives for each leaf of the top-level tree the maximum SPH smoothing length among the particles of the corresponding node of the gravitational tree

Definition at line 61 of file allvars.c.

Referenced by allocate_commbuffers(), force_update_hmax(), force_update_node_hmax_toptree(), and restart().

peanokey* DomainKeyBuf
 

this points to a buffer used during the exchange of particle data

Definition at line 66 of file allvars.c.

Referenced by allocate_commbuffers(), and domain_exchangeParticles().

double DomainLen
 

gives the (maximum) side-length of simulation volume

Definition at line 48 of file allvars.c.

Referenced by domain_findExtent(), and restart().

struct DomainNODE * DomainMoment
 

this table stores for each node of the top-level tree corresponding node data from the gravitational tree

int DomainMyLast
 

last domain mesh cell that resides on the local processor

Definition at line 51 of file allvars.c.

Referenced by domain_decompose(), and restart().

int DomainMyStart
 

first domain mesh cell that resides on the local processor

Definition at line 50 of file allvars.c.

Referenced by domain_decompose(), and restart().

int* DomainNodeIndex
 

this table gives for each leaf of the top-level tree the corresponding node of the gravitational tree

Definition at line 59 of file allvars.c.

Referenced by allocate_commbuffers(), force_create_empty_nodes(), force_exchange_pseudodata(), force_flag_localnodes(), force_insert_pseudo_particles(), force_treebuild_single(), force_treeupdate_pseudos(), force_update_hmax(), force_update_len(), force_update_node_hmax_toptree(), force_update_node_len_toptree(), and restart().

struct particle_data * DomainPartBuf
 

buffer for particle data used in domain decomposition

struct sph_particle_data * DomainSphBuf
 

buffer for SPH particle data in domain decomposition

int* DomainStartList
 

a table that lists the first domain mesh cell for all processors

Definition at line 52 of file allvars.c.

Referenced by allocate_commbuffers(), domain_decompose(), domain_findSplit(), domain_shiftSplit(), and restart().

int* DomainTask
 

this table gives for each leaf of the top-level tree the processor it was assigned to

Definition at line 58 of file allvars.c.

Referenced by allocate_commbuffers(), domain_countToGo(), domain_exchangeParticles(), domain_findSplit(), domain_shiftSplit(), force_treeevaluate_ewald_correction(), ngb_treefind_pairs(), ngb_treefind_variable(), and restart().

float* DomainTreeNodeLen
 

this table gives for each leaf of the top-level tree the side-length of the corresponding node of the gravitational tree

Definition at line 60 of file allvars.c.

Referenced by allocate_commbuffers(), force_update_len(), force_update_node_len_toptree(), and restart().

double* DomainWork
 

a table that gives the total "work" due to the particles stored by each processor

Definition at line 54 of file allvars.c.

Referenced by allocate_commbuffers(), domain_shiftSplit(), and domain_sumCost().

double DriftTable[1000]
 

table for the cosmological drift factors

Definition at line 97 of file allvars.c.

Referenced by get_drift_factor(), and init_drift_table().

char* Exportflag
 

Buffer used for flagging whether a particle needs to be exported to another process

Definition at line 30 of file allvars.c.

Referenced by allocate_commbuffers(), compute_potential(), density(), force_treeevaluate_ewald_correction(), gravity_forcetest(), gravity_tree(), hydro_force(), ngb_treefind_pairs(), and ngb_treefind_variable().

struct extNODE * Extnodes
 

provides shifted access to extended node information, parallel to Nodes/Nodes_base

struct extNODE * Extnodes_base
 

points to the actual memory allocted for the extended node information

int* Father
 

gives parent node in tree

Definition at line 148 of file allvars.c.

Referenced by advance_and_find_timesteps(), force_update_node_hmax_local(), force_update_node_len_local(), restart(), and setup_smoothinglengths().

FILE* FdCPU
 

file handle for cpu.txt log-file.

Definition at line 90 of file allvars.c.

Referenced by close_outputfiles(), every_timestep_stuff(), and open_outputfiles().

FILE* FdEnergy
 

file handle for energy.txt log-file.

Definition at line 88 of file allvars.c.

Referenced by close_outputfiles(), energy_statistics(), and open_outputfiles().

FILE* FdForceTest
 

file handle for forcetest.txt log-file.

Definition at line 93 of file allvars.c.

Referenced by close_outputfiles(), gravity_forcetest(), and open_outputfiles().

FILE* FdInfo
 

file handle for info.txt log-file.

Definition at line 87 of file allvars.c.

Referenced by close_outputfiles(), every_timestep_stuff(), and open_outputfiles().

FILE* FdTimings
 

file handle for timings.txt log-file.

Definition at line 89 of file allvars.c.

Referenced by close_outputfiles(), gravity_forcetest(), gravity_tree(), and open_outputfiles().

int Flag_FullStep
 

This flag signals that the current step involves all particles

Definition at line 36 of file allvars.c.

Referenced by advance_and_find_timesteps(), find_next_sync_point_and_drift(), and init().

struct gravdata_in * GravDataGet
 

holds particle data imported from other processors

struct gravdata_in * GravDataIn
 

holds particle data to be exported to other processors

struct gravdata_index * GravDataIndexTable
 

the particles to be exported are grouped by task-number. This table allows the results to be disentangled again and to be assigned to the correct particle

struct gravdata_in * GravDataOut
 

holds partial results received from other processors. This will overwrite the GravDataIn array

struct gravdata_in * GravDataResult
 

holds the partial results computed for imported particles. Note: We use GravDataResult = GravDataGet, such that the result replaces the imported data

double GravKickTable[1000]
 

table for the cosmological kick factor for gravitational forces

Definition at line 98 of file allvars.c.

Referenced by get_gravkick_factor(), and init_drift_table().

struct io_header header
 

holds header for snapshot files

struct hydrodata_in * HydroDataGet
 

holds imported particle data for SPH hydro-force computation

struct hydrodata_in * HydroDataIn
 

holds particle data for SPH hydro-force computation to be exported to other processors

struct hydrodata_out * HydroDataPartialResult
 

imported partial SPH hydro-force results from other processors

struct hydrodata_out * HydroDataResult
 

stores the locally computed SPH hydro results for imported particles

double HydroKickTable[1000]
 

table for the cosmological kick factor for hydrodynmical forces

Definition at line 99 of file allvars.c.

Referenced by get_hydrokick_factor(), and init_drift_table().

peanokey* Key
 

a table used for storing Peano-Hilbert keys for particles

Definition at line 68 of file allvars.c.

Referenced by domain_countToGo(), domain_Decomposition(), domain_determineTopTree(), domain_exchangeParticles(), domain_sumCost(), and peano_hilbert_order().

peanokey* KeySorted
 

holds a sorted table of Peano-Hilbert keys for all particles, used to construct top-level tree

Definition at line 69 of file allvars.c.

Referenced by domain_Decomposition(), and domain_determineTopTree().

int MaxNodes
 

maximum allowed number of internal nodes

Definition at line 138 of file allvars.c.

Referenced by force_create_empty_nodes(), force_treeallocate(), force_treebuild_single(), and restart().

int N_gas
 

number of gas particles on the LOCAL processor

Definition at line 16 of file allvars.c.

Referenced by density(), domain_Decomposition(), domain_exchangeParticles(), hydro_force(), ngb_treebuild(), peano_hilbert_order(), read_file(), read_ic(), and restart().

int* Nextnode
 

gives next node in tree walk

Definition at line 147 of file allvars.c.

Referenced by force_treebuild_single(), force_treeevaluate_ewald_correction(), force_update_node_recursive(), ngb_treefind_pairs(), ngb_treefind_variable(), and restart().

int* Ngblist
 

Buffer to hold indices of neighbours retrieved by the neighbour search routines

Definition at line 32 of file allvars.c.

Referenced by density_evaluate(), hydro_evaluate(), ngb_clear_buf(), ngb_treeallocate(), ngb_treefind_pairs(), ngb_treefind_variable(), and ngb_treefree().

struct NODE * Nodes
 

this is a pointer used to access the nodes which is shifted such that Nodes[All.MaxPart] gives the first allocated node

struct NODE * Nodes_base
 

points to the actual memory allocted for the nodes

int NTask
 

number of processors

Definition at line 12 of file allvars.c.

Referenced by allocate_commbuffers(), begrun(), compute_potential(), density(), domain_countToGo(), domain_decompose(), domain_Decomposition(), domain_findExchangeNumbers(), domain_shiftSplit(), every_timestep_stuff(), gravity_forcetest(), gravity_tree(), hydro_force(), main(), pm_init_periodic(), read_ic(), restart(), and savepositions().

int NTopleaves
 

number of leaves in top-level tree. Each leaf can be assigned to a different processor

Definition at line 73 of file allvars.c.

Referenced by domain_decompose(), domain_sumCost(), and domain_walktoptree().

int NTopnodes
 

total number of nodes in top-level tree

Definition at line 72 of file allvars.c.

Referenced by domain_sumCost(), domain_topsplit(), and domain_topsplit_local().

long long Ntype[6]
 

total number of particles of each type

Definition at line 17 of file allvars.c.

Referenced by domain_decompose().

int NtypeLocal[6]
 

local number of particles of each type

Definition at line 18 of file allvars.c.

Referenced by domain_decompose().

int NumForceUpdate
 

number of active particles on local processor in current timestep

Definition at line 20 of file allvars.c.

Referenced by gravity_forcetest(), and gravity_tree().

int Numnodestree
 

number of (internal) nodes in each tree

Definition at line 139 of file allvars.c.

Referenced by force_treebuild(), and restart().

int NumPart
 

number of particles on the LOCAL processor

Definition at line 15 of file allvars.c.

Referenced by compute_potential(), domain_Decomposition(), domain_exchangeParticles(), gravity_forcetest(), gravity_tree(), peano_hilbert_order(), read_file(), read_ic(), and restart().

int NumSphUpdate
 

number of active SPH particles on local processor in current timestep

Definition at line 21 of file allvars.c.

Referenced by density(), and hydro_force().

struct particle_data * P
 

holds particle data on local processor

char ParameterFile[100]
 

file name of parameterfile used for starting the simulation

Definition at line 85 of file allvars.c.

Referenced by begrun(), and main().

int PTask
 

smallest integer such that NTask <= 2^PTask

Definition at line 13 of file allvars.c.

Referenced by main().

gsl_rng* random_generator
 

the employed random number generator of the GSL library

Definition at line 39 of file allvars.c.

Referenced by begrun(), and restart().

int RestartFlag
 

taken from command line used to start code. 0 is normal start-up from initial conditions, 1 is resuming a run from a set of restart files, while 2 marks a restart from a snapshot file.

Definition at line 26 of file allvars.c.

Referenced by begrun(), init(), long_range_init_regionsize(), main(), open_outputfiles(), read_file(), read_ic(), and setup_smoothinglengths().

double RndTable[256]
 

Hold a table with random numbers, refreshed every timestep

Definition at line 43 of file allvars.c.

Referenced by get_random_number(), and set_random_numbers().

struct sph_particle_data * SphP
 

holds SPH particle data on local processor

struct state_of_system SysState
 

char Tab_IO_Labels[11][4]
 

Definition at line 167 of file allvars.c.

Referenced by fill_Tab_IO_Labels(), read_file(), and write_file().

int ThisTask
 

the rank of the local processor

Definition at line 11 of file allvars.c.

Referenced by advance_and_find_timesteps(), allocate_commbuffers(), allocate_memory(), begrun(), check_omega(), close_outputfiles(), compute_accelerations(), compute_global_quantities_of_system(), compute_potential(), density(), distribute_file(), domain_decompose(), domain_Decomposition(), domain_exchangeParticles(), domain_sumCost(), domain_topsplit(), domain_topsplit_local(), endrun(), energy_statistics(), every_timestep_stuff(), ewald_init(), find_files(), force_create_empty_nodes(), force_treebuild_single(), gravity_forcetest(), gravity_tree(), hydro_force(), init(), main(), my_fread(), my_fwrite(), ngb_treeallocate(), ngb_treebuild(), ngb_treefind_variable(), open_outputfiles(), peano_hilbert_order(), pm_init_periodic(), pm_init_periodic_allocate(), pmforce_periodic(), pmpotential_periodic(), read_file(), read_ic(), read_parameter_file(), readjust_timebase(), restart(), run(), savepositions(), set_units(), and write_file().

double TimeOfLastTreeConstruction
 

holds what it says, only used in connection with FORCETEST

Definition at line 79 of file allvars.c.

Referenced by force_treebuild(), and gravity_forcetest().

struct topnode_data * TopNodes
 

points to the root node of the top-level tree

int TreeReconstructFlag
 

Signals that a new tree needs to be constructed

Definition at line 34 of file allvars.c.

Referenced by compute_potential(), domain_Decomposition(), gravity_tree(), and init().


Generated on Sun May 22 17:33:29 2005 for GADGET-2 by  doxygen 1.3.9.1