42 real** offload_array) {
45 switch(offload_data->
type) {
61 print_err(
"Error: Unregonized electric field type.");
69 *
sizeof(
real) / (1024.0*1024.0) );
86 real** offload_array) {
87 switch(offload_data->
type) {
117 real* offload_array) {
120 switch(offload_data->
type) {
132 print_err(
"Error: Unregonized electric field type.\n");
170 switch(Edata->
type) {
Header file for B_field.c.
void E_1DS_free_offload(E_1DS_offload_data *offload_data, real **offload_array)
Free offload array and reset parameters.
int E_1DS_init_offload(E_1DS_offload_data *offload_data, real **offload_array)
Initialize 1DS electric field data.
void E_1DS_init(E_1DS_data *Edata, E_1DS_offload_data *offload_data, real *offload_array)
Initialize 1D spline electric field data struct on target.
a5err E_1DS_eval_E(real E[3], real r, real phi, real z, E_1DS_data *Edata, B_field_data *Bdata)
Evaluate 1D spline radial electric field.
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.
int E_field_init(E_field_data *Edata, E_field_offload_data *offload_data, real *offload_array)
Initialize electric field data struct on target.
int E_field_init_offload(E_field_offload_data *offload_data, real **offload_array)
Load electric field data and prepare parameters.
void E_field_free_offload(E_field_offload_data *offload_data, real **offload_array)
Free offload array and reset parameters.
a5err E_field_eval_E(real E[3], real r, real phi, real z, real t, E_field_data *Edata, B_field_data *Bdata)
Evaluate electric field.
Header file for E_field.c.
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.
Macros for printing console output.
#define print_out(v,...)
Print to standard output.
#define print_err(...)
Print to standard error.
Magnetic field simulation data.
Electric field simulation data.
Electric field offload data.