44 real** offload_array);
46 real** offload_array);
48#pragma omp declare target
52DECLARE_TARGET_SIMD_UNIFORM(
asigma_data, reac_type, z_2, a_2,\
55 real* sigma,
int z_1,
int a_1,
int z_2,
int a_2,
real E_coll_per_amu,
57DECLARE_TARGET_SIMD_UNIFORM(
asigma_data, reac_type, z_2, a_2,\
60 real* sigmav,
int z_1,
int a_1,
real m_1,
int z_2,
int a_2,
63#pragma omp declare simd uniform(asigmadata, znum, anum, nspec, extrapolate)
65 real* ratecoeff,
int z_1,
int a_1,
real E,
real mass,
int nspec,
66 const int* znum,
const int* anum,
real T_0,
real* n_0,
int extrapolate,
68#pragma omp declare simd uniform(asigma_data, znum, anum, nion, extrapolate)
70 real* sigmav,
int z_1,
int a_1,
real E,
real mass,
int nion,
71 const int* znum,
const int* anum,
real T_e,
real* n_i,
int extrapolate,
73#pragma omp end declare target
Main header file for ASCOT5.
#define MAX_ATOMIC
Maximum number of atomic reactions.
a5err asigma_loc_eval_sigma(real *sigma, int z_1, int a_1, int z_2, int a_2, real E_coll_per_amu, int reac_type, int extrapolate, asigma_loc_data *asigma_data)
Evaluate atomic reaction cross-section.
a5err asigma_loc_eval_sigmav(real *sigmav, int z_1, int a_1, real m_1, int z_2, int a_2, real E, real T_e, real T_0, real n_i, int reac_type, int extrapolate, asigma_loc_data *asigma_data)
Evaluate atomic reaction rate coefficient.
void asigma_loc_free_offload(asigma_loc_offload_data *offload_data, real **offload_array)
Free offload array and reset parameters.
a5err asigma_loc_eval_cx(real *ratecoeff, int z_1, int a_1, real E, real mass, int nspec, const int *znum, const int *anum, real T_0, real *n_0, int extrapolate, asigma_loc_data *asigmadata)
Evaluate atomic reaction rate coefficient.
void asigma_loc_init(asigma_loc_data *asigma_data, asigma_loc_offload_data *offload_data, real *offload_array)
Initialize atomic reaction data struct on target.
a5err asigma_loc_eval_bms(real *sigmav, int z_1, int a_1, real E, real mass, int nion, const int *znum, const int *anum, real T_e, real *n_i, int extrapolate, asigma_loc_data *asigma_data)
Evaluate beam stopping rate coefficient.
int asigma_loc_init_offload(asigma_loc_offload_data *offload_data, real **offload_array)
Initialize local file atomic data and check inputs.
unsigned long int a5err
Simulation error flag.
Spline interpolation library.
Atomic reaction simulation data.
Local-files atomic reaction simulation data.
Local-files atomic reaction offload data.
Cubic interpolation struct.
Bicubic interpolation struct.
Tricubic interpolation struct.