ASCOT5
|
Module for reading MHD data from HDF5 file. More...
#include <stdlib.h>
#include <hdf5.h>
#include <hdf5_hl.h>
#include "../ascot5.h"
#include "../mhd.h"
#include "../mhd/mhd_stat.h"
#include "../mhd/mhd_nonstat.h"
#include "hdf5_helpers.h"
#include "hdf5_mhd.h"
Go to the source code of this file.
Macros | |
#define | MHDPATH |
#define | MHDPATH "/mhd/MHD_STAT_XXXXXXXXXX/" |
#define | MHDPATH "/mhd/MHD_NONSTAT_XXXXXXXXXX/" |
Functions | |
int | hdf5_mhd_read_stat (hid_t f, mhd_stat_offload_data *offload_data, real **offload_array, char *qid) |
Read stationary MHD data from HDF5 file. | |
int | hdf5_mhd_read_nonstat (hid_t f, mhd_nonstat_offload_data *offload_data, real **offload_array, char *qid) |
Read nonstationary MHD data from HDF5 file. | |
int | hdf5_mhd_init_offload (hid_t f, mhd_offload_data *offload_data, real **offload_array, char *qid) |
Initialize MHD offload data from HDF5 file. | |
Module for reading MHD data from HDF5 file.
Definition in file hdf5_mhd.c.
#define MHDPATH |
Macro that is used to store paths to data groups
Definition at line 16 of file hdf5_mhd.c.
#define MHDPATH "/mhd/MHD_STAT_XXXXXXXXXX/" |
Macro that is used to store paths to data groups
Definition at line 16 of file hdf5_mhd.c.
#define MHDPATH "/mhd/MHD_NONSTAT_XXXXXXXXXX/" |
Macro that is used to store paths to data groups
Definition at line 16 of file hdf5_mhd.c.
int hdf5_mhd_read_stat | ( | hid_t | f, |
mhd_stat_offload_data * | offload_data, | ||
real ** | offload_array, | ||
char * | qid ) |
Read stationary MHD 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 74 of file hdf5_mhd.c.
int hdf5_mhd_read_nonstat | ( | hid_t | f, |
mhd_nonstat_offload_data * | offload_data, | ||
real ** | offload_array, | ||
char * | qid ) |
Read nonstationary MHD 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 122 of file hdf5_mhd.c.
int hdf5_mhd_init_offload | ( | hid_t | f, |
mhd_offload_data * | offload_data, | ||
real ** | offload_array, | ||
char * | qid ) |
Initialize MHD offload data from HDF5 file.
f | HDF5 file identifier for a file which is opened and closed outside of this function |
offload_data | pointer to offload data struct which is initialized here |
offload_array | pointer to offload array which is allocated and initialized here |
qid | QID of the data that is to be read |
Definition at line 35 of file hdf5_mhd.c.