ASCOT5
Loading...
Searching...
No Matches
Macros | Functions
hdf5_wall.c File Reference

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.
 

Detailed Description

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.

Macro Definition Documentation

◆ WPATH [1/3]

#define WPATH

Macro that is used to store paths to data groups

Definition at line 20 of file hdf5_wall.c.

◆ WPATH [2/3]

#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.

◆ WPATH [3/3]

#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.

Function Documentation

◆ hdf5_wall_read_2D()

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.

Parameters
fHDF5 file from which data is read
offload_datapointer to offload data
offload_arraypointer to offload array
qidQID of the data
Returns
Zero if reading succeeded

Definition at line 83 of file hdf5_wall.c.

◆ hdf5_wall_read_3D()

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.

Parameters
fHDF5 file from which data is read
offload_datapointer to offload data
offload_arraypointer to offload array
qidQID of the data
Returns
Zero if reading succeeded

Definition at line 117 of file hdf5_wall.c.

◆ hdf5_wall_init_offload()

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.

Parameters
fHDF5 file from which data is read
offload_datapointer to offload data
offload_arraypointer to offload array
int_offload_arraypointer to integer offload array
qidQID of the data
Returns
Zero if reading and initialization of data succeeded

Definition at line 42 of file hdf5_wall.c.