ASCOT5
|
Read markers from HDF5 file. More...
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <hdf5.h>
#include <hdf5_hl.h>
#include "hdf5_helpers.h"
#include "../particle.h"
#include "../math.h"
#include "../print.h"
#include "../consts.h"
#include "hdf5_marker.h"
Go to the source code of this file.
Macros | |
#define | MRKPATH |
#define | MRKPATH "/marker/prt_XXXXXXXXXX/" |
#define | MRKPATH "/marker/gc_XXXXXXXXXX/" |
#define | MRKPATH "/marker/fl_XXXXXXXXXX/" |
Functions | |
int | hdf5_marker_read_particle (hid_t f, int *nmrk, input_particle **mrk, char *qid) |
Read particle input. | |
int | hdf5_marker_read_guiding_center (hid_t f, int *nmrk, input_particle **mrk, char *qid) |
Read guiding center input. | |
int | hdf5_marker_read_field_line (hid_t f, int *nmrk, input_particle **mrk, char *qid) |
Read field line input. | |
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. | |
Read markers from HDF5 file.
Markers must be read by calling hdf5_marker_init() contained in this module This module contains reading routines for all marker types.
Definition in file hdf5_marker.c.
#define MRKPATH |
Macro that is used to store paths to data groups
Definition at line 20 of file hdf5_marker.c.
#define MRKPATH "/marker/prt_XXXXXXXXXX/" |
Macro that is used to store paths to data groups
Definition at line 20 of file hdf5_marker.c.
#define MRKPATH "/marker/gc_XXXXXXXXXX/" |
Macro that is used to store paths to data groups
Definition at line 20 of file hdf5_marker.c.
#define MRKPATH "/marker/fl_XXXXXXXXXX/" |
Macro that is used to store paths to data groups
Definition at line 20 of file hdf5_marker.c.
int hdf5_marker_read_particle | ( | hid_t | f, |
int * | nmrk, | ||
input_particle ** | mrk, | ||
char * | qid ) |
Read particle input.
Reads particles and places them on input_particle array.
f | HDF5 file containing marker input |
nmrk | pointer where the number of markers that was read will be stored |
mrk | pointer to array where markers are stored |
qid | QID of the marker data |
Definition at line 87 of file hdf5_marker.c.
int hdf5_marker_read_guiding_center | ( | hid_t | f, |
int * | nmrk, | ||
input_particle ** | mrk, | ||
char * | qid ) |
Read guiding center input.
Reads guiding centers and places them on input_particle array.
f | HDF5 file containing marker input |
nmrk | pointer where the number of markers that was read will be stored |
mrk | pointer to array where markers are stored |
qid | QID of the marker data |
Definition at line 189 of file hdf5_marker.c.
int hdf5_marker_read_field_line | ( | hid_t | f, |
int * | nmrk, | ||
input_particle ** | mrk, | ||
char * | qid ) |
Read field line input.
Reads field lines and places them on input_particle array.
f | HDF5 file containing marker input |
nmrk | pointer where the number of markers that was read will be stored |
mrk | pointer to array where markers are stored |
qid | QID of the marker data |
Definition at line 289 of file hdf5_marker.c.
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.
f | HDF5 file containing marker input |
n | pointer where the number of markers that was read will be stored |
p | pointer to array where markers are stored |
qid | QID of the marker data |
Definition at line 41 of file hdf5_marker.c.
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.
f | HDF5 file to be written |
n | number of markers to be stored |
p | pointer to array where markers are stored |
qid | QID for the marker data |
Definition at line 359 of file hdf5_marker.c.