32 real** offload_array,
char* qid);
34 real** offload_array,
char* qid);
58 real** offload_array,
char* qid) {
97 real** offload_array,
char* qid) {
99 #define EPATH "/efield/E_1DS_XXXXXXXXXX/"
102 f, qid, __FILE__, __LINE__) ) {
return 1;}
104 f, qid, __FILE__, __LINE__) ) {
return 1;}
106 f, qid, __FILE__, __LINE__) ) {
return 1;}
109 *offload_array = (
real*) malloc(offload_data->
n_rho*
sizeof(
real));
112 f, qid, __FILE__, __LINE__) ) {
return 1;}
117 f, qid, __FILE__, __LINE__) ) {
return 1;}
120 for(
int i = 0; i < offload_data->
n_rho; i++) {
121 (*offload_array)[i] = r_eff * (*offload_array)[i];
147 real** offload_array,
char* qid) {
149 #define EPATH "/efield/E_TC_XXXXXXXXXX/"
151 *offload_array = NULL;
154 f, qid, __FILE__, __LINE__) ) {
return 1;}
int E_field_init_offload(E_field_offload_data *offload_data, real **offload_array)
Load electric field data and prepare parameters.
Header file for E_field.c.
Main header file for ASCOT5.
int hdf5_efield_read_1DS(hid_t f, E_1DS_offload_data *offload_data, real **offload_array, char *qid)
Read E1DS electric field data from HDF5 file.
int hdf5_efield_init_offload(hid_t f, E_field_offload_data *offload_data, real **offload_array, char *qid)
Read electric field data from HDF5 file.
int hdf5_efield_read_TC(hid_t f, E_TC_offload_data *offload_data, real **offload_array, char *qid)
Read magnetic field data of type E_TC.
Header file for hdf5_efielc.c.
herr_t hdf5_find_group(hid_t loc, const char *path)
Checks if given group exists within given hdf5 file. Negative value is returned if the group doesn't ...
int hdf5_read_double(const char *var, real *ptr, hid_t file, char *qid, const char *errfile, int errline)
Read double-valued data from ASCOT5 HDF5 file.
char * hdf5_gen_path(const char *original, char *qid, char *path)
Generate a valid path from a given template and qid.
int hdf5_read_int(const char *var, int *ptr, hid_t file, char *qid, const char *errfile, int errline)
Read int-valued data from ASCOT5 HDF5 file.
Header file for hdf5_helpers.h.
Macros for printing console output.
1D spline electric field parameters that will be offloaded to target
Trivial Cartesian electric field offload data.
Electric field offload data.