|
ASCOT5
|
Header file for dist_rho6D.c. More...
Go to the source code of this file.
Data Structures | |
| struct | dist_rho6D_data |
| Histogram parameters on target. More... | |
Functions | |
| int | dist_rho6D_init (dist_rho6D_data *dist_data) |
| Initializes distribution data. | |
| void | dist_rho6D_free (dist_rho6D_data *dist_data) |
| Free allocated resources. | |
| void | dist_rho6D_offload (dist_rho6D_data *dist_data) |
| Offload data to the accelerator. | |
| void | dist_rho6D_update_fo (dist_rho6D_data *dist, particle_simd_fo *p_f, particle_simd_fo *p_i) |
| Update the histogram from full-orbit particles. | |
| void | dist_rho6D_update_gc (dist_rho6D_data *dist, particle_simd_gc *p_f, particle_simd_gc *p_i) |
| Update the histogram from guiding-center particles. | |
Header file for dist_rho6D.c.
Definition in file dist_rho6D.h.
| int dist_rho6D_init | ( | dist_rho6D_data * | dist_data | ) |
Initializes distribution data.
Definition at line 34 of file dist_rho6D.c.
| void dist_rho6D_free | ( | dist_rho6D_data * | dist_data | ) |
Free allocated resources.
Definition at line 58 of file dist_rho6D.c.
| void dist_rho6D_offload | ( | dist_rho6D_data * | data | ) |
Offload data to the accelerator.
| data | pointer to the data struct |
Definition at line 67 of file dist_rho6D.c.
| void dist_rho6D_update_fo | ( | dist_rho6D_data * | dist, |
| particle_simd_fo * | p_f, | ||
| particle_simd_fo * | p_i ) |
Update the histogram from full-orbit particles.
This function updates the histogram from the particle 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 |
| p_i | pointer to SIMD particle struct at the beginning of time step |
| p_f | pointer to SIMD particle struct at the end of time step |
Definition at line 84 of file dist_rho6D.c.
| void dist_rho6D_update_gc | ( | dist_rho6D_data * | dist, |
| particle_simd_gc * | p_f, | ||
| particle_simd_gc * | p_i ) |
Update the histogram from guiding-center particles.
This function updates the histogram from the guiding center 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 |
| p_i | pointer to SIMD GC struct at the beginning of time step |
| p_f | pointer to SIMD GC struct at the end of time step |
Definition at line 181 of file dist_rho6D.c.