From dcb56db2f6750eb8396818125e03b9dc6d2ec4ef Mon Sep 17 00:00:00 2001
From: Simon Praetorius <simon.praetorius@tu-dresden.de>
Date: Fri, 27 Sep 2019 19:49:16 +0200
Subject: [PATCH] write the piecefiles in the data-directory

---
 dune/vtk/vtkwriterinterface.impl.hh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dune/vtk/vtkwriterinterface.impl.hh b/dune/vtk/vtkwriterinterface.impl.hh
index ab08feb..124d0d2 100644
--- a/dune/vtk/vtkwriterinterface.impl.hh
+++ b/dune/vtk/vtkwriterinterface.impl.hh
@@ -35,8 +35,8 @@ void VtkWriterInterface<GV,DC>
   filesystem::path data_dir = dir ? filesystem::path(*dir) : fn_dir;
   filesystem::path rel_dir = filesystem::relative(data_dir, fn_dir);
 
-  std::string serial_fn = fn_dir.string() + '/' + name.string();
-  std::string parallel_fn = data_dir.string() + '/' + name.string();
+  std::string serial_fn = data_dir.string() + '/' + name.string();
+  std::string parallel_fn = fn_dir.string() + '/' + name.string();
   std::string rel_fn = rel_dir.string() + '/' + name.string();
 
   if (comm().size() > 1)
-- 
GitLab