From 74fedcc53b630be0d1e1a933a51e77496a174a0d Mon Sep 17 00:00:00 2001 From: Liu Ming Date: Mon, 7 Mar 2016 09:58:17 +0800 Subject: [PATCH 1/2] Save PRT in the same folder as summary file. --- opm/autodiff/FlowMain.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opm/autodiff/FlowMain.hpp b/opm/autodiff/FlowMain.hpp index 527ec85ae..aace6ee3b 100644 --- a/opm/autodiff/FlowMain.hpp +++ b/opm/autodiff/FlowMain.hpp @@ -348,7 +348,7 @@ namespace Opm } else { baseName = path(fpath.filename()).string(); } - logFile_ = output_dir_ + "/" + baseName + ".PRT"; + logFile_ = baseName + ".PRT"; // Create Parser ParserPtr parser(new Parser()); { From c314c30e7991c9699785a6e702be90383b182938 Mon Sep 17 00:00:00 2001 From: Liu Ming Date: Fri, 1 Apr 2016 09:27:39 +0800 Subject: [PATCH 2/2] if output_dir exists, save PRT file in that folder. --- opm/autodiff/FlowMain.hpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/opm/autodiff/FlowMain.hpp b/opm/autodiff/FlowMain.hpp index b61605f58..57ed49e0e 100644 --- a/opm/autodiff/FlowMain.hpp +++ b/opm/autodiff/FlowMain.hpp @@ -373,7 +373,11 @@ namespace Opm } else { baseName = path(fpath.filename()).string(); } - logFile_ = baseName + ".PRT"; + if (param_.has("output_dir")) { + logFile_ = output_dir_ + "/" + baseName + ".PRT"; + } else { + logFile_ = baseName + ".PRT"; + } // Create Parser ParserPtr parser(new Parser()); {