65 real** offload_array);
67 real** offload_array);
71GPU_DECLARE_TARGET_SIMD_UNIFORM(pls_data)
75GPU_DECLARE_TARGET_SIMD_UNIFORM(pls_data)
79GPU_DECLARE_TARGET_SIMD_UNIFORM(pls_data)
84GPU_DECLARE_TARGET_SIMD_UNIFORM(pls_data)
87GPU_DECLARE_TARGET_SIMD_UNIFORM(pls_data)
90GPU_DECLARE_TARGET_SIMD_UNIFORM(pls_data)
93GPU_DECLARE_TARGET_SIMD_UNIFORM(pls_data)
96GPU_DECLARE_TARGET_SIMD_UNIFORM(pls_data)
Main header file for ASCOT5.
unsigned long int a5err
Simulation error flag.
DECLARE_TARGET_END const int * plasma_get_species_znum(plasma_data *pls_data)
Get charge number of ion species.
int plasma_init(plasma_data *plasma_data, plasma_offload_data *offload_data, real *offload_array)
Initialize plasma data struct on target.
DECLARE_TARGET_END const int * plasma_get_species_anum(plasma_data *pls_data)
Get atomic mass number of ion species.
DECLARE_TARGET_END const real * plasma_get_species_mass(plasma_data *pls_data)
Get mass of all plasma species.
DECLARE_TARGET_END a5err plasma_eval_densandtemp(real *dens, real *temp, real rho, real r, real phi, real z, real t, plasma_data *pls_data)
Evaluate plasma density and temperature for all species.
a5err plasma_eval_temp(real *temp, real rho, real r, real phi, real z, real t, int species, plasma_data *pls_data)
Evaluate plasma temperature.
int plasma_init_offload(plasma_offload_data *offload_data, real **offload_array)
Load plasma data and prepare parameters.
DECLARE_TARGET_END a5err plasma_eval_dens(real *dens, real rho, real r, real phi, real z, real t, int species, plasma_data *pls_data)
Evaluate plasma density.
DECLARE_TARGET_END int plasma_get_n_species(plasma_data *pls_data)
Get the number of plasma species.
plasma_type
Plasma data types.
DECLARE_TARGET_END const real * plasma_get_species_charge(plasma_data *pls_data)
Get charge of all plasma species.
void plasma_free_offload(plasma_offload_data *offload_data, real **offload_array)
Free offload array and reset parameters.
Header file for plasma_1DS.c.
Header file for plasma_1D.c.
Header file for plasma_1Dt.c.
1D spline plasma parameters on the target
1D spline plasma parameters that will be offloaded to target
1D plasma parameters on the target
1D plasma parameters that will be offloaded to target
1D plasma parameters on the target
1D plasma parameters that will be offloaded to target
plasma_1Dt_data plasma_1Dt
plasma_1DS_data plasma_1DS
plasma_1DS_offload_data plasma_1DS
plasma_1D_offload_data plasma_1D
plasma_1Dt_offload_data plasma_1Dt