ASCOT5
|
Module for reading neutral data from HDF5 file. More...
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <hdf5.h>
#include <hdf5_hl.h>
#include "../ascot5.h"
#include "../neutral.h"
#include "../neutral/N0_1D.h"
#include "../neutral/N0_3D.h"
#include "../consts.h"
#include "../math.h"
#include "hdf5_neutral.h"
#include "hdf5_helpers.h"
Go to the source code of this file.
Macros | |
#define | NPATH |
#define | NPATH "/neutral/N0_1D_XXXXXXXXXX/" |
#define | NPATH "/neutral/N0_3D_XXXXXXXXXX/" |
Functions | |
int | hdf5_neutral_init_1D (hid_t f, N0_1D_data *data, char *qid) |
Load 1D neutral data from HDF5 file and initialize it. | |
int | hdf5_neutral_init_3D (hid_t f, N0_3D_data *data, char *qid) |
Load 3D neutral data from HDF5 file and initialize it. | |
int | hdf5_neutral_init (hid_t f, neutral_data *data, char *qid) |
Initialize neutral data from HDF5 file. | |
Module for reading neutral data from HDF5 file.
Neutral data must be read by calling hdf5_neutral_init_offload() contained in this module. This module contains reading routines for all neutral data types.
Definition in file hdf5_neutral.c.
#define NPATH |
Macro that is used to store paths to data groups
Definition at line 23 of file hdf5_neutral.c.
#define NPATH "/neutral/N0_1D_XXXXXXXXXX/" |
Macro that is used to store paths to data groups
Definition at line 23 of file hdf5_neutral.c.
#define NPATH "/neutral/N0_3D_XXXXXXXXXX/" |
Macro that is used to store paths to data groups
Definition at line 23 of file hdf5_neutral.c.
int hdf5_neutral_init_1D | ( | hid_t | f, |
N0_1D_data * | data, | ||
char * | qid ) |
Load 1D neutral data from HDF5 file and initialize it.
f | hdf5 file identifier |
data | pointer to the data struct |
qid | QID of the data that is to be read |
Definition at line 66 of file hdf5_neutral.c.
int hdf5_neutral_init_3D | ( | hid_t | f, |
N0_3D_data * | data, | ||
char * | qid ) |
Load 3D neutral data from HDF5 file and initialize it.
f | hdf5 file identifier |
data | pointer to the data struct |
qid | QID of the data that is to be read |
Definition at line 126 of file hdf5_neutral.c.
int hdf5_neutral_init | ( | hid_t | f, |
neutral_data * | data, | ||
char * | qid ) |
Initialize neutral data from HDF5 file.
f | HDF5 file identifier for a file which is opened and closed outside of this function |
data | pointer to the data struct which is initialized here |
qid | QID of the data that is to be read |
Definition at line 38 of file hdf5_neutral.c.