44 real** offload_array);
47 real** offload_array);
52GPU_DECLARE_TARGET_SIMD_UNIFORM(pls_data)
56GPU_DECLARE_TARGET_SIMD_UNIFORM(pls_data)
60GPU_DECLARE_TARGET_SIMD_UNIFORM(pls_data)
Main header file for ASCOT5.
#define MAX_SPECIES
Maximum number of plasma species.
unsigned long int a5err
Simulation error flag.
Spline interpolation library.
void plasma_1DS_free_offload(plasma_1DS_offload_data *offload_data, real **offload_array)
Free offload array and reset parameters.
DECLARE_TARGET_END a5err plasma_1DS_eval_dens(real *dens, real rho, int species, plasma_1DS_data *pls_data)
Evaluate plasma density.
DECLARE_TARGET_END a5err plasma_1DS_eval_densandtemp(real *dens, real *temp, real rho, plasma_1DS_data *pls_data)
Evaluate plasma density and temperature for all species.
int plasma_1DS_init_offload(plasma_1DS_offload_data *offload_data, real **offload_array)
Initialize 1DS plasma data and check inputs.
void plasma_1DS_init(plasma_1DS_data *pls_data, plasma_1DS_offload_data *offload_data, real *offload_array)
Initialize magnetic field data struct on target.
a5err plasma_1DS_eval_temp(real *temp, real rho, int species, plasma_1DS_data *pls_data)
Evaluate plasma temperature.
Cubic interpolation struct.
1D spline plasma parameters on the target
1D spline plasma parameters that will be offloaded to target