ASCOT5
Loading...
Searching...
No Matches
Functions
hdf5_nbi.c File Reference

Module for reading NBI data from HDF5 file. More...

#include <stdio.h>
#include <stdlib.h>
#include <hdf5.h>
#include <hdf5_hl.h>
#include "../ascot5.h"
#include "../nbi.h"
#include "../consts.h"
#include "hdf5_helpers.h"
#include "hdf5_nbi.h"

Go to the source code of this file.

Functions

int hdf5_nbi_init_offload (hid_t f, nbi_offload_data *offload_data, real **offload_array, char *qid)
 Initialize NBI offload data from HDF5 file.
 

Detailed Description

Module for reading NBI data from HDF5 file.

Definition in file hdf5_nbi.c.

Function Documentation

◆ hdf5_nbi_init_offload()

int hdf5_nbi_init_offload ( hid_t f,
nbi_offload_data * offload_data,
real ** offload_array,
char * qid )

Initialize NBI offload data from HDF5 file.

Parameters
fHDF5 file identifier for a file which is opened and closed outside of this function
offload_datapointer to offload data struct which is initialized here
offload_arraypointer to offload array which is allocated and initialized here
qidQID of the data that is to be read
Returns
zero if reading and initialization succeeded

Definition at line 27 of file hdf5_nbi.c.