MP-Gadget
5.0.1.dev1-76bc7d4726-dirty
libgadget
drift.h
Go to the documentation of this file.
1
#ifndef __DRIFT_H
2
#define __DRIFT_H
3
#include "
cosmology.h
"
4
#include "
types.h
"
5
#include "
partmanager.h
"
6
#include "
slotsmanager.h
"
7
8
/* Updates all particles to the current drift time*/
9
void
drift_all_particles
(
inttime_t
ti0,
inttime_t
ti1,
Cosmology
*
CP
,
const
double
random_shift[3]);
10
11
void
real_drift_particle
(
struct
particle_data
* pp,
struct
slots_manager_type
* sman,
const
double
ddrift,
const
double
BoxSize,
const
double
random_shift[3]);
12
13
struct
DriftData
14
{
15
inttime_t
ti0
;
16
inttime_t
ti1
;
17
Cosmology
*
CP
;
18
};
19
20
#endif
cosmology.h
drift_all_particles
void drift_all_particles(inttime_t ti0, inttime_t ti1, Cosmology *CP, const double random_shift[3])
Definition:
drift.c:91
real_drift_particle
void real_drift_particle(struct particle_data *pp, struct slots_manager_type *sman, const double ddrift, const double BoxSize, const double random_shift[3])
Definition:
drift.c:22
partmanager.h
CP
static Cosmology * CP
Definition:
power.c:27
slotsmanager.h
Cosmology
Definition:
cosmology.h:8
DriftData
Definition:
drift.h:14
DriftData::ti0
inttime_t ti0
Definition:
drift.h:15
DriftData::CP
Cosmology * CP
Definition:
drift.h:17
DriftData::ti1
inttime_t ti1
Definition:
drift.h:16
particle_data
Definition:
partmanager.h:11
slots_manager_type
Definition:
slotsmanager.h:111
types.h
inttime_t
int32_t inttime_t
Definition:
types.h:8
Generated by
1.9.1