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

Distribution HDF5 IO. More...

#include <stdlib.h>
#include <hdf5.h>
#include "../ascot5.h"
#include "../diag/dist_5D.h"
#include "../diag/dist_6D.h"
#include "../diag/dist_rho5D.h"
#include "../diag/dist_rho6D.h"
#include "../diag/dist_com.h"
#include "../math.h"
#include "../consts.h"
#include "hdf5_histogram.h"
#include "hdf5_helpers.h"
#include "hdf5_dist.h"

Go to the source code of this file.

Functions

int hdf5_dist_write_5D (hid_t f, char *path, dist_5D_offload_data *dist, real *hist)
 Write 5D distribution to an existing result group.
 
int hdf5_dist_write_6D (hid_t f, char *path, dist_6D_offload_data *dist, real *hist)
 Write 6D distribution to an existing result group.
 
int hdf5_dist_write_rho5D (hid_t f, char *path, dist_rho5D_offload_data *dist, real *hist)
 Write rho 5D distribution to an existing result group.
 
int hdf5_dist_write_rho6D (hid_t f, char *path, dist_rho6D_offload_data *dist, real *hist)
 Write rho 6D distribution to an existing result group.
 
int hdf5_dist_write_COM (hid_t f, char *path, dist_COM_offload_data *dist, real *hist)
 Write constants-of-motion distribution to an existing result group.
 

Detailed Description

Distribution HDF5 IO.

Definition in file hdf5_dist.c.

Function Documentation

◆ hdf5_dist_write_5D()

int hdf5_dist_write_5D ( hid_t f,
char * path,
dist_5D_offload_data * dist,
real * hist )

Write 5D distribution to an existing result group.

hdf5_dist.h

Parameters
fHDF5 file id
pathpath to group which is created here and where the data is stored
distpointer to distribution data struct
histpointer to distribution data

Definition at line 27 of file hdf5_dist.c.

◆ hdf5_dist_write_6D()

int hdf5_dist_write_6D ( hid_t f,
char * path,
dist_6D_offload_data * dist,
real * hist )

Write 6D distribution to an existing result group.

Parameters
fHDF5 file id
pathpath to group which is created here and where the data is stored
distpointer to distribution data struct
histpointer to distribution data

Definition at line 82 of file hdf5_dist.c.

◆ hdf5_dist_write_rho5D()

int hdf5_dist_write_rho5D ( hid_t f,
char * path,
dist_rho5D_offload_data * dist,
real * hist )

Write rho 5D distribution to an existing result group.

Parameters
fHDF5 file id
pathpath to group which is created here and where the data is stored
distpointer to distribution data struct
histpointer to distribution data

Definition at line 141 of file hdf5_dist.c.

◆ hdf5_dist_write_rho6D()

int hdf5_dist_write_rho6D ( hid_t f,
char * path,
dist_rho6D_offload_data * dist,
real * hist )

Write rho 6D distribution to an existing result group.

Parameters
fHDF5 file id
pathpath to group which is created here and where the data is stored
distpointer to distribution data struct
histpointer to distribution data

Definition at line 197 of file hdf5_dist.c.

◆ hdf5_dist_write_COM()

int hdf5_dist_write_COM ( hid_t f,
char * path,
dist_COM_offload_data * dist,
real * hist )

Write constants-of-motion distribution to an existing result group.

Parameters
fHDF5 file id
pathpath to group which is created here and where the data is stored
distpointer to distribution data struct
histpointer to distribution data

Definition at line 256 of file hdf5_dist.c.