ASCOT5
Loading...
Searching...
No Matches
Macros | Functions
hdf5_options.h File Reference

Header file for hdf5_options.c. More...

#include "../simulate.h"
#include <hdf5.h>

Go to the source code of this file.

Macros

#define TOROIDAL_ANGLE_FILLER_VALUE   361
 
#define POLOIDAL_ANGLE_FILLER_VALUE   361
 
#define RADIAL_FILLER_VALUE   1000
 

Functions

int hdf5_options_read (hid_t f, sim_offload_data *sim, char *qid)
 Read options and diagnostics settings from HDF5 file.
 

Detailed Description

Header file for hdf5_options.c.

Definition in file hdf5_options.h.

Macro Definition Documentation

◆ TOROIDAL_ANGLE_FILLER_VALUE

#define TOROIDAL_ANGLE_FILLER_VALUE   361

Dummy value in poincare init

Definition at line 13 of file hdf5_options.h.

◆ POLOIDAL_ANGLE_FILLER_VALUE

#define POLOIDAL_ANGLE_FILLER_VALUE   361

Dummy value in poincare init

Definition at line 14 of file hdf5_options.h.

◆ RADIAL_FILLER_VALUE

#define RADIAL_FILLER_VALUE   1000

Dummy value in poincare init

Definition at line 15 of file hdf5_options.h.

Function Documentation

◆ hdf5_options_read()

int hdf5_options_read ( hid_t file,
sim_offload_data * sim,
char * qid )

Read options and diagnostics settings from HDF5 file.

This function reads options with given qid from HDF5 file. The file is opened and closed outside of this function.

The options are read directly to simulation offload data.

Parameters
filethe file where data is read
simpointer to simulation offload data
qidQID of the options to be read
Returns
zero if reading succeeded.

Definition at line 54 of file hdf5_options.c.