ASCOT5
Loading...
Searching...
No Matches
diag.h
Go to the documentation of this file.
1
5#ifndef DIAG_H
6#define DIAG_H
7#include "ascot5.h"
8#include "particle.h"
9#include "B_field.h"
10#include "diag/dist_5D.h"
11#include "diag/dist_6D.h"
12#include "diag/dist_rho5D.h"
13#include "diag/dist_rho6D.h"
14#include "diag/dist_com.h"
15#include "diag/diag_orb.h"
16#include "diag/diag_transcoef.h"
17
50
72
73int diag_init_offload(diag_offload_data* data, real** offload_array, int Nmrk);
74
75void diag_free_offload(diag_offload_data* data, real** offload_array);
76
77void diag_sum(diag_offload_data* data, real* array1, real* array2);
78
79void diag_init(diag_data* data, diag_offload_data* offload_data,
80 real* offload_array);
81
82void diag_free(diag_data* data);
83
85 particle_simd_fo* p_i);
86
88 particle_simd_gc* p_i);
89
91 particle_simd_ml* p_i);
92
93
94#endif
Header file for B_field.c.
Main header file for ASCOT5.
double real
Definition ascot5.h:85
void diag_update_fo(diag_data *data, B_field_data *Bdata, particle_simd_fo *p_f, particle_simd_fo *p_i)
Collects diagnostics when marker represents a particle.
Definition diag.c:223
void diag_sum(diag_offload_data *data, real *array1, real *array2)
Sum offload data arrays as one.
Definition diag.c:323
void diag_free_offload(diag_offload_data *data, real **offload_array)
Frees the offload array.
Definition diag.c:140
int diag_init_offload(diag_offload_data *data, real **offload_array, int Nmrk)
Initializes offload array from offload data.
Definition diag.c:40
void diag_init(diag_data *data, diag_offload_data *offload_data, real *offload_array)
Initializes diagnostics from offload data.
Definition diag.c:152
void diag_free(diag_data *data)
Free diagnostics data.
Definition diag.c:204
void diag_update_ml(diag_data *data, particle_simd_ml *p_f, particle_simd_ml *p_i)
Collects diagnostics when marker represents a magnetic field line.
Definition diag.c:300
void diag_update_gc(diag_data *data, B_field_data *Bdata, particle_simd_gc *p_f, particle_simd_gc *p_i)
Collects diagnostics when marker represents a guiding center.
Definition diag.c:258
Header file for diag_orb.c.
Header file for diag_transcoef.c.
Header file for dist_5D.c.
Header file for dist_6D.c.
Header file for dist_com.c.
Header file for dist_rho5D.c.
Header file for dist_rho6D.c.
Header file for particle.c.
Magnetic field simulation data.
Definition B_field.h:63
Diagnostics data struct.
Definition diag.h:54
dist_COM_data distCOM
Definition diag.h:68
int distrho5D_collect
Definition diag.h:58
int diagtrcof_collect
Definition diag.h:61
diag_transcoef_data diagtrcof
Definition diag.h:69
int distrho6D_collect
Definition diag.h:59
diag_orb_data diagorb
Definition diag.h:63
dist_rho6D_data distrho6D
Definition diag.h:67
dist_5D_data dist5D
Definition diag.h:64
int dist5D_collect
Definition diag.h:56
int dist6D_collect
Definition diag.h:57
int distCOM_collect
Definition diag.h:60
dist_6D_data dist6D
Definition diag.h:65
dist_rho5D_data distrho5D
Definition diag.h:66
int diagorb_collect
Definition diag.h:55
Diagnostics offload data struct.
Definition diag.h:21
dist_rho5D_offload_data distrho5D
Definition diag.h:33
size_t offload_distCOM_index
Definition diag.h:42
int distrho6D_collect
Definition diag.h:26
size_t offload_dist_length
Definition diag.h:46
int diagtrcof_collect
Definition diag.h:28
diag_transcoef_offload_data diagtrcof
Definition diag.h:36
int distCOM_collect
Definition diag.h:27
dist_5D_offload_data dist5D
Definition diag.h:31
size_t offload_distrho6D_index
Definition diag.h:41
size_t offload_distrho5D_index
Definition diag.h:40
size_t offload_dist6D_index
Definition diag.h:39
size_t offload_diagtrcof_index
Definition diag.h:44
int distrho5D_collect
Definition diag.h:25
dist_6D_offload_data dist6D
Definition diag.h:32
int dist5D_collect
Definition diag.h:23
dist_rho6D_offload_data distrho6D
Definition diag.h:34
size_t offload_dist5D_index
Definition diag.h:38
int diagorb_collect
Definition diag.h:22
size_t offload_array_length
Definition diag.h:47
int dist6D_collect
Definition diag.h:24
dist_COM_offload_data distCOM
Definition diag.h:35
size_t offload_diagorb_index
Definition diag.h:43
diag_orb_offload_data diagorb
Definition diag.h:30
Orbit diagnostics data struct.
Definition diag_orb.h:61
Orbit diagnostics offload data struct.
Definition diag_orb.h:35
Transport coefficient diagnostics offload data struct.
Transport coefficient diagnostics offload data struct.
Histogram parameters on target.
Definition dist_5D.h:48
Histogram parameters that will be offloaded to target.
Definition dist_5D.h:15
Histogram parameters on target.
Definition dist_6D.h:52
Histogram parameters that will be offloaded to target.
Definition dist_6D.h:15
Histogram parameters on target.
Definition dist_com.h:33
Histogram parameters that will be offloaded to target.
Definition dist_com.h:16
Histogram parameters on target.
Definition dist_rho5D.h:48
Histogram parameters that will be offloaded to target.
Definition dist_rho5D.h:15
Histogram parameters on target.
Definition dist_rho6D.h:52
Histogram parameters that will be offloaded to target.
Definition dist_rho6D.h:15
Struct representing NSIMD particle markers.
Definition particle.h:210
Struct representing NSIMD guiding center markers.
Definition particle.h:275
Struct representing NSIMD field line markers.
Definition particle.h:342