15 #include "gadgetconfig.h"
19 #include "../cooling_sfr/cooling.h"
20 #include "../data/allvars.h"
21 #include "../data/constants.h"
22 #include "../data/dtypes.h"
23 #include "../data/lcparticles.h"
24 #include "../data/macros.h"
25 #include "../data/mmparticles.h"
26 #include "../data/mymalloc.h"
27 #include "../data/simparticles.h"
28 #include "../domain/domain.h"
29 #include "../fmm/fmm.h"
30 #include "../fof/fof.h"
31 #include "../gravity/ewald.h"
32 #include "../gravity/grav_forcetest.h"
33 #include "../gravtree/gravtree.h"
34 #include "../gravtree/gwalk.h"
35 #include "../io/parameters.h"
36 #include "../io/restart.h"
37 #include "../io/test_io_bandwidth.h"
38 #include "../lightcone/lightcone.h"
39 #include "../logs/logs.h"
40 #include "../mergertree/mergertree.h"
41 #include "../mpi_utils/mpi_utils.h"
42 #include "../mpi_utils/setcomm.h"
43 #include "../ngbtree/ngbtree.h"
44 #include "../ngenic/ngenic.h"
46 #include "../sph/sph.h"
47 #include "../system/pinning.h"
87 #ifdef LIGHTCONE_PARTICLES
90 #ifdef LIGHTCONE_MASSMAPS
94 #if defined(LIGHTCONE_PARTICLES) && defined(LIGHTCONE_MASSMAPS)
97 #if defined(LIGHTCONE_PARTICLES)
112 template <
typename partset>
115 template <
typename partset>
118 template <
typename partset>
121 template <
typename partset>
126 void check_omega(
void);
129 void setup_smoothinglengths(
void);
130 void recreate_unique_ids(
void);
131 void test_id_uniqueness(
void);
132 int check_for_interruption_of_run(
void);
133 void set_non_standard_physics_for_current_time(
void);
134 void calculate_non_standard_physics_end_of_step(
void);
137 double measure_hyper_cube_speed(
const char *tag, MPI_Comm
Communicator);
138 void measure_iprobe_performance(
const char *tag);
140 #ifdef SECOND_ORDER_LPT_ICS
141 double F1_Omega(
double a);
142 double F2_Omega(
double a);
144 void second_order_ic_correction(
void);
150 void begrun1(
const char *parameterFile);
152 void init(
int RestartSnapNum);
158 long long report_comittable_memory(
long long *MemTotal,
long long *Committed_AS,
long long *SwapTotal,
long long *SwapFree);
174 #ifdef FORCETEST_TESTFORCELAW
175 void gravity_forcetest_testforcelaw(
void);
178 #ifdef EXTERNALGRAVITY
179 void gravity_external(
void);
void rearrange_write(partset &Tp, int num, int conenr)
void compute_grav_accelerations(int timebin)
This routine computes the gravitational accelerations for all active particles.
void rearrange_generic(partset &Tp, int conenr, int firstnr, int lastnr)
domain< simparticles > Domain
void do_hydro_step_second_half(void)
long long report_free_size_in_tmpfs(void)
void hydro_force(int step_indicator)
void begrun1(const char *parameterFile)
This function performs the initial set-up of the simulation.
void gravity_comoving_factors(int timebin)
void mpi_report_comittable_memory(void)
long long report_comittable_memory(long long *MemTotal, long long *Committed_AS, long long *SwapTotal, long long *SwapFree)
void gravity(int timebin)
main driver routine of gravity tree/fmm force calculation
void gravity_pm(int timebin)
void do_hydro_step_first_half(void)
void find_hydro_timesteps(void)
void rearrange_snapshot(int argc, char **argv)
void init(int RestartSnapNum)
Prepares the loaded initial conditions for the run.
void gravity_long_range_force(void)
void set_units(void)
Computes conversion factors between internal code units and the cgs-system.
void rearrange_lightcone(int argc, char **argv)
void find_timesteps_and_do_gravity_step_first_half(void)
performs the first half step kick operator for the gravity
void rearrange_read(partset &Tp, int num, int conenr)
void gravity_set_oldacc(int timebin)
void rearrange_fill_treetable(partset &Tp)
void find_global_timesteps(void)
void do_gravity_step_second_half(void)
performs the second gravity half step kick operator
void begrun2(void)
This function does late setup, after the IC file has been loaded but before run() is called.
void create_snapshot_if_desired(void)
Check if a snapshot should be saved.
void endrun(void)
This function aborts the simulations.