59 real** offload_array);
62 real** offload_array);
67DECLARE_TARGET_SIMD_UNIFORM(boozerdata, mhddata, Bdata, includemode)
71DECLARE_TARGET_SIMD_UNIFORM(boozerdata, mhddata, Bdata, pertonly,\
74 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_nonstat_perturbations(real pert_field[7], real r, real phi, real z, real t, int pertonly, int includemode, boozer_data *boozerdata, mhd_nonstat_data *mhddata, B_field_data *Bdata)
Evaluate mhd perturbed fields Btilde, Etilde and potential Phi for full orbit.
void mhd_nonstat_init(mhd_nonstat_data *mhddata, mhd_nonstat_offload_data *offload_data, real *offload_array)
Initialize MHD data struct on target.
int mhd_nonstat_init_offload(mhd_nonstat_offload_data *offload_data, real **offload_array)
Load MHD data and prepare parameters for offload.
void mhd_nonstat_free_offload(mhd_nonstat_offload_data *offload_data, real **offload_array)
Free offload array.
a5err mhd_nonstat_eval(real mhd_dmhd[10], real r, real phi, real z, real t, int includemode, boozer_data *boozerdata, mhd_nonstat_data *mhddata, B_field_data *Bdata)
Evaluate the needed quantities from MHD mode for orbit following.
Magnetic field simulation data.
Boozer parameters on the target.
Bicubic interpolation struct.
MHD parameters on the target.
MHD parameters that will be offloaded to target.