ASCOT5
Loading...
Searching...
No Matches
N0_1D.h
Go to the documentation of this file.
1
5#ifndef N0_1D_H
6#define N0_1D_H
7#include "../ascot5.h"
8#include "../offload.h"
9#include "../linint/linint.h" /* for 1D interpolation routines */
10
23
24int N0_1D_init(N0_1D_data* data, int n_rho, real rho_min, real rho_max,
25 int n_species, int* anum, int* znum, int* maxwellian,
26 real* density, real* temperature);
27void N0_1D_free(N0_1D_data* data);
28void N0_1D_offload(N0_1D_data* data);
29DECLARE_TARGET_SIMD_UNIFORM(ndata)
30a5err N0_1D_eval_n0(real* n0, real rho, N0_1D_data* ndata);
31DECLARE_TARGET_SIMD_UNIFORM(ndata)
32a5err N0_1D_eval_t0(real* t0, real rho, N0_1D_data* ndata);
33DECLARE_TARGET_SIMD_UNIFORM(ndata)
35#endif
void N0_1D_offload(N0_1D_data *data)
Offload data to the accelerator.
Definition N0_1D.c:94
int N0_1D_init(N0_1D_data *data, int n_rho, real rho_min, real rho_max, int n_species, int *anum, int *znum, int *maxwellian, real *density, real *temperature)
Initialize data.
Definition N0_1D.c:30
void N0_1D_free(N0_1D_data *data)
Free allocated resources.
Definition N0_1D.c:79
a5err N0_1D_eval_n0(real *n0, real rho, N0_1D_data *ndata)
Evaluate neutral density.
Definition N0_1D.c:110
a5err N0_1D_eval_t0(real *t0, real rho, N0_1D_data *ndata)
Evaluate neutral temperature.
Definition N0_1D.c:136
int N0_1D_get_n_species(N0_1D_data *ndata)
Return number of neutral species.
Definition N0_1D.c:157
Main header file for ASCOT5.
double real
Definition ascot5.h:85
unsigned long int a5err
Simulation error flag.
Definition error.h:17
Linear interpolation library.
1D neutral parameters on the target
Definition N0_1D.h:14
int n_species
Definition N0_1D.h:15
int * anum
Definition N0_1D.h:16
linint1D_data * n0
Definition N0_1D.h:20
int * znum
Definition N0_1D.h:17
linint1D_data * t0
Definition N0_1D.h:21
int * maxwellian
Definition N0_1D.h:18
1D interpolation struct.
Definition linint.h:21