GADGET-4
timestep.h
Go to the documentation of this file.
1/*******************************************************************************
2 * \copyright This file is part of the GADGET4 N-body/SPH code developed
3 * \copyright by Volker Springel. Copyright (C) 2014-2020 by Volker Springel
4 * \copyright (vspringel@mpa-garching.mpg.de) and all contributing authors.
5 *******************************************************************************/
6
12#ifndef TIMESTEP_H
13#define TIMESTEP_H
14
16{
17 public:
22
27 char Name[100];
28 int *MaxPart;
29
30 /* TimeBinData stuff */
31 void timebins_init(const char *name, int *MaxPart);
32 void timebins_allocate(void);
33 void timebins_free(void);
34 void timebins_reallocate(void);
35 void timebin_move_particle(int p, int timeBin_old, int timeBin_new);
36 void timebin_add_particle(int i_new, int i_old, int timeBin, int addToListOfActiveParticles);
37 void timebin_remove_particle(int idx, int bin);
39 void timebin_move_sfr(int p, int timeBin_old, int timeBin_new);
40 void timebin_move_bh(int p, int timeBin_old, int timeBin_new);
43};
44
45#endif /* TIMESTEP */
#define TIMEBINS
Definition: constants.h:332
void timebins_reallocate(void)
Definition: timestep.cc:484
void timebins_init(const char *name, int *MaxPart)
Definition: timestep.cc:439
int NActiveParticles
Definition: timestep.h:18
void timebin_cleanup_list_of_active_particles(void)
int * ActiveParticleList
Definition: timestep.h:20
void timebin_move_bh(int p, int timeBin_old, int timeBin_new)
void timebin_remove_particle(int idx, int bin)
Definition: timestep.cc:574
void timebin_make_list_of_active_particles_up_to_timebin(int timebin)
Definition: timestep.cc:664
char Name[100]
Definition: timestep.h:27
int TimeBinCount[TIMEBINS]
Definition: timestep.h:21
void timebin_add_particles_of_timebin_to_list_of_active_particles(int timebin)
Definition: timestep.cc:671
int FirstInTimeBin[TIMEBINS]
Definition: timestep.h:23
void timebins_allocate(void)
Definition: timestep.cc:458
long long GlobalNActiveParticles
Definition: timestep.h:19
int * PrevInTimeBin
Definition: timestep.h:26
int * MaxPart
Definition: timestep.h:28
void timebin_move_particle(int p, int timeBin_old, int timeBin_new)
Definition: timestep.cc:539
int * NextInTimeBin
Definition: timestep.h:25
void timebin_move_sfr(int p, int timeBin_old, int timeBin_new)
int LastInTimeBin[TIMEBINS]
Definition: timestep.h:24
void timebin_add_particle(int i_new, int i_old, int timeBin, int addToListOfActiveParticles)
Definition: timestep.cc:599
void timebins_free(void)
Definition: timestep.cc:473