36GPU_DECLARE_TARGET_SIMD_UNIFORM(Bdata)
39GPU_DECLARE_TARGET_SIMD_UNIFORM(Bdata)
42GPU_DECLARE_TARGET_SIMD_UNIFORM(Bdata)
46GPU_DECLARE_TARGET_SIMD_UNIFORM(Bdata)
50GPU_DECLARE_TARGET_SIMD_UNIFORM(Bdata)
53GPU_DECLARE_TARGET_SIMD_UNIFORM(Bdata)
DECLARE_TARGET_END a5err B_TC_eval_psi_dpsi(real psi_dpsi[4], real r, real phi, real z, B_TC_data *Bdata)
Evaluate poloidal flux psi and its derivatives.
DECLARE_TARGET_END a5err B_TC_get_axis_rz(real rz[2], B_TC_data *Bdata)
Return magnetic axis R-coordinate.
void B_TC_offload(B_TC_data *data)
Offload data to the accelerator.
DECLARE_TARGET_END a5err B_TC_eval_rho_drho(real rho_drho[4], real r, real phi, real z, B_TC_data *Bdata)
Evaluate normalized poloidal flux rho and its derivatives.
DECLARE_TARGET_END a5err B_TC_eval_B_dB(real B_dB[12], real r, real phi, real z, B_TC_data *Bdata)
Evaluate magnetic field and its derivatives.
int B_TC_init(B_TC_data *data, real axisr, real axisz, real psival, real rhoval, real B[3], real dB[9])
Initialize magnetic field data.
void B_TC_free(B_TC_data *data)
Free allocated resources.
DECLARE_TARGET_END a5err B_TC_eval_psi(real *psi, real r, real phi, real z, B_TC_data *Bdata)
Evaluate poloidal flux psi.
a5err B_TC_eval_B(real B[3], real r, real phi, real z, B_TC_data *Bdata)
Evaluate magnetic field.
Main header file for ASCOT5.
unsigned long int a5err
Simulation error flag.
TC magnetic field parameters on the target.