ASCOT5
Loading...
Searching...
No Matches
linint.h
Go to the documentation of this file.
1
12#ifndef LININT_H
13#define LININT_H
14#include "../offload_acc_omp.h"
15#include "../ascot5.h"
16#include "../spline/interp.h"
17
29
46
68
69void linint1D_init(linint1D_data* str, real* c,
70 int n_x, int bc_x,
71 real x_min, real x_max);
72
73void linint2D_init(linint2D_data* str, real* c,
74 int n_x, int n_y, int bc_x, int bc_y,
75 real x_min, real x_max,
76 real y_min, real y_max);
77
78void linint3D_init(linint3D_data* str, real* c,
79 int n_x, int n_y, int n_z,
80 int bc_x, int bc_y, int bc_z,
81 real x_min, real x_max,
82 real y_min, real y_max,
83 real z_min, real z_max);
84
85GPU_DECLARE_TARGET_SIMD_UNIFORM(str)
86int linint1D_eval_f(real* f, linint1D_data* str, real x);
87DECLARE_TARGET_END
88GPU_DECLARE_TARGET_SIMD_UNIFORM(str)
89int linint2D_eval_f(real* f, linint2D_data* str, real x, real y);
90DECLARE_TARGET_END
91GPU_DECLARE_TARGET_SIMD_UNIFORM(str)
93 real x, real y, real z);
94DECLARE_TARGET_END
95#endif
Main header file for ASCOT5.
double real
Definition ascot5.h:85
Spline interpolation library.
DECLARE_TARGET_END int linint3D_eval_f(real *f, linint3D_data *str, real x, real y, real z)
Evaluate interpolated value of 3D scalar field.
Definition linint3D.c:70
int linint1D_eval_f(real *f, linint1D_data *str, real x)
Evaluate interpolated value of 1D scalar field.
Definition linint1D.c:47
void linint2D_init(linint2D_data *str, real *c, int n_x, int n_y, int bc_x, int bc_y, real x_min, real x_max, real y_min, real y_max)
Initialize linear interpolation struct for scalar 2D data.
Definition linint2D.c:25
void linint1D_init(linint1D_data *str, real *c, int n_x, int bc_x, real x_min, real x_max)
Initialize linear interpolation struct for scalar 1D data.
Definition linint1D.c:22
void linint3D_init(linint3D_data *str, real *c, int n_x, int n_y, int n_z, int bc_x, int bc_y, int bc_z, real x_min, real x_max, real y_min, real y_max, real z_min, real z_max)
Initialize linear interpolation struct for scalar 3D data.
Definition linint3D.c:29
DECLARE_TARGET_END int linint2D_eval_f(real *f, linint2D_data *str, real x, real y)
Evaluate interpolated value of 2D scalar field.
Definition linint2D.c:58
1D interpolation struct.
Definition linint.h:21
real x_max
Definition linint.h:25
real x_min
Definition linint.h:24
real * c
Definition linint.h:27
real x_grid
Definition linint.h:26
2D interpolation struct.
Definition linint.h:33
real y_grid
Definition linint.h:43
real y_max
Definition linint.h:42
real x_max
Definition linint.h:39
real x_min
Definition linint.h:38
real y_min
Definition linint.h:41
real x_grid
Definition linint.h:40
real * c
Definition linint.h:44
3D interpolation struct.
Definition linint.h:50
real z_max
Definition linint.h:64
real x_max
Definition linint.h:58
real y_grid
Definition linint.h:62
real x_min
Definition linint.h:57
real y_max
Definition linint.h:61
real z_grid
Definition linint.h:65
real * c
Definition linint.h:66
real z_min
Definition linint.h:63
real x_grid
Definition linint.h:59
real y_min
Definition linint.h:60