Skip to content
Snippets Groups Projects
Commit 32ec234e authored by Praetorius, Simon's avatar Praetorius, Simon
Browse files

added missing constructor to writer interface

parent c338f7ac
No related branches found
No related tags found
No related merge requests found
......@@ -59,15 +59,21 @@ namespace Dune
: VtkWriterInterface(std::make_shared<DataCollector>(gridView), format, datatype)
{}
/// \brief Constructor, wraps the passed DataCollector in a non-destroying shared_ptr
VtkWriterInterface (DataCollector& dataCollector,
Vtk::FormatTypes format = Vtk::BINARY,
Vtk::DataTypes datatype = Vtk::FLOAT32)
: VtkWriterInterface(stackobject_to_shared_ptr(dataCollector), format, datatype)
{}
/// \brief Constructor, stores the passed DataCollector
VtkWriterInterface (std::shared_ptr<DataCollector> dataCollector,
Vtk::FormatTypes format = Vtk::BINARY,
Vtk::DataTypes datatype = Vtk::FLOAT32)
: dataCollector_(std::move(dataCollector))
, format_(format)
, datatype_(datatype)
{
setFormat(format);
setDatatype(datatype);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment