Finite Volume Solver
prototype
A framework to build finite volume solvers for the AG Klein at the Freie Universität Berlin.
|
This class stores a list of snapshots and returns proxy objects to those. More...
#include <DebugOutput.hpp>
Public Member Functions | |
DebugStorage ()=default | |
Initializes the storage. More... | |
bool | IsEnabled () const noexcept |
Checks if debug storage is enabled. More... | |
void | Enable () |
void | Disable () |
DebugSnapshotProxy | AddSnapshot (const std::string &snapshot_directory) |
Adds snapshot with given directory name to storage. More... | |
void | FlushData (const std::string &directory, int cycle=-1, Duration time_point=Duration(0.0)) |
Writes data to disk and clears all data present in the storage. More... | |
void | ClearAll () |
Deletes all currently stored snapshots in the debug storage. More... | |
Private Attributes | |
std::list< DebugSnapshot > | saved_snapshots_ |
List of snapshots. More... | |
bool | is_enabled_ |
If this is false no data will be saved. More... | |
int | cycle_ |
This class stores a list of snapshots and returns proxy objects to those.
As long as this class is in a disabled mode the returned proxy objects are invalid and subsequent calls to SaveData will have no effect. Only if this the storage is enabled debug data will be stored.
|
default |
Initializes the storage.
DebugSnapshotProxy fub::amrex::DebugStorage::AddSnapshot | ( | const std::string & | snapshot_directory | ) |
Adds snapshot with given directory name to storage.
|
inline |
Deletes all currently stored snapshots in the debug storage.
|
inline |
|
inline |
void fub::amrex::DebugStorage::FlushData | ( | const std::string & | directory, |
int | cycle = -1 , |
||
Duration | time_point = Duration(0.0) |
||
) |
Writes data to disk and clears all data present in the storage.
|
inlinenoexcept |
Checks if debug storage is enabled.
|
private |
|
private |
If this is false no data will be saved.
|
private |
List of snapshots.