ASCOT5
|
Header file for dist_com.c. More...
Go to the source code of this file.
Data Structures | |
struct | dist_COM_offload_data |
Histogram parameters that will be offloaded to target. More... | |
struct | dist_COM_data |
Histogram parameters on target. More... | |
Functions | |
void | dist_COM_init (dist_COM_data *dist_data, dist_COM_offload_data *offload_data, real *offload_array) |
Initializes distribution from offload data. | |
void | dist_COM_update_fo (dist_COM_data *dist, B_field_data *Bdata, particle_simd_fo *p_f, particle_simd_fo *p_i) |
Update the histogram from full-orbit markers. | |
void | dist_COM_update_gc (dist_COM_data *dist, B_field_data *Bdata, particle_simd_gc *p_f, particle_simd_gc *p_i) |
Update the histogram from guiding center markers. | |
Header file for dist_com.c.
Definition in file dist_com.h.
void dist_COM_init | ( | dist_COM_data * | dist_data, |
dist_COM_offload_data * | offload_data, | ||
real * | offload_array ) |
Initializes distribution from offload data.
dist_data | pointer to data struct |
offload_data | pointer to offload data struct |
offload_array | offload array |
Definition at line 48 of file dist_com.c.
void dist_COM_update_fo | ( | dist_COM_data * | dist, |
B_field_data * | Bdata, | ||
particle_simd_fo * | p_f, | ||
particle_simd_fo * | p_i ) |
Update the histogram from full-orbit markers.
dist | pointer to distribution parameter struct |
Bdata | pointer to magnetic field data |
p_f | pointer to SIMD fo struct at the end of current time step |
p_i | pointer to SIMD fo struct at the start of current time step |
Definition at line 78 of file dist_com.c.
void dist_COM_update_gc | ( | dist_COM_data * | dist, |
B_field_data * | Bdata, | ||
particle_simd_gc * | p_f, | ||
particle_simd_gc * | p_i ) |
Update the histogram from guiding center markers.
This function updates the histogram from the marker data. Bins are calculated as vector op and histogram is updates as an atomic operation to avoid race conditions.
dist | pointer to distribution parameter struct |
Bdata | pointer to magnetic field data |
p_f | pointer to SIMD gc struct at the end of current time step |
p_i | pointer to SIMD gc struct at the start of current time step |
Definition at line 135 of file dist_com.c.