69 real** offload_array,
char* qid) {
72 #define ASGMPATH "/asigma/asigma_loc_XXXXXXXXXX/"
77 f, qid, __FILE__, __LINE__) ) {
return 1;}
81 f, qid, __FILE__, __LINE__) ) {
return 1;}
83 f, qid, __FILE__, __LINE__) ) {
return 1;}
85 f, qid, __FILE__, __LINE__) ) {
return 1;}
88 int N_reac = offload_data->
N_reac;
93 for(
int i_reac = 0; i_reac < N_reac; i_reac++) {
95 offload_data->
N_E[i_reac] * offload_data->
N_n[i_reac]
96 * offload_data->
N_T[i_reac];
101 real* E_min = &(*offload_array)[0*N_reac];
102 real* E_max = &(*offload_array)[1*N_reac];
103 real* n_min = &(*offload_array)[2*N_reac];
104 real* n_max = &(*offload_array)[3*N_reac];
105 real* T_min = &(*offload_array)[4*N_reac];
106 real* T_max = &(*offload_array)[5*N_reac];
107 real* sigma = &(*offload_array)[6*N_reac];
112 f, qid, __FILE__, __LINE__) ) {
return 1;}
114 f, qid, __FILE__, __LINE__) ) {
return 1;}
116 f, qid, __FILE__, __LINE__) ) {
return 1;}
118 f, qid, __FILE__, __LINE__) ) {
return 1;}
120 f, qid, __FILE__, __LINE__) ) {
return 1;}
123 f, qid, __FILE__, __LINE__) ) {
return 1;}
125 f, qid, __FILE__, __LINE__) ) {
return 1;}
127 f, qid, __FILE__, __LINE__) ) {
return 1;}
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;}
int hdf5_asigma_init_offload(hid_t f, asigma_offload_data *offload_data, real **offload_array, char *qid)
Read atomic data from HDF5 file.
int hdf5_asigma_read_loc(hid_t f, asigma_loc_offload_data *offload_data, real **offload_array, char *qid)
Read atomic sigma data from HDF5 file.
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.
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.