ASCOT5
Loading...
Searching...
No Matches
Functions
hdf5_asigma.h File Reference

Header file for hdf5_asigma.c. More...

#include <hdf5.h>
#include "../ascot5.h"
#include "../asigma.h"

Go to the source code of this file.

Functions

int hdf5_asigma_init_offload (hid_t f, asigma_offload_data *offload_data, real **offload_array, char *qid)
 Read atomic data from HDF5 file.
 

Detailed Description

Header file for hdf5_asigma.c.

Definition in file hdf5_asigma.h.

Function Documentation

◆ hdf5_asigma_init_offload()

int hdf5_asigma_init_offload ( hid_t f,
asigma_offload_data * offload_data,
real ** offload_array,
char * qid )

Read atomic data from HDF5 file.

This function reads atomic cross-section (sigma) 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
qidQID of the data
Returns
Zero if reading and initialization of data succeeded

Definition at line 36 of file hdf5_asigma.c.