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

Header file for hdf5_plasma.c. More...

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

Go to the source code of this file.

Functions

int hdf5_plasma_init_offload (hid_t f, plasma_offload_data *offload_data, real **offload_array, char *qid)
 Read plasma data from HDF5 file.
 

Detailed Description

Header file for hdf5_plasma.c.

Definition in file hdf5_plasma.h.

Function Documentation

◆ hdf5_plasma_init_offload()

int hdf5_plasma_init_offload ( hid_t f,
plasma_offload_data * offload_data,
real ** offload_array,
char * qid )

Read plasma data from HDF5 file.

This function reads plasma 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 44 of file hdf5_plasma.c.