19#define MHD_INCLUDE_ALL -1
64 real** offload_array);
66 real** offload_array);
70DECLARE_TARGET_SIMD_UNIFORM(boozerdata, mhddata, Bdata, includemode)
74DECLARE_TARGET_SIMD_UNIFORM(boozerdata, mhddata, Bdata, pertonly,\
77 real t,
int pertonly,
int includemode,
80DECLARE_TARGET_SIMD_UNIFORM(mhddata)
82DECLARE_TARGET_SIMD_UNIFORM(mhddata)
84DECLARE_TARGET_SIMD_UNIFORM(mhddata)
86DECLARE_TARGET_SIMD_UNIFORM(mhddata)
88DECLARE_TARGET_SIMD_UNIFORM(mhddata)
90DECLARE_TARGET_SIMD_UNIFORM(mhddata)
Header file for B_field.c.
Main header file for ASCOT5.
Header file for boozer.c.
unsigned long int a5err
Simulation error flag.
a5err mhd_perturbations(real pert_field[7], real r, real phi, real z, real t, int pertonly, int includemode, boozer_data *boozerdata, mhd_data *mhddata, B_field_data *Bdata)
Evaluate perturbed fields Btilde, Etilde and potential Phi explicitly.
int mhd_get_n_modes(mhd_data *mhddata)
Return number of modes.
const real * mhd_get_amplitude(mhd_data *mhddata)
Return mode amplitudes.
const int * mhd_get_nmode(mhd_data *mhddata)
Return mode toroidal numbers.
const int * mhd_get_mmode(mhd_data *mhddata)
Return mode poloidal numbers.
const real * mhd_get_frequency(mhd_data *mhddata)
Return mode frequencies.
a5err mhd_eval(real mhd_dmhd[10], real r, real phi, real z, real t, int includemode, boozer_data *boozerdata, mhd_data *mhddata, B_field_data *Bdata)
Evaluate the needed quantities from MHD mode for orbit following.
int mhd_init(mhd_data *data, mhd_offload_data *offload_data, real *offload_array)
Initialize MHD data struct on target.
const real * mhd_get_phase(mhd_data *mhddata)
Return mode phases.
int mhd_init_offload(mhd_offload_data *offload_data, real **offload_array)
Load MHD data and prepare parameters.
void mhd_free_offload(mhd_offload_data *offload_data, real **offload_array)
Free offload array and reset parameters.
Header file for mhd_nonstat.c.
Header file for mhd_stat.c.
Magnetic field simulation data.
Boozer parameters on the target.
MHD parameters on the target.
MHD parameters that will be offloaded to target.
mhd_nonstat_offload_data nonstat
mhd_stat_offload_data stat
MHD stat parameters on the target.
MHD stat parameters that will be offloaded to target.