Header file for dist_6D.c.
More...
#include <stdlib.h>
#include "../ascot5.h"
#include "../particle.h"
Go to the source code of this file.
Header file for dist_6D.c.
Definition in file dist_6D.h.
◆ dist_6D_init()
Initializes distribution data.
Definition at line 34 of file dist_6D.c.
◆ dist_6D_free()
Free allocated resources.
Definition at line 60 of file dist_6D.c.
◆ dist_6D_offload()
Offload data to the accelerator.
- Parameters
-
data | pointer to the data struct |
Definition at line 69 of file dist_6D.c.
◆ dist_6D_update_fo()
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.
- Parameters
-
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 86 of file dist_6D.c.
◆ dist_6D_update_gc()
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.
- Parameters
-
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 152 of file dist_6D.c.