7#include "../offload_acc_omp.h"
65GPU_DECLARE_TARGET_SIMD_UNIFORM(Bdata)
68GPU_DECLARE_TARGET_SIMD_UNIFORM(Bdata)
72GPU_DECLARE_TARGET_SIMD_UNIFORM(Bdata)
76GPU_DECLARE_TARGET_SIMD_UNIFORM(Bdata)
79GPU_DECLARE_TARGET_SIMD_UNIFORM(Bdata)
83GPU_DECLARE_TARGET_SIMD_UNIFORM(Bdata)
DECLARE_TARGET_END a5err B_STS_eval_B_dB(real B_dB[12], real r, real phi, real z, B_STS_data *Bdata)
Evaluate magnetic field and its derivatives.
DECLARE_TARGET_END a5err B_STS_eval_rho_drho(real rho_drho[4], real r, real phi, real z, B_STS_data *Bdata)
Evaluate normalized poloidal flux rho and its derivatives.
DECLARE_TARGET_END a5err B_STS_get_axis_rz(real rz[2], B_STS_data *Bdata, real phi)
Return magnetic axis Rz-coordinates.
void B_STS_free_offload(B_STS_offload_data *offload_data, real **offload_array)
Free offload array.
void B_STS_init(B_STS_data *Bdata, B_STS_offload_data *offload_data, real *offload_array)
Initialize magnetic field data struct on target.
DECLARE_TARGET_END a5err B_STS_eval_psi_dpsi(real psi_dpsi[4], real r, real phi, real z, B_STS_data *Bdata)
Evaluate poloidal flux psi and its derivatives.
DECLARE_TARGET_END a5err B_STS_eval_B(real B[3], real r, real phi, real z, B_STS_data *Bdata)
Evaluate magnetic field.
int B_STS_init_offload(B_STS_offload_data *offload_data, real **offload_array)
Initialize magnetic field offload data.
a5err B_STS_eval_psi(real *psi, real r, real phi, real z, B_STS_data *Bdata)
Evaluate poloidal flux psi.
Main header file for ASCOT5.
unsigned long int a5err
Simulation error flag.
Spline interpolation library.
Linear interpolation library.
stellarator magnetic field parameters on the target
stellarator magnetic field parameters on the host
Tricubic interpolation struct.