7#include "../offload_acc_omp.h"
59GPU_DECLARE_TARGET_SIMD_UNIFORM(Bdata)
62GPU_DECLARE_TARGET_SIMD_UNIFORM(Bdata)
66GPU_DECLARE_TARGET_SIMD_UNIFORM(Bdata)
70GPU_DECLARE_TARGET_SIMD_UNIFORM(Bdata)
73GPU_DECLARE_TARGET_SIMD_UNIFORM(Bdata)
77GPU_DECLARE_TARGET_SIMD_UNIFORM(Bdata)
DECLARE_TARGET_END a5err B_3DS_eval_B(real B[3], real r, real phi, real z, B_3DS_data *Bdata)
Evaluate magnetic field.
DECLARE_TARGET_END a5err B_3DS_eval_rho_drho(real rho_drho[4], real r, real phi, real z, B_3DS_data *Bdata)
Evaluate normalized poloidal flux rho and its derivatives.
void B_3DS_free_offload(B_3DS_offload_data *offload_data, real **offload_array)
Free offload array.
DECLARE_TARGET_END a5err B_3DS_eval_B_dB(real B_dB[12], real r, real phi, real z, B_3DS_data *Bdata)
Evaluate magnetic field and its derivatives.
DECLARE_TARGET_END a5err B_3DS_get_axis_rz(real rz[2], B_3DS_data *Bdata)
Return magnetic axis R-coordinate.
int B_3DS_init_offload(B_3DS_offload_data *offload_data, real **offload_array)
Initialize magnetic field offload data.
void B_3DS_init(B_3DS_data *Bdata, B_3DS_offload_data *offload_data, real *offload_array)
Initialize magnetic field data struct on target.
a5err B_3DS_eval_psi(real *psi, real r, real phi, real z, B_3DS_data *Bdata)
Evaluate poloidal flux psi.
DECLARE_TARGET_END a5err B_3DS_eval_psi_dpsi(real psi_dpsi[4], real r, real phi, real z, B_3DS_data *Bdata)
Evaluate poloidal flux psi and its derivatives.
Main header file for ASCOT5.
unsigned long int a5err
Simulation error flag.
Spline interpolation library.
3D magnetic field parameters on the target
3D magnetic field parameters on the host
Bicubic interpolation struct.
Tricubic interpolation struct.