Simulation output to hdf5 file format. More...
#include <H5Cpp.h>#include <string>#include "hdsim2d.hpp"#include "../../misc/int2str.hpp"#include "diagnostics.hpp"#include "../../tessellation/Delaunay.hpp"

Go to the source code of this file.
Classes | |
| class | Snapshot |
| Container for snapshot data. More... | |
| class | DiagnosticAppendix |
| Addition data to be written in a snapshot. More... | |
Functions | |
| Snapshot | read_hdf5_snapshot (const string &fname, bool mpioverride=false) |
| Load snapshot data into memory. More... | |
| void | write_snapshot_to_hdf5 (hdsim const &sim, string const &fname, const vector< DiagnosticAppendix *> &appendices=vector< DiagnosticAppendix *>()) |
| Writes the simulation data into an HDF5 file. More... | |
| void | read_hdf5_snapshot (ResetDump &dump, string const &fname, EquationOfState const *eos) |
| Reads an HDF5 snapshot file in order to restart the simulation. More... | |
| void | ConvertHDF5toBinary (string const &input, string const &output) |
| Converts an HDF5 snapshot file to the RICH custom reset binary format. More... | |
| void | WriteDelaunay (Delaunay const &tri, string const &filename) |
| Writes the Delaunay triangulation data into an HDF5 file. More... | |
| Snapshot | ReDistributeData (string const &filename, Tessellation const &proctess, size_t snapshot_number) |
| Reads an HDF5 snapshot file in order to restart the simulation with a different cpu number. More... | |
| Snapshot | ReDistributeData2 (string const &filename, Tessellation const &proctess, size_t snapshot_number, bool mpioverride=false) |
| Reads an HDF5 snapshot file in order to restart the simulation with a different cpu number. Slower but more robust then other method. More... | |
| void | WriteTess (Tessellation const &tess, string const &filename) |
| Writes the tessellation data into an HDF5 file. More... | |
Simulation output to hdf5 file format.
Definition in file hdf5_diagnostics.hpp.
| void ConvertHDF5toBinary | ( | string const & | input, |
| string const & | output | ||
| ) |
Converts an HDF5 snapshot file to the RICH custom reset binary format.
| input | The path to the HDF5 file |
| output | The path to the new binary file |
| Snapshot read_hdf5_snapshot | ( | const string & | fname, |
| bool | mpioverride = false |
||
| ) |
Load snapshot data into memory.
| fname | File name |
| mpioverride | Flag for not reading mpi data when MPI is on |
Definition at line 399 of file hdf5_diagnostics.cpp.

| void read_hdf5_snapshot | ( | ResetDump & | dump, |
| string const & | fname, | ||
| EquationOfState const * | eos | ||
| ) |
Reads an HDF5 snapshot file in order to restart the simulation.
| dump | The dump data structure, should be when passed |
| fname | The path to the HDF5 file |
| eos | The equation of state |
| Snapshot ReDistributeData | ( | string const & | filename, |
| Tessellation const & | proctess, | ||
| size_t | snapshot_number | ||
| ) |
Reads an HDF5 snapshot file in order to restart the simulation with a different cpu number.
| filename | File name |
| proctess | Tessellation of the processors |
| snapshot_number | Number of old cpus |
Definition at line 533 of file hdf5_diagnostics.cpp.

| Snapshot ReDistributeData2 | ( | string const & | filename, |
| Tessellation const & | proctess, | ||
| size_t | snapshot_number, | ||
| bool | mpioverride = false |
||
| ) |
Reads an HDF5 snapshot file in order to restart the simulation with a different cpu number. Slower but more robust then other method.
| filename | File name |
| proctess | Tessellation of the processors |
| snapshot_number | Number of old cpus |
| mpioverride | Flag for not reading mpi data when MPI is on |
Definition at line 645 of file hdf5_diagnostics.cpp.

| void write_snapshot_to_hdf5 | ( | hdsim const & | sim, |
| string const & | fname, | ||
| const vector< DiagnosticAppendix *> & | appendices = vector< DiagnosticAppendix *>() |
||
| ) |
Writes the simulation data into an HDF5 file.
| sim | The hdsim class of the simulation |
| fname | The name of the output file |
| appendices | Additional data to be written to snapshot |
Definition at line 271 of file hdf5_diagnostics.cpp.


| void WriteDelaunay | ( | Delaunay const & | tri, |
| string const & | filename | ||
| ) |
Writes the Delaunay triangulation data into an HDF5 file.
| tri | The triangulation |
| filename | The name of the output file |
Definition at line 503 of file hdf5_diagnostics.cpp.

| void WriteTess | ( | Tessellation const & | tess, |
| string const & | filename | ||
| ) |
Writes the tessellation data into an HDF5 file.
| tess | The tessellation |
| filename | The name of the output file |
Definition at line 675 of file hdf5_diagnostics.cpp.


1.8.13