29 real** offload_array,
char* qid) {
33 #define BOOZERPATH "/boozer/Boozer_XXXXXXXXXX/"
45 f, qid, __FILE__, __LINE__) ) {
return 1;}
47 f, qid, __FILE__, __LINE__) ) {
return 1;}
49 f, qid, __FILE__, __LINE__) ) {
return 1;}
51 f, qid, __FILE__, __LINE__) ) {
return 1;}
53 f, qid, __FILE__, __LINE__) ) {
return 1;}
55 f, qid, __FILE__, __LINE__) ) {
return 1;}
58 int nusize = offload_data->
npsi * offload_data->
ntheta;
59 int thetasize = offload_data->
npsi * offload_data->
nthetag;
60 int contoursize = offload_data->
nrzs;
63 *offload_array = (
real*) malloc(
64 (nusize + thetasize + 2 * contoursize) *
sizeof(
real) );
69 f, qid, __FILE__, __LINE__) ) {
return 1;}
71 &(*offload_array)[nusize],
72 f, qid, __FILE__, __LINE__) ) {
return 1;}
74 &(*offload_array)[nusize + thetasize],
75 f, qid, __FILE__, __LINE__) ) {
return 1;}
77 &(*offload_array)[nusize + thetasize
79 f, qid, __FILE__, __LINE__) ) {
return 1;}
int hdf5_boozer_init_offload(hid_t f, boozer_offload_data *offload_data, real **offload_array, char *qid)
Initialize Boozer offload 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.