42 real** offload_array);
44 real** offload_array);
49GPU_DECLARE_TARGET_SIMD_UNIFORM(pls_data)
53GPU_DECLARE_TARGET_SIMD_UNIFORM(pls_data)
57GPU_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.
void plasma_1D_init(plasma_1D_data *pls_data, plasma_1D_offload_data *offload_data, real *offload_array)
Initialize magnetic field data struct on target.
DECLARE_TARGET_END a5err plasma_1D_eval_dens(real *temp, real rho, int species, plasma_1D_data *pls_data)
Evaluate plasma density.
DECLARE_TARGET_END a5err plasma_1D_eval_densandtemp(real *dens, real *temp, real rho, plasma_1D_data *pls_data)
Evaluate plasma density and temperature for all species.
void plasma_1D_free_offload(plasma_1D_offload_data *offload_data, real **offload_array)
Free offload array and reset parameters.
a5err plasma_1D_eval_temp(real *dens, real rho, int species, plasma_1D_data *pls_data)
Evaluate plasma temperature.
int plasma_1D_init_offload(plasma_1D_offload_data *offload_data, real **offload_array)
Initialize 1D plasma data and check inputs.
1D plasma parameters on the target
1D plasma parameters that will be offloaded to target