Commit fb04f146 authored by Praetorius, Simon's avatar Praetorius, Simon
Browse files

correct merge error

parent a9ce4406
...@@ -91,7 +91,6 @@ namespace AMDiS ...@@ -91,7 +91,6 @@ namespace AMDiS
vtkWriter_->addVertexData(discreteFct_, Dune::VTK::FieldInfo(name_, VTKFieldType<Range>, VTKFieldSize<Range>)); vtkWriter_->addVertexData(discreteFct_, Dune::VTK::FieldInfo(name_, VTKFieldType<Range>, VTKFieldSize<Range>));
test_exit(dir_ == "." || filesystem::exists(dir_), "Output directory '{}' does not exist!",dir_); test_exit(dir_ == "." || filesystem::exists(dir_), "Output directory '{}' does not exist!",dir_);
filesystem::create_directories(dir_ + "/data");
} }
void init(std::string const&, tag::unknown) {} void init(std::string const&, tag::unknown) {}
...@@ -99,9 +98,7 @@ namespace AMDiS ...@@ -99,9 +98,7 @@ namespace AMDiS
/// Implements \ref FileWriterInterface::writeFiles /// Implements \ref FileWriterInterface::writeFiles
void writeFiles(AdaptInfo& adaptInfo, bool force) override void writeFiles(AdaptInfo& adaptInfo, bool force) override
{ {
test_exit(dir_ == "." || filesystem::exists(dir_), "Output directory '{}' does not exist!",dir_);
filesystem::create_directories(dir_ + "/_piecefiles"); filesystem::create_directories(dir_ + "/_piecefiles");
if (vtkSeqWriter_) if (vtkSeqWriter_)
vtkSeqWriter_->pwrite(adaptInfo.time(), filename_, dir_, "_piecefiles", mode_); vtkSeqWriter_->pwrite(adaptInfo.time(), filename_, dir_, "_piecefiles", mode_);
else if (vtkWriter_) else if (vtkWriter_)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment