Alsvinn
0.5.3
The fast FVM simulator with UQ support
|
The QueueWriter class writes the data to a blocking queue. More...
#include <alsfvm/io/QueueWriter.hpp>
Public Member Functions | |
QueueWriter (size_t queueLength, alsfvm::shared_ptr< volume::VolumeFactory > &volumeFactory) | |
virtual void | write (const volume::Volume &conservedVariables, const grid::Grid &grid, const simulator::TimestepInformation ×tepInformation) override |
write writes the data to the queue More... | |
void | pop (std::function< void(const volume::Volume &)> handler) |
![]() | |
virtual | ~Writer () |
virtual void | finalize (const grid::Grid &grid, const simulator::TimestepInformation ×tepInformation) |
This method should be called at the end of the simulation. More... | |
void | addAttributes (const std::string &nameOfAttributes, const boost::property_tree::ptree &attributes) |
Additional Inherited Members | |
![]() | |
static std::string | getClassName () |
![]() | |
std::map< std::string, boost::property_tree::ptree > | attributesMap |
The QueueWriter class writes the data to a blocking queue.
This is ideal if you have two simulations that need to communicate with eachother.
alsfvm::io::QueueWriter::QueueWriter | ( | size_t | queueLength, |
alsfvm::shared_ptr< volume::VolumeFactory > & | volumeFactory | ||
) |
queueLength | the number of elements to hold in the queue. |
volumeFactory | the volume factory to use to create new volumes. |
void alsfvm::io::QueueWriter::pop | ( | std::function< void(const volume::Volume &)> | handler | ) |
|
overridevirtual |
write writes the data to the queue
conservedVariables | the conservedVariables to write |
grid | the grid that is used (describes the whole domain) |
timestepInformation |
Implements alsfvm::io::Writer.