Many, many more comments

This commit is contained in:
2024-12-04 17:15:04 +01:00
parent 8696517336
commit 03854339ca
100 changed files with 1702 additions and 49 deletions
+6 -1
View File
@@ -5,11 +5,16 @@
#include <vector>
#include "blitz/array.h"
// Class to handle hdf5 output
class Hdf5Writer {
public:
// the ".h5" is appened to the filename by default
Hdf5Writer(std::string directory = "./output",
std::string filename = "output");
// writing functions to write data to a HDF dataset specified by the path
// variable (format: path = "/Group1/Group2/.../GroupN/NameOfDataset")
// into the file specified by directory and filename
void write(const blitz::Array<double, 1>& data, std::string path);
void write(const blitz::Array<double, 2>& data, std::string path);
void write(const blitz::Array<double, 3>& data, std::string path);