ASCOT5
Loading...
Searching...
No Matches
E_TC.h
Go to the documentation of this file.
1
7#ifndef E_TC_H
8#define E_TC_H
9
10#include "../offload_acc_omp.h"
11#include "../ascot5.h"
12#include "../error.h"
13#include "../B_field.h"
14
18typedef struct {
19 real Exyz[3];
23
27typedef struct {
30} E_TC_data;
31
32int E_TC_init_offload(E_TC_offload_data* offload_data,
33 real** offload_array);
34void E_TC_free_offload(E_TC_offload_data* offload_data,
35 real** offload_array);
36
37
38void E_TC_init(E_TC_data* Edata, E_TC_offload_data* offload_data,
39 real* offload_array);
40GPU_DECLARE_TARGET_SIMD_UNIFORM(Edata,Bdata)
41a5err E_TC_eval_E(real E[3], real r, real phi, real z, E_TC_data* Edata,
42 B_field_data* Bdata);
43DECLARE_TARGET_END
44#endif
Header file for B_field.c.
void E_TC_free_offload(E_TC_offload_data *offload_data, real **offload_array)
Free offload array and return null pointer.
Definition E_TC.c:53
a5err E_TC_eval_E(real E[3], real r, real phi, real z, E_TC_data *Edata, B_field_data *Bdata)
Evaluate electric field.
Definition E_TC.c:86
void E_TC_init(E_TC_data *Edata, E_TC_offload_data *offload_data, real *offload_array)
Initialize electric field simulation data.
Definition E_TC.c:66
int E_TC_init_offload(E_TC_offload_data *offload_data, real **offload_array)
Initialize electric field data and check inputs.
Definition E_TC.c:33
Main header file for ASCOT5.
double real
Definition ascot5.h:85
Error module for ASCOT5.
unsigned long int a5err
Simulation error flag.
Definition error.h:17
Magnetic field simulation data.
Definition B_field.h:63
Trivial Cartesian electric field simulation data.
Definition E_TC.h:27
real * Exyz
Definition E_TC.h:28
Trivial Cartesian electric field offload data.
Definition E_TC.h:18
int offload_array_length
Definition E_TC.h:21