35GPU_DECLARE_TARGET_SIMD_UNIFORM(Bdata)
38GPU_DECLARE_TARGET_SIMD_UNIFORM(Bdata)
42GPU_DECLARE_TARGET_SIMD_UNIFORM(Bdata)
46GPU_DECLARE_TARGET_SIMD_UNIFORM(Bdata)
49GPU_DECLARE_TARGET_SIMD_UNIFORM(Bdata)
52GPU_DECLARE_TARGET_SIMD_UNIFORM(Bdata)
DECLARE_TARGET_END a5err B_2DS_eval_B_dB(real B_dB[12], real r, real phi, real z, B_2DS_data *Bdata)
Evaluate magnetic field and its derivatives.
a5err B_2DS_eval_psi(real *psi, real r, real phi, real z, B_2DS_data *Bdata)
Evaluate poloidal flux psi.
int B_2DS_init(B_2DS_data *data, int n_r, real r_min, real r_max, int n_z, real z_min, real z_max, real axis_r, real axis_z, real psi0, real psi1, real *psi, real *B_r, real *B_phi, real *B_z)
Initialize magnetic field data.
DECLARE_TARGET_END a5err B_2DS_eval_psi_dpsi(real psi_dpsi[4], real r, real phi, real z, B_2DS_data *Bdata)
Evaluate poloidal flux psi and its derivatives.
DECLARE_TARGET_END a5err B_2DS_eval_B(real B[3], real r, real phi, real z, B_2DS_data *Bdata)
Evaluate magnetic field.
DECLARE_TARGET_END a5err B_2DS_get_axis_rz(real rz[2], B_2DS_data *Bdata)
Return magnetic axis R-coordinate.
void B_2DS_offload(B_2DS_data *data)
Offload data to the accelerator.
void B_2DS_free(B_2DS_data *data)
Free allocated resources.
DECLARE_TARGET_END a5err B_2DS_eval_rho_drho(real rho_drho[4], real r, real phi, real z, B_2DS_data *Bdata)
Evaluate normalized poloidal flux rho and its derivatives.
Main header file for ASCOT5.
unsigned long int a5err
Simulation error flag.
Spline interpolation library.
2D magnetic field parameters
Bicubic interpolation struct.