30 #define BOOZERPATH "/boozer/Boozer_XXXXXXXXXX/"
41 int ntheta, nthetag, nrzs, npsi;
44 f, qid, __FILE__, __LINE__) ) {
return 1;}
46 f, qid, __FILE__, __LINE__) ) {
return 1;}
48 f, qid, __FILE__, __LINE__) ) {
return 1;}
50 f, qid, __FILE__, __LINE__) ) {
return 1;}
52 f, qid, __FILE__, __LINE__) ) {
return 1;}
54 f, qid, __FILE__, __LINE__) ) {
return 1;}
59 real* nu = (
real*) malloc( npsi * ntheta *
sizeof(
real) );
60 real* theta = (
real*) malloc( npsi * nthetag *
sizeof(
real) );
62 f, qid, __FILE__, __LINE__) ) {
return 1;}
64 f, qid, __FILE__, __LINE__) ) {
return 1;}
66 f, qid, __FILE__, __LINE__) ) {
return 1;}
68 f, qid, __FILE__, __LINE__) ) {
return 1;}
70 int err =
boozer_init(data, npsi, psimin, psimax, ntheta, nthetag,
71 nu, theta, nrzs, rs, zs);
int boozer_init(boozer_data *data, int npsi, real psi_min, real psi_max, int ntheta, int nthetag, real *nu, real *theta, int nrzs, real *rs, real *zs)
Initialize boozer coordinate transformation.
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.