ASCOT5
Loading...
Searching...
No Matches
Data Structures | Functions
dist_rho6D.h File Reference

Header file for dist_rho6D.c. More...

#include <stdlib.h>
#include "../ascot5.h"
#include "../particle.h"

Go to the source code of this file.

Data Structures

struct  dist_rho6D_offload_data
 Histogram parameters that will be offloaded to target. More...
 
struct  dist_rho6D_data
 Histogram parameters on target. More...
 

Functions

void dist_rho6D_init (dist_rho6D_data *dist_data, dist_rho6D_offload_data *offload_data, real *offload_array)
 Initializes distribution from offload data.
 
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.
 

Detailed Description

Header file for dist_rho6D.c.

Definition in file dist_rho6D.h.

Function Documentation

◆ dist_rho6D_init()

void dist_rho6D_init ( dist_rho6D_data * dist_data,
dist_rho6D_offload_data * offload_data,
real * offload_array )

Initializes distribution from offload data.

Definition at line 58 of file dist_rho6D.c.

◆ dist_rho6D_update_fo()

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.

Parameters
distpointer to distribution parameter struct
p_ipointer to SIMD particle struct at the beginning of time step
p_fpointer to SIMD particle struct at the end of time step

Definition at line 122 of file dist_rho6D.c.

◆ dist_rho6D_update_gc()

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.

Parameters
distpointer to distribution parameter struct
p_ipointer to SIMD GC struct at the beginning of time step
p_fpointer to SIMD GC struct at the end of time step

Definition at line 195 of file dist_rho6D.c.