71 #define WPATH "/wall/wall_2D_XXXXXXXXXX/"
75 f, qid, __FILE__, __LINE__) ) {
return 1;}
100 #define WPATH "/wall/wall_3D_XXXXXXXXXX/"
104 f, qid, __FILE__, __LINE__) ) {
return 1;}
107 real* x1x2x3 = (
real*)malloc(3 * nelements *
sizeof(
real));
108 real* y1y2y3 = (
real*)malloc(3 * nelements *
sizeof(
real));
109 real* z1z2z3 = (
real*)malloc(3 * nelements *
sizeof(
real));
112 f, qid, __FILE__, __LINE__) ) {
return 1;}
114 f, qid, __FILE__, __LINE__) ) {
return 1;}
116 f, qid, __FILE__, __LINE__) ) {
return 1;}
118 int err =
wall_3d_init(data, nelements, x1x2x3, y1y2y3, z1z2z3);
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_wall_init(hid_t f, wall_data *data, char *qid)
Read wall data from HDF5 file.
int hdf5_wall_read_3D(hid_t f, wall_3d_data *data, char *qid)
Read 3D wall data from HDF5 file.
int hdf5_wall_read_2D(hid_t f, wall_2d_data *data, char *qid)
Read 2D wall data from HDF5 file.
Header file for hdf5_wall.c.
Wall model simulation data.
int wall_2d_init(wall_2d_data *data, int nelements, real *r, real *z)
Load 2D wall data and prepare parameters.
Header file for wall_2d.c.
int wall_3d_init(wall_3d_data *data, int nelements, real *x1x2x3, real *y1y2y3, real *z1z2z3)
Initialize 3D wall data and check inputs.
Header file for wall_3d.c.