ASCOT5
Loading...
Searching...
No Matches
E_1DS.h
Go to the documentation of this file.
1
9#ifndef E_1DS_H
10#define E_1DS_H
11#include "../offload_acc_omp.h"
12#include "../ascot5.h"
13#include "../error.h"
14#include "../spline/interp.h"
15#include "../B_field.h"
16
26
30typedef struct {
33
34int E_1DS_init_offload(E_1DS_offload_data* offload_data, real** offload_array);
35void E_1DS_free_offload(E_1DS_offload_data* offload_data, real** offload_array);
36
37void E_1DS_init(E_1DS_data* Edata, E_1DS_offload_data* offload_data,
38 real* offload_array);
39GPU_DECLARE_TARGET_SIMD_UNIFORM(Edata,Bdata)
40a5err E_1DS_eval_E(real E[3], real r, real phi, real z, E_1DS_data* Edata,
41 B_field_data* Bdata);
42DECLARE_TARGET_END
43#endif
Header file for B_field.c.
void E_1DS_free_offload(E_1DS_offload_data *offload_data, real **offload_array)
Free offload array and reset parameters.
Definition E_1DS.c:78
int E_1DS_init_offload(E_1DS_offload_data *offload_data, real **offload_array)
Initialize 1DS electric field data.
Definition E_1DS.c:41
void E_1DS_init(E_1DS_data *Edata, E_1DS_offload_data *offload_data, real *offload_array)
Initialize 1D spline electric field data struct on target.
Definition E_1DS.c:95
a5err E_1DS_eval_E(real E[3], real r, real phi, real z, E_1DS_data *Edata, B_field_data *Bdata)
Evaluate 1D spline radial electric field.
Definition E_1DS.c:122
Main header file for ASCOT5.
double real
Definition ascot5.h:85
Error module for ASCOT5.
unsigned long int a5err
Simulation error flag.
Definition error.h:17
Spline interpolation library.
Magnetic field simulation data.
Definition B_field.h:63
1D spline electric field parameters on the target
Definition E_1DS.h:30
interp1D_data dV
Definition E_1DS.h:31
1D spline electric field parameters that will be offloaded to target
Definition E_1DS.h:20
int offload_array_length
Definition E_1DS.h:24
Cubic interpolation struct.
Definition interp.h:56