GADGET-4
TimeBinData Struct Reference

#include <timestep.h>

Public Member Functions

void timebins_init (const char *name, int *MaxPart)
 
void timebins_allocate (void)
 
void timebins_free (void)
 
void timebins_reallocate (void)
 
void timebin_move_particle (int p, int timeBin_old, int timeBin_new)
 
void timebin_add_particle (int i_new, int i_old, int timeBin, int addToListOfActiveParticles)
 
void timebin_remove_particle (int idx, int bin)
 
void timebin_cleanup_list_of_active_particles (void)
 
void timebin_move_sfr (int p, int timeBin_old, int timeBin_new)
 
void timebin_move_bh (int p, int timeBin_old, int timeBin_new)
 
void timebin_make_list_of_active_particles_up_to_timebin (int timebin)
 
void timebin_add_particles_of_timebin_to_list_of_active_particles (int timebin)
 

Public Attributes

int NActiveParticles
 
long long GlobalNActiveParticles
 
int * ActiveParticleList
 
int TimeBinCount [TIMEBINS]
 
int FirstInTimeBin [TIMEBINS]
 
int LastInTimeBin [TIMEBINS]
 
int * NextInTimeBin
 
int * PrevInTimeBin
 
char Name [100]
 
int * MaxPart
 

Detailed Description

Definition at line 15 of file timestep.h.

Member Function Documentation

◆ timebin_add_particle()

void timebin_add_particle ( int  i_new,
int  i_old,
int  timeBin,
int  addToListOfActiveParticles 
)

Definition at line 599 of file timestep.cc.

◆ timebin_add_particles_of_timebin_to_list_of_active_particles()

void timebin_add_particles_of_timebin_to_list_of_active_particles ( int  timebin)

Definition at line 671 of file timestep.cc.

◆ timebin_cleanup_list_of_active_particles()

void timebin_cleanup_list_of_active_particles ( void  )

◆ timebin_make_list_of_active_particles_up_to_timebin()

void timebin_make_list_of_active_particles_up_to_timebin ( int  timebin)

Definition at line 664 of file timestep.cc.

◆ timebin_move_bh()

void timebin_move_bh ( int  p,
int  timeBin_old,
int  timeBin_new 
)

◆ timebin_move_particle()

void timebin_move_particle ( int  p,
int  timeBin_old,
int  timeBin_new 
)

Definition at line 539 of file timestep.cc.

◆ timebin_move_sfr()

void timebin_move_sfr ( int  p,
int  timeBin_old,
int  timeBin_new 
)

◆ timebin_remove_particle()

void timebin_remove_particle ( int  idx,
int  bin 
)

Definition at line 574 of file timestep.cc.

◆ timebins_allocate()

void timebins_allocate ( void  )

Definition at line 458 of file timestep.cc.

◆ timebins_free()

void timebins_free ( void  )

Definition at line 473 of file timestep.cc.

◆ timebins_init()

void timebins_init ( const char *  name,
int *  MaxPart 
)

Definition at line 439 of file timestep.cc.

◆ timebins_reallocate()

void timebins_reallocate ( void  )

Definition at line 484 of file timestep.cc.

Member Data Documentation

◆ ActiveParticleList

int* ActiveParticleList

Definition at line 20 of file timestep.h.

◆ FirstInTimeBin

int FirstInTimeBin[TIMEBINS]

Definition at line 23 of file timestep.h.

◆ GlobalNActiveParticles

long long GlobalNActiveParticles

Definition at line 19 of file timestep.h.

◆ LastInTimeBin

int LastInTimeBin[TIMEBINS]

Definition at line 24 of file timestep.h.

◆ MaxPart

int* MaxPart

Definition at line 28 of file timestep.h.

◆ NActiveParticles

int NActiveParticles

Definition at line 18 of file timestep.h.

◆ Name

char Name[100]

Definition at line 27 of file timestep.h.

◆ NextInTimeBin

int* NextInTimeBin

Definition at line 25 of file timestep.h.

◆ PrevInTimeBin

int* PrevInTimeBin

Definition at line 26 of file timestep.h.

◆ TimeBinCount

int TimeBinCount[TIMEBINS]

Definition at line 21 of file timestep.h.


The documentation for this struct was generated from the following files: