#include <stdio.h>
#include <gsl/gsl_rng.h>
#include "tags.h"
#include "allvars.h"
Go to the source code of this file.
Definition in file allvars.c.
|
|
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 Definition at line 191 of file allvars.c. Referenced by allocate_commbuffers(), density(), and density_evaluate(). |
|
holds particle data for SPH density computation to be exported to other processors Definition at line 191 of file allvars.c. Referenced by allocate_commbuffers(), and density(). |
|
imported partial SPH density results from other processors Definition at line 195 of file allvars.c. Referenced by allocate_commbuffers(), and density(). |
|
stores the locally computed SPH density results for imported particles Definition at line 195 of file allvars.c. Referenced by allocate_commbuffers(), density(), and density_evaluate(). |
|
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 Definition at line 63 of file allvars.c. Referenced by allocate_commbuffers(), force_exchange_pseudodata(), force_insert_pseudo_particles(), force_treeupdate_pseudos(), and restart(). |
|
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 Definition at line 119 of file allvars.c. Referenced by allocate_commbuffers(), and domain_exchangeParticles(). |
|
buffer for SPH particle data in domain decomposition Definition at line 127 of file allvars.c. Referenced by allocate_commbuffers(), and domain_exchangeParticles(). |
|
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 Definition at line 151 of file allvars.c. Referenced by advance_and_find_timesteps(), force_exchange_pseudodata(), force_treeupdate_pseudos(), force_update_hmax(), force_update_node_hmax_local(), force_update_node_hmax_toptree(), force_update_node_recursive(), move_particles(), and ngb_treefind_pairs(). |
|
points to the actual memory allocted for the extended node information Definition at line 151 of file allvars.c. Referenced by restart(). |
|
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 Definition at line 180 of file allvars.c. Referenced by allocate_commbuffers(), compute_potential(), gravity_forcetest(), and gravity_tree(). |
|
holds particle data to be exported to other processors Definition at line 180 of file allvars.c. Referenced by allocate_commbuffers(), compute_potential(), gravity_forcetest(), and gravity_tree(). |
|
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 Definition at line 186 of file allvars.c. Referenced by allocate_commbuffers(), compute_potential(), gravity_forcetest(), and gravity_tree(). |
|
holds partial results received from other processors. This will overwrite the GravDataIn array Definition at line 180 of file allvars.c. Referenced by allocate_commbuffers(), compute_potential(), gravity_forcetest(), and gravity_tree(). |
|
holds the partial results computed for imported particles. Note: We use GravDataResult = GravDataGet, such that the result replaces the imported data Definition at line 180 of file allvars.c. Referenced by allocate_commbuffers(), compute_potential(), force_treeevaluate_ewald_correction(), gravity_forcetest(), and gravity_tree(). |
|
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 Definition at line 161 of file allvars.c. Referenced by find_files(), get_particles_in_block(), init(), read_file(), read_header_attributes_in_hdf5(), and write_file(). |
|
holds imported particle data for SPH hydro-force computation Definition at line 201 of file allvars.c. Referenced by allocate_commbuffers(), hydro_evaluate(), and hydro_force(). |
|
holds particle data for SPH hydro-force computation to be exported to other processors Definition at line 201 of file allvars.c. Referenced by allocate_commbuffers(), and hydro_force(). |
|
imported partial SPH hydro-force results from other processors Definition at line 205 of file allvars.c. Referenced by allocate_commbuffers(), and hydro_force(). |
|
stores the locally computed SPH hydro results for imported particles Definition at line 205 of file allvars.c. Referenced by allocate_commbuffers(), hydro_evaluate(), and hydro_force(). |
|
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 Definition at line 141 of file allvars.c. Referenced by advance_and_find_timesteps(), force_create_empty_nodes(), force_exchange_pseudodata(), force_flag_localnodes(), force_insert_pseudo_particles(), force_treebuild_single(), force_treeevaluate_ewald_correction(), force_treeupdate_pseudos(), force_update_len(), force_update_node_hmax_local(), force_update_node_hmax_toptree(), force_update_node_len_local(), force_update_node_len_toptree(), force_update_node_recursive(), move_particles(), ngb_treefind_pairs(), ngb_treefind_variable(), and setup_smoothinglengths(). |
|
points to the actual memory allocted for the nodes Definition at line 141 of file allvars.c. Referenced by force_treeallocate(), and restart(). |
|
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(). |
|
|
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 127 of file allvars.c. Referenced by advance_and_find_timesteps(), allocate_memory(), compute_global_quantities_of_system(), compute_potential(), density(), density_evaluate(), domain_exchangeParticles(), empty_read_buffer(), fill_write_buffer(), force_treeevaluate(), force_treeevaluate_potential(), force_treeevaluate_potential_shortrange(), force_treeevaluate_shortrange(), force_update_node_hmax_local(), force_update_node_recursive(), free_memory(), get_timestep(), gravity_tree(), hydro_evaluate(), hydro_force(), init(), move_particles(), ngb_treefind_pairs(), read_ic(), reorder_gas(), restart(), and setup_smoothinglengths(). |
|
Definition at line 173 of file allvars.c. Referenced by compute_global_quantities_of_system(), and energy_statistics(). |
|
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 Definition at line 75 of file allvars.c. Referenced by allocate_commbuffers(), domain_countToGo(), domain_exchangeParticles(), domain_sumCost(), domain_topsplit(), domain_topsplit_local(), domain_walktoptree(), force_create_empty_nodes(), and force_treebuild_single(). |
|
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(). |