26 int nion,
int* anum,
int* znum,
real* mass,
real* charge,
30GPU_DECLARE_TARGET_SIMD_UNIFORM(pls_data)
34GPU_DECLARE_TARGET_SIMD_UNIFORM(pls_data)
38GPU_DECLARE_TARGET_SIMD_UNIFORM(pls_data)
Main header file for ASCOT5.
unsigned long int a5err
Simulation error flag.
Spline interpolation library.
int plasma_1DS_init(plasma_1DS_data *data, int nrho, real rhomin, real rhomax, int nion, int *anum, int *znum, real *mass, real *charge, real *Te, real *Ti, real *ne, real *ni)
Initialize 1DS plasma data and check inputs.
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.
void plasma_1DS_free(plasma_1DS_data *data)
Free allocated resources.
void plasma_1DS_offload(plasma_1DS_data *data)
Offload data to the accelerator.
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