29 int* z1,
int* a1,
int* z2,
int* a2,
int* reactype,
35#pragma omp declare target
36DECLARE_TARGET_SIMD_UNIFORM(
asigma_data, reac_type, z_2, a_2,\
39 real* sigma,
int z_1,
int a_1,
int z_2,
int a_2,
real E_coll_per_amu,
41DECLARE_TARGET_SIMD_UNIFORM(
asigma_data, reac_type, z_2, a_2,\
44 real* sigmav,
int z_1,
int a_1,
real m_1,
int z_2,
int a_2,
47#pragma omp declare simd uniform(asigmadata, znum, anum, nspec, extrapolate)
49 real* ratecoeff,
int z_1,
int a_1,
real E,
real mass,
int nspec,
50 const int* znum,
const int* anum,
real T_0,
real* n_0,
int extrapolate,
52#pragma omp declare simd uniform(asigma_data, znum, anum, nion, extrapolate)
54 real* sigmav,
int z_1,
int a_1,
real E,
real mass,
int nion,
55 const int* znum,
const int* anum,
real T_e,
real* n_i,
int extrapolate,
57#pragma omp end declare target
Main header file for ASCOT5.
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.
int asigma_loc_init(asigma_loc_data *data, int nreac, int *z1, int *a1, int *z2, int *a2, int *reactype, int *ne, real *emin, real *emax, int *nn, real *nmin, real *nmax, int *nT, real *Tmin, real *Tmax, real *sigma)
Initialize local file atomic data and check inputs.
void asigma_loc_free(asigma_loc_data *data)
Free allocated resources.
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_offload(asigma_loc_data *data)
Offload data to the accelerator.
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.
unsigned long int a5err
Simulation error flag.
Spline interpolation library.
Atomic reaction simulation data.
Local-files atomic reaction simulation data.
interp3D_data * BMSsigmav
Cubic interpolation struct.
Bicubic interpolation struct.
Tricubic interpolation struct.