59 real** offload_array);
62 real** offload_array);
66DECLARE_TARGET_SIMD_UNIFORM(boozerdata, mhddata, includemode)
70DECLARE_TARGET_SIMD_UNIFORM(boozerdata, mhddata, Bdata, pertonly,\
73 real t,
int pertonly,
int includemode,
Header file for B_field.c.
Main header file for ASCOT5.
#define MHD_MODES_MAX_NUM
Maximum number of MHD modes.
Header file for boozer.c.
unsigned long int a5err
Simulation error flag.
Spline interpolation library.
a5err mhd_stat_perturbations(real pert_field[7], real r, real phi, real z, real t, int pertonly, int includemode, boozer_data *boozerdata, mhd_stat_data *mhddata, B_field_data *Bdata)
Evaluate perturbed fields Btilde, Etilde and potential Phi explicitly.
void mhd_stat_free_offload(mhd_stat_offload_data *offload_data, real **offload_array)
Free offload array.
void mhd_stat_init(mhd_stat_data *mhdata, mhd_stat_offload_data *offload_data, real *offload_array)
Initialize MHD data struct on target.
a5err mhd_stat_eval(real mhd_dmhd[10], real r, real phi, real z, real t, int includemode, boozer_data *boozerdata, mhd_stat_data *mhddata, B_field_data *Bdata)
Evaluate the needed quantities from MHD mode for orbit following.
int mhd_stat_init_offload(mhd_stat_offload_data *offload_data, real **offload_array)
Load MHD data and prepare parameters for offload.
Magnetic field simulation data.
Boozer parameters on the target.
Cubic interpolation struct.
MHD stat parameters on the target.
MHD stat parameters that will be offloaded to target.