21 #include <condition_variable> 44 alsfvm::shared_ptr<volume::VolumeFactory>& volumeFactory);
61 std::vector<alsfvm::shared_ptr<volume::Volume> > allocatedVolumes;
64 std::queue<alsfvm::shared_ptr<volume::Volume> > waitingVolumes;
66 alsfvm::shared_ptr<volume::VolumeFactory> volumeFactory;
70 std::condition_variable conditionVariable;
virtual void write(const volume::Volume &conservedVariables, const grid::Grid &grid, const simulator::TimestepInformation ×tepInformation) override
write writes the data to the queue
Definition: QueueWriter.cpp:28
The Volume class represents a volume (a collection of cells with values for each cell (eg...
Definition: Volume.hpp:30
const grid::Grid & grid
Definition: NumericalFluxFactory.cpp:104
The QueueWriter class writes the data to a blocking queue.
Definition: QueueWriter.hpp:34
The Writer class is an abstract interface to represent output writers.
Definition: Writer.hpp:28
void pop(std::function< void(const volume::Volume &)> handler)
Definition: QueueWriter.cpp:55
Various utility functions to implement the tecno flux.
Definition: types.hpp:30
QueueWriter(size_t queueLength, alsfvm::shared_ptr< volume::VolumeFactory > &volumeFactory)
Definition: QueueWriter.cpp:21