From bc411deaced078e3bff33216f1e2e4abf5c36520 Mon Sep 17 00:00:00 2001
From: Thomas Fischer <thomas.fischer@ufz.de>
Date: Tue, 5 May 2020 15:31:30 +0200
Subject: [PATCH] [PL] Output: Use prefix for pvd file name construction.

---
 ProcessLib/Output/Output.cpp | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/ProcessLib/Output/Output.cpp b/ProcessLib/Output/Output.cpp
index e6286d8b141..339e90bf819 100644
--- a/ProcessLib/Output/Output.cpp
+++ b/ProcessLib/Output/Output.cpp
@@ -110,9 +110,13 @@ Output::Output(std::string output_directory, std::string output_file_prefix,
 void Output::addProcess(ProcessLib::Process const& process,
                         const int process_id)
 {
-    auto const filename = BaseLib::joinPaths(
-        _output_directory,
-        _output_file_prefix + "_pcs_" + std::to_string(process_id) + ".pvd");
+    INFO("addProcess {}", _output_file_prefix);
+    auto const filename =
+        BaseLib::joinPaths(_output_directory,
+                           BaseLib::constructFormattedFileName(
+                               _output_file_prefix, process.getMesh().getName(),
+                               process_id, 0, 0) +
+                               ".pvd");
     _process_to_process_data.emplace(std::piecewise_construct,
                                      std::forward_as_tuple(&process),
                                      std::forward_as_tuple(filename));
-- 
GitLab