#include <stdio.h>
#include <gsl/gsl_rng.h>
#include "tags.h"
Go to the source code of this file.
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.
|
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(). |
|
|
|
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(). |
|
Definition at line 66 of file allvars.h. Referenced by read_ic(), and set_units(). |
|
|
|
|
|
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(). |
|
|
|
|
|
|
code version string Definition at line 23 of file allvars.h. Referenced by begrun(). |
|
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(). |
|
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(). |
|
|
|
Gravitational constant (in cgs units) Definition at line 61 of file allvars.h. Referenced by set_units(). |
|
Definition at line 75 of file allvars.h. Referenced by set_units(). |
|
mass fraction of hydrogen, relevant only for radiative cooling |
|
total number of defined information blocks for snapshot files. Must be equal to the number of entries in "enum iofields" |
|
Coefficients for SPH spline kernel and its derivative Definition at line 109 of file allvars.h. Referenced by density_evaluate(). |
|
Definition at line 110 of file allvars.h. Referenced by density_evaluate(). |
|
Definition at line 111 of file allvars.h. Referenced by density_evaluate(), and hydro_evaluate(). |
|
|
|
Definition at line 113 of file allvars.h. Referenced by density_evaluate(). |
|
Definition at line 114 of file allvars.h. Referenced by density_evaluate(), and hydro_evaluate(). |
|
defines maximum length of neighbour list |
|
|
|
If defined, the variable type FLOAT is set to "double", otherwise to FLOAT Definition at line 97 of file allvars.h. Referenced by density(). |
|
Maximum number of characters for filenames (including the full path) |
|
maxmimum number of entries in list of snapshot output times |
|
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(). |
|
|
|
Coefficient for kernel normalization. Note: 4.0/3 * PI = 4.188790204786 Definition at line 115 of file allvars.h. Referenced by density_evaluate(). |
|
For 3D-normalized kernel Definition at line 108 of file allvars.h. Referenced by density(), and density_evaluate(). |
|
The number of different Peano-Hilbert cells |
|
|
|
|
|
|
|
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(). |
|
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. |
|
|
|
|
|
|
|
|
|
|
|
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(). |
|
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(). |
|
< this enumeration lists the defined output blocks in snapshot files. Not all of them need to be present.
Definition at line 631 of file allvars.h. Referenced by fill_Tab_IO_Labels(), read_file(), and write_file(). |
|
a container variable for global variables that are equal on all processors |
|
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(). |
|
Sums the CPU time for the process (current submission only) |
|
holds imported particle data for SPH density computation |
|
holds particle data for SPH density computation to be exported to other processors |
|
imported partial SPH density results from other processors |
|
stores the locally computed SPH density results for imported particles |
|
gives the center of simulation volume Definition at line 47 of file allvars.c. Referenced by domain_findExtent(), force_treebuild_single(), and restart(). |
|
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(). |
|
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(). |
|
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(). |
|
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(). |
|
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(). |
|
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(). |
|
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(). |
|
gives the (maximum) side-length of simulation volume Definition at line 48 of file allvars.c. Referenced by domain_findExtent(), and restart(). |
|
this table stores for each node of the top-level tree corresponding node data from the gravitational tree |
|
last domain mesh cell that resides on the local processor Definition at line 51 of file allvars.c. Referenced by domain_decompose(), and restart(). |
|
first domain mesh cell that resides on the local processor Definition at line 50 of file allvars.c. Referenced by domain_decompose(), and restart(). |
|
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(). |
|
buffer for particle data used in domain decomposition |
|
buffer for SPH particle data in domain decomposition |
|
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(). |
|
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(). |
|
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(). |
|
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(). |
|
table for the cosmological drift factors Definition at line 97 of file allvars.c. Referenced by get_drift_factor(), and init_drift_table(). |
|
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(). |
|
provides shifted access to extended node information, parallel to Nodes/Nodes_base |
|
points to the actual memory allocted for the extended node information |
|
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 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 handle for energy.txt log-file. Definition at line 88 of file allvars.c. Referenced by close_outputfiles(), energy_statistics(), and open_outputfiles(). |
|
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 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 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(). |
|
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(). |
|
holds particle data imported from other processors |
|
holds particle data to be exported to other processors |
|
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 |
|
holds partial results received from other processors. This will overwrite the GravDataIn array |
|
holds the partial results computed for imported particles. Note: We use GravDataResult = GravDataGet, such that the result replaces the imported data |
|
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(). |
|
holds header for snapshot files |
|
holds imported particle data for SPH hydro-force computation |
|
holds particle data for SPH hydro-force computation to be exported to other processors |
|
imported partial SPH hydro-force results from other processors |
|
stores the locally computed SPH hydro results for imported particles |
|
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(). |
|
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(). |
|
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(). |
|
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(). |
|
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(). |
|
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(). |
|
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(). |
|
this is a pointer used to access the nodes which is shifted such that Nodes[All.MaxPart] gives the first allocated node |
|
points to the actual memory allocted for the nodes |
|
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(). |
|
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(). |
|
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(). |
|
total number of particles of each type Definition at line 17 of file allvars.c. Referenced by domain_decompose(). |
|
local number of particles of each type Definition at line 18 of file allvars.c. Referenced by domain_decompose(). |
|
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(). |
|
number of (internal) nodes in each tree Definition at line 139 of file allvars.c. Referenced by force_treebuild(), and restart(). |
|
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(). |
|
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(). |
|
holds particle data on local processor |
|
file name of parameterfile used for starting the simulation |
|
smallest integer such that NTask <= 2^PTask Definition at line 13 of file allvars.c. Referenced by main(). |
|
the employed random number generator of the GSL library |
|
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(). |
|
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(). |
|
holds SPH particle data on local processor |
|
|
|
Definition at line 167 of file allvars.c. Referenced by fill_Tab_IO_Labels(), read_file(), and write_file(). |
|
|
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(). |
|
points to the root node of the top-level tree |
|
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(). |