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 from offload data.
Definition at line 58 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 121 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 187 of file dist_6D.c.