MPS-Basic
Loading...
Searching...
No Matches
saver.hpp
Go to the documentation of this file.
1#pragma once
2
3#include "common.hpp"
4#include "mps.hpp"
6
7#include <filesystem>
8
17class Saver {
18private:
20 int fileNumber = 0;
21 std::filesystem::path dir;
22 bool outputVtkInBinary = false;
23
24public:
25 Saver() = default;
26
27 Saver(const std::filesystem::path& dir, const bool binaryFormat);
28
29 void save(const MPS& mps, const double time);
30
31 int getFileNumber() const;
32};
MPS simulation class.
Definition mps.hpp:25
bool outputVtkInBinary
Definition saver.hpp:22
std::filesystem::path dir
Definition saver.hpp:21
int getFileNumber() const
Definition saver.cpp:34
Saver()=default
int fileNumber
Definition saver.hpp:20
void save(const MPS &mps, const double time)
Definition saver.cpp:13
Saver(const std::filesystem::path &dir, const bool binaryFormat)
ParticlesExporter exporter
Definition saver.hpp:19