52GPU_DECLARE_TARGET_SIMD_UNIFORM(Bdata)
56GPU_DECLARE_TARGET_SIMD_UNIFORM(Bdata)
60GPU_DECLARE_TARGET_SIMD_UNIFORM(Bdata)
63GPU_DECLARE_TARGET_SIMD_UNIFORM(Bdata)
67GPU_DECLARE_TARGET_SIMD_UNIFORM(Bdata)
71GPU_DECLARE_TARGET_SIMD_UNIFORM(Bdata)
75GPU_DECLARE_TARGET_SIMD_UNIFORM(Bdata)
void B_field_offload(B_field_data *data)
Offload data to the accelerator.
DECLARE_TARGET_END a5err B_field_eval_B_dB(real B_dB[15], real r, real phi, real z, real t, B_field_data *Bdata)
Evaluate magnetic field and its derivatives.
DECLARE_TARGET_END a5err B_field_eval_B(real B[3], real r, real phi, real z, real t, B_field_data *Bdata)
Evaluate magnetic field.
a5err B_field_eval_psi(real *psi, real r, real phi, real z, real t, B_field_data *Bdata)
Evaluate poloidal flux psi.
void B_field_free(B_field_data *data)
Free allocated resources.
DECLARE_TARGET_END a5err B_field_eval_rho_drho(real rho_drho[4], real r, real phi, real z, B_field_data *Bdata)
Evaluate normalized poloidal flux rho and its derivatives.
DECLARE_TARGET_END a5err B_field_eval_psi_dpsi(real psi_dpsi[4], real r, real phi, real z, real t, B_field_data *Bdata)
Evaluate poloidal flux psi and its derivatives.
B_field_type
Magnetic field types.
DECLARE_TARGET_END a5err B_field_get_axis_rz(real rz[2], B_field_data *Bdata, real phi)
Return magnetic axis Rz-coordinates.
DECLARE_TARGET_END a5err B_field_eval_rho(real rho[2], real psi, B_field_data *Bdata)
Evaluate normalized poloidal flux rho and its psi derivative.
Main header file for ASCOT5.
unsigned long int a5err
Simulation error flag.
2D magnetic field parameters
3D magnetic field parameters
Analytic magnetic field parameters on the target.
stellarator magnetic field parameters on the target
TC magnetic field parameters on the target.
Magnetic field simulation data.