MP-Gadget
5.0.1.dev1-76bc7d4726-dirty
|
#include <string.h>
#include "partmanager.h"
#include "utils/mymalloc.h"
#include "utils/endrun.h"
#include "utils/system.h"
Go to the source code of this file.
Functions | |
void | particle_alloc_memory (struct part_manager_type *PartManager, double BoxSize, int64_t MaxPart) |
void | update_random_offset (struct part_manager_type *PartManager, double *rel_random_shift, double RandomParticleOffset) |
Variables | |
struct part_manager_type | PartManager [1] = {{0}} |
void particle_alloc_memory | ( | struct part_manager_type * | PartManager, |
double | BoxSize, | ||
int64_t | MaxPart | ||
) |
Definition at line 14 of file partmanager.c.
References part_manager_type::Base, part_manager_type::BoxSize, part_manager_type::CurrentParticleOffset, endrun(), part_manager_type::MaxPart, message(), mymalloc, part_manager_type::NumPart, and PartManager.
Referenced by init_alloc_particle_slot_memory(), setup_density(), and setup_particles().
void update_random_offset | ( | struct part_manager_type * | PartManager, |
double * | rel_random_shift, | ||
double | RandomParticleOffset | ||
) |
Definition at line 43 of file partmanager.c.
References part_manager_type::BoxSize, part_manager_type::CurrentParticleOffset, endrun(), get_random_number(), message(), and PartManager.
Referenced by run().
struct part_manager_type PartManager[1] = {{0}} |
This structure holds all the information that is stored for each particle of the simulation on the local processor.
Definition at line 1 of file partmanager.c.
Referenced by _prepare(), add_particle_to_group(), apply_PM_half_kick(), begrun(), blackhole_accretion_ngbiter(), blackhole_feedback_ngbiter(), blackhole_make_one(), check_accns(), check_against_force_direct(), check_densities(), check_omega(), check_positions(), check_smoothing_length(), collect_BH_info(), cooling_direct(), copy_and_mean_accn(), density(), do_density_test(), do_force_test(), do_random_test(), domain_allocate(), domain_check_for_local_refine_subsample(), domain_check_memory_bound(), domain_compute_costs(), domain_decompose_full(), domain_maintain(), drift_all_particles(), effhsml(), energy_statistics(), ev_alloc_threadlocals(), ev_begin(), find_means(), find_timesteps(), fof_compile_base(), fof_compile_catalogue(), fof_distribute_particles(), fof_fof(), fof_label_primary(), fof_label_secondary(), fof_seed(), fof_try_particle_exchange(), fof_write_header(), force_direct(), force_tree_build(), force_tree_create_nodes(), force_tree_rebuild(), force_tree_rebuild_mask(), force_update_hmax(), gas_ionization_fraction(), GDB_find_garbage(), GDB_particle_by_generation(), GDB_particle_by_id(), GDB_particle_by_timebin(), GDB_particle_by_type(), get_helium_neutral_fraction_sfreff(), get_long_range_timestep_dloga(), get_neutral_fraction_sfreff(), get_sfr_eeqos(), gravpm_force(), GTBlackholeMinPotPos(), GTFirstPos(), GTMassCenterPosition(), GTPosition(), init(), init_alloc_particle_slot_memory(), lightcone_compute(), lightcone_cross(), make_particle_star(), particle_alloc_memory(), petaio_read_snapshot(), petaio_readout_buffer(), petaio_save_snapshot(), rebuild_activelist(), run(), run_gravity_test(), runfof(), runpower(), set_init_hsml(), setup_density(), setup_particles(), setup_smoothinglengths(), setup_tree(), sfr_reserve_slots(), teardown_particles(), test_density_close(), test_density_flat(), test_exchange(), test_exchange_uneven(), test_exchange_with_garbage(), test_exchange_zero_slots(), test_fof(), test_force_close(), test_force_flat(), test_force_random(), turn_on_quasars(), update_random_offset(), and use_pairwise_gravity().