19 real** offload_array,
char* qid);
21 real** offload_array,
char* qid);
36 real** offload_array,
char* qid) {
75 real** offload_array,
char* qid) {
77 #define MHDPATH "/mhd/MHD_STAT_XXXXXXXXXX/"
81 f, qid, __FILE__, __LINE__) ) {
return 1;}
83 f, qid, __FILE__, __LINE__) ) {
return 1;}
85 f, qid, __FILE__, __LINE__) ) {
return 1;}
87 f, qid, __FILE__, __LINE__) ) {
return 1;}
89 f, qid, __FILE__, __LINE__) ) {
return 1;}
91 f, qid, __FILE__, __LINE__) ) {
return 1;}
93 f, qid, __FILE__, __LINE__) ) {
return 1;}
95 f, qid, __FILE__, __LINE__) ) {
return 1;}
97 f, qid, __FILE__, __LINE__) ) {
return 1;}
100 int datasize = offload_data->
nrho * offload_data->
n_modes;
101 *offload_array = (
real*) malloc( 2 * datasize *
sizeof(
real) );
105 f, qid, __FILE__, __LINE__) ) {
return 1;}
107 f, qid, __FILE__, __LINE__) ) {
return 1;}
123 real** offload_array,
char* qid) {
125 #define MHDPATH "/mhd/MHD_NONSTAT_XXXXXXXXXX/"
129 f, qid, __FILE__, __LINE__) ) {
return 1;}
131 f, qid, __FILE__, __LINE__) ) {
return 1;}
133 f, qid, __FILE__, __LINE__) ) {
return 1;}
135 f, qid, __FILE__, __LINE__) ) {
return 1;}
137 f, qid, __FILE__, __LINE__) ) {
return 1;}
139 f, qid, __FILE__, __LINE__) ) {
return 1;}
141 f, qid, __FILE__, __LINE__) ) {
return 1;}
143 f, qid, __FILE__, __LINE__) ) {
return 1;}
145 f, qid, __FILE__, __LINE__) ) {
return 1;}
147 f, qid, __FILE__, __LINE__) ) {
return 1;}
149 f, qid, __FILE__, __LINE__) ) {
return 1;}
151 f, qid, __FILE__, __LINE__) ) {
return 1;}
154 int datasize = offload_data->
nrho * offload_data->
ntime
156 *offload_array = (
real*) malloc( 2 * datasize *
sizeof(
real) );
160 f, qid, __FILE__, __LINE__) ) {
return 1;}
162 f, qid, __FILE__, __LINE__) ) {
return 1;}
Main header file for ASCOT5.
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.
int hdf5_mhd_read_stat(hid_t f, mhd_stat_offload_data *offload_data, real **offload_array, char *qid)
Read stationary MHD data from HDF5 file.
int hdf5_mhd_init_offload(hid_t f, mhd_offload_data *offload_data, real **offload_array, char *qid)
Initialize MHD offload data from HDF5 file.
int hdf5_mhd_read_nonstat(hid_t f, mhd_nonstat_offload_data *offload_data, real **offload_array, char *qid)
Read nonstationary MHD data from HDF5 file.
Header file for hdf5_mhd.c.
int mhd_init_offload(mhd_offload_data *offload_data, real **offload_array)
Load MHD data and prepare parameters.
Header file for mhd_nonstat.c.
Header file for mhd_stat.c.
MHD parameters that will be offloaded to target.
real omega_nm[MHD_MODES_MAX_NUM]
int nmode[MHD_MODES_MAX_NUM]
real amplitude_nm[MHD_MODES_MAX_NUM]
int mmode[MHD_MODES_MAX_NUM]
real phase_nm[MHD_MODES_MAX_NUM]
mhd_nonstat_offload_data nonstat
mhd_stat_offload_data stat
MHD stat parameters that will be offloaded to target.
int mmode[MHD_MODES_MAX_NUM]
real phase_nm[MHD_MODES_MAX_NUM]
int nmode[MHD_MODES_MAX_NUM]
real amplitude_nm[MHD_MODES_MAX_NUM]
real omega_nm[MHD_MODES_MAX_NUM]