From 1882d3315ad36d88786d2e26d7f8004379a6b49f Mon Sep 17 00:00:00 2001 From: Markus Blatt Date: Fri, 11 Nov 2016 11:55:54 +0100 Subject: [PATCH] Do not throw for unrecognized file when merging log files. The regex we are using might also consider a file named bla.2.blub. In that case it is not nice to throw an exception. Instead we print a message to std::cerr. --- opm/simulators/ParallelFileMerger.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/opm/simulators/ParallelFileMerger.hpp b/opm/simulators/ParallelFileMerger.hpp index 58ddd0d6e..bceb2fe00 100644 --- a/opm/simulators/ParallelFileMerger.hpp +++ b/opm/simulators/ParallelFileMerger.hpp @@ -83,10 +83,10 @@ public: } else { - OPM_THROW(std::runtime_error, - "Unrecognized file with name " + std::cerr << "WARNING: Unrecognized file with name " << filename - << " from parallel run."); + << " that might stem from a parallel run." + << std::endl; } } }