11#include "offload_acc_omp.h"
73 real** offload_array);
75 real** offload_array);
80GPU_DECLARE_TARGET_SIMD_UNIFORM(Bdata)
84GPU_DECLARE_TARGET_SIMD_UNIFORM(Bdata)
88GPU_DECLARE_TARGET_SIMD_UNIFORM(Bdata)
91GPU_DECLARE_TARGET_SIMD_UNIFORM(Bdata)
95GPU_DECLARE_TARGET_SIMD_UNIFORM(Bdata)
99GPU_DECLARE_TARGET_SIMD_UNIFORM(Bdata)
103GPU_DECLARE_TARGET_SIMD_UNIFORM(Bdata)
int B_field_init_offload(B_field_offload_data *offload_data, real **offload_array)
Load magnetic field data and prepare parameters.
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.
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.
int B_field_init(B_field_data *Bdata, B_field_offload_data *offload_data, real *offload_array)
Initialize magnetic field data struct on target.
void B_field_free_offload(B_field_offload_data *offload_data, real **offload_array)
Free offload array and reset parameters.
Main header file for ASCOT5.
unsigned long int a5err
Simulation error flag.
2D magnetic field parameters on the target
2D magnetic field parameters that will be offloaded to target
3D magnetic field parameters on the target
3D magnetic field parameters on the host
Analytic magnetic field parameters on the target.
Analytic magnetic field parameters that will be offloaded to target.
stellarator magnetic field parameters on the target
stellarator magnetic field parameters on the host
TC magnetic field parameters on the target.
TC magnetic field parameters that will be offloaded to target.
Magnetic field simulation data.
Magnetic field offload data.