42 real** offload_array) {
45 switch(offload_data->
type) {
58 print_err(
"Error: Unregonized neutral data type.");
65 *
sizeof(
real) / (1024.0*1024.0) );
82 real** offload_array) {
83 switch(offload_data->
type) {
107 real* offload_array) {
110 switch(offload_data->
type) {
113 &(offload_data->
N01D), offload_array);
117 &(offload_data->
N03D), offload_array);
121 print_err(
"Error: Unregonized neutral data type.\n");
151 switch(ndata->
type) {
193 switch(ndata->
type) {
227 switch(ndata->
type) {
int N0_1D_init_offload(N0_1D_offload_data *offload_data, real **offload_array)
Initialize offload data.
a5err N0_1D_eval_n0(real *n0, real rho, N0_1D_data *ndata)
Evaluate neutral density.
void N0_1D_free_offload(N0_1D_offload_data *offload_data, real **offload_array)
Free offload array and reset parameters.
a5err N0_1D_eval_t0(real *t0, real rho, N0_1D_data *ndata)
Evaluate neutral temperature.
void N0_1D_init(N0_1D_data *ndata, N0_1D_offload_data *offload_data, real *offload_array)
Initialize neutral data on target.
int N0_1D_get_n_species(N0_1D_data *ndata)
Return number of neutral species.
a5err N0_3D_eval_n0(real *n0, real r, real phi, real z, N0_3D_data *ndata)
Evaluate neutral density.
int N0_3D_get_n_species(N0_3D_data *ndata)
Return number of neutral species.
void N0_3D_free_offload(N0_3D_offload_data *offload_data, real **offload_array)
Free offload array and reset parameters.
a5err N0_3D_eval_t0(real *t0, real r, real phi, real z, N0_3D_data *ndata)
Evaluate neutral temperature.
void N0_3D_init(N0_3D_data *ndata, N0_3D_offload_data *offload_data, real *offload_array)
Initialize neutral data on target.
int N0_3D_init_offload(N0_3D_offload_data *offload_data, real **offload_array)
Initialize offload data.
Main header file for ASCOT5.
unsigned long int a5err
Simulation error flag.
static DECLARE_TARGET_SIMD a5err error_raise(error_type type, int line, error_file file)
Raise a new error.
int neutral_init_offload(neutral_offload_data *offload_data, real **offload_array)
Load neutral data and prepare parameters.
int neutral_get_n_species(neutral_data *ndata)
Get the number of neutral species.
void neutral_free_offload(neutral_offload_data *offload_data, real **offload_array)
Free offload array and reset parameters.
int neutral_init(neutral_data *ndata, neutral_offload_data *offload_data, real *offload_array)
Initialize neutral data struct on target.
a5err neutral_eval_n0(real *n0, real rho, real r, real phi, real z, real t, neutral_data *ndata)
Evaluate neutral density.
a5err neutral_eval_t0(real *t0, real rho, real r, real phi, real z, real t, neutral_data *ndata)
Evaluate neutral temperature.
Header file for neutral.c.
Macros for printing console output.
#define print_out(v,...)
Print to standard output.
#define print_err(...)
Print to standard error.