13#include "offload_acc_omp.h"
62 int** int_offload_array);
64 int** int_offload_array);
67 real* offload_array,
int* int_offload_array);
69GPU_DECLARE_TARGET_SIMD_UNIFORM(w)
74GPU_DECLARE_TARGET_SIMD_UNIFORM(w)
Main header file for ASCOT5.
Wall model simulation data.
int int_offload_array_length
DECLARE_TARGET_END int wall_get_n_elements(wall_data *w)
Return the number of wall elements.
int wall_hit_wall(real r1, real phi1, real z1, real r2, real phi2, real z2, wall_data *w, real *w_coll)
Check if a given directed line segment intersects the wall.
void wall_free_offload(wall_offload_data *offload_data, real **offload_array, int **int_offload_array)
Free offload array and reset parameters.
int wall_init_offload(wall_offload_data *offload_data, real **offload_array, int **int_offload_array)
Load wall data and prepare parameters.
int wall_init(wall_data *w, wall_offload_data *offload_data, real *offload_array, int *int_offload_array)
Initialize wall data struct on target.
wall_type
Wall model types.
Header file for wall_2d.c.
Header file for wall_3d.c.