GraviDy
1.0
Gravitational Dynamics N-body integrator
|
#include "Hermite4GPU.cuh"
Functions | |
__global__ void | k_init_acc_jrk (Predictor *p, Forces *f, int n, double e2, int dev, int dev_size) |
Initialization kernel, which consider an ![]() | |
__device__ void | k_force_calculation (Predictor i_p, Predictor j_p, Forces &f, double e2) |
Force interaction kernel, in charge of performing gravitational interaction computation between two particles. More... | |
__global__ void | k_prediction (Forces *f, double4 *r, double4 *v, double *t, Predictor *p, int dev_size, double ITIME) |
Predictor kernel, in charge of performing the prediction step of all the particles on each integration step. More... | |
__global__ void | k_update (Predictor *i_p, Predictor *j_p, Forces *fout, int n, int total, double e2) |
Force kernel, in charge of performing distribution of how the ![]() | |
__global__ void | k_reduce (Forces *in, Forces *out, int shift_id, int shift) |
Force reduction kernel, in charge of summing up all the preliminary results of the forces for the ![]() | |
__global__ void | k_energy (double4 *r, double4 *v, double *ekin, double *epot, int n, int dev_size, int dev) |
Energy kernel, in charge of the calculation of the kinetic and potential energy on the GPUs. More... | |
__global__ void k_energy | ( | double4 * | r, |
double4 * | v, | ||
double * | ekin, | ||
double * | epot, | ||
int | n, | ||
int | dev_size, | ||
int | dev | ||
) |
Energy kernel, in charge of the calculation of the kinetic and potential energy on the GPUs.
Force interaction kernel, in charge of performing gravitational interaction computation between two particles.
__global__ void k_init_acc_jrk | ( | Predictor * | p, |
Forces * | f, | ||
int | n, | ||
double | e2, | ||
int | dev, | ||
int | dev_size | ||
) |
Initialization kernel, which consider an interaction of the particles.
__global__ void k_prediction | ( | Forces * | f, |
double4 * | r, | ||
double4 * | v, | ||
double * | t, | ||
Predictor * | p, | ||
int | dev_size, | ||
double | ITIME | ||
) |
Predictor kernel, in charge of performing the prediction step of all the particles on each integration step.
Force reduction kernel, in charge of summing up all the preliminary results of the forces for the particles.