34 real** offload_array) {
37 *offload_array = NULL;
41 offload_data->
Exyz[0], offload_data->
Exyz[1],
42 offload_data->
Exyz[2]);
54 real** offload_array) {
56 *offload_array = NULL;
67 real* offload_array) {
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.
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.
void E_TC_init(E_TC_data *Edata, E_TC_offload_data *offload_data, real *offload_array)
Initialize electric field simulation data.
int E_TC_init_offload(E_TC_offload_data *offload_data, real **offload_array)
Initialize electric field data and check inputs.
Main header file for ASCOT5.
unsigned long int a5err
Simulation error flag.
#define math_vec_xyz2rpz(vxyz, vrpz, phi)
Transform vector from cartesian to cylindrical basis: vxyz -> vrpz, phi is the toroidal angle in radi...
Macros for printing console output.
#define print_out(v,...)
Print to standard output.
Magnetic field simulation data.
Trivial Cartesian electric field simulation data.
Trivial Cartesian electric field offload data.