Version 2, position dependent E/B, kinetic ions, boris mover, terminator
This commit is contained in:
Executable
+32
@@ -0,0 +1,32 @@
|
||||
#ifndef HDF5_WRITER_H
|
||||
#define HDF5_WRITER_H
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include "blitz/array.h"
|
||||
|
||||
class Hdf5Writer {
|
||||
public:
|
||||
Hdf5Writer(std::string directory = "./output",
|
||||
std::string filename = "output");
|
||||
|
||||
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);
|
||||
void write(const blitz::Array<double, 4>& data, std::string path);
|
||||
void write(const blitz::Array<long int, 4>& data, std::string path);
|
||||
void write(const blitz::TinyVector<double, 3>& data, std::string path);
|
||||
void write(const blitz::TinyVector<int, 3>& data, std::string path);
|
||||
void write(const std::vector<double>& data, std::string path);
|
||||
void write(int data, std::string path);
|
||||
void write(long int data, std::string path);
|
||||
void write(double data, std::string path);
|
||||
void write(const std::string& data, std::string path);
|
||||
|
||||
private:
|
||||
std::string absolute_filename_;
|
||||
void createFolder(std::string directory);
|
||||
void createFile(std::string absolute_filename);
|
||||
};
|
||||
|
||||
#endif /* HDF5_WRITER_H */
|
||||
Reference in New Issue
Block a user