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

Header file for hdf5_marker.c. More...

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

Go to the source code of this file.

Functions

int hdf5_marker_read (hid_t f, int *n, input_particle **p, char *qid)
 Read marker input.
 
int hdf5_marker_write_particle (hid_t f, int n, input_particle *p, char *qid)
 Write particle input.
 

Detailed Description

Header file for hdf5_marker.c.

Definition in file hdf5_marker.h.

Function Documentation

◆ hdf5_marker_read()

int hdf5_marker_read ( hid_t f,
int * n,
input_particle ** p,
char * qid )

Read marker input.

Reads all marker types and places them on input_particle array.

Parameters
fHDF5 file containing marker input
npointer where the number of markers that was read will be stored
ppointer to array where markers are stored
qidQID of the marker data
Returns
zero on success

Definition at line 41 of file hdf5_marker.c.

◆ hdf5_marker_write_particle()

int hdf5_marker_write_particle ( hid_t f,
int n,
input_particle * p,
char * qid )

Write particle input.

Write particles in the input_particle array to hdf5 file.

Parameters
fHDF5 file to be written
nnumber of markers to be stored
ppointer to array where markers are stored
qidQID for the marker data
Returns
zero on success

Definition at line 359 of file hdf5_marker.c.