ASCOT5
|
Module for reading wall input from HDF5 file. More...
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <hdf5.h>
#include <hdf5_hl.h>
#include "../wall.h"
#include "../wall/wall_2d.h"
#include "../wall/wall_3d.h"
#include "hdf5_wall.h"
#include "hdf5_helpers.h"
Go to the source code of this file.
Macros | |
#define | WPATH |
#define | WPATH "/wall/wall_2D_XXXXXXXXXX/" |
#define | WPATH "/wall/wall_3D_XXXXXXXXXX/" |
Functions | |
int | hdf5_wall_read_2D (hid_t f, wall_2d_offload_data *offload_data, real **offload_array, char *qid) |
Read 2D wall data from HDF5 file. | |
int | hdf5_wall_read_3D (hid_t f, wall_3d_offload_data *offload_data, real **offload_array, char *qid) |
Read 3D wall data from HDF5 file. | |
int | hdf5_wall_init_offload (hid_t f, wall_offload_data *offload_data, real **offload_array, int **int_offload_array, char *qid) |
Read wall data from HDF5 file. | |
Module for reading wall input from HDF5 file.
Wall data must be read by calling hdf5_wall_init_offload() contained in this module. This module contains reading routines for all wall data types.
Definition in file hdf5_wall.c.
#define WPATH |
Macro that is used to store paths to data groups
Definition at line 20 of file hdf5_wall.c.
#define WPATH "/wall/wall_2D_XXXXXXXXXX/" |
Macro that is used to store paths to data groups
Definition at line 20 of file hdf5_wall.c.
#define WPATH "/wall/wall_3D_XXXXXXXXXX/" |
Macro that is used to store paths to data groups
Definition at line 20 of file hdf5_wall.c.
int hdf5_wall_read_2D | ( | hid_t | f, |
wall_2d_offload_data * | offload_data, | ||
real ** | offload_array, | ||
char * | qid ) |
Read 2D wall data from HDF5 file.
f | HDF5 file from which data is read |
offload_data | pointer to offload data |
offload_array | pointer to offload array |
qid | QID of the data |
Definition at line 83 of file hdf5_wall.c.
int hdf5_wall_read_3D | ( | hid_t | f, |
wall_3d_offload_data * | offload_data, | ||
real ** | offload_array, | ||
char * | qid ) |
Read 3D wall data from HDF5 file.
f | HDF5 file from which data is read |
offload_data | pointer to offload data |
offload_array | pointer to offload array |
qid | QID of the data |
Definition at line 117 of file hdf5_wall.c.
int hdf5_wall_init_offload | ( | hid_t | f, |
wall_offload_data * | offload_data, | ||
real ** | offload_array, | ||
int ** | int_offload_array, | ||
char * | qid ) |
Read wall data from HDF5 file.
This function reads wall data with given qid while also initializing offload data and allocating and filling offload array. The file is opened and closed outside this function.
f | HDF5 file from which data is read |
offload_data | pointer to offload data |
offload_array | pointer to offload array |
int_offload_array | pointer to integer offload array |
qid | QID of the data |
Definition at line 42 of file hdf5_wall.c.