From c314c30e7991c9699785a6e702be90383b182938 Mon Sep 17 00:00:00 2001 From: Liu Ming Date: Fri, 1 Apr 2016 09:27:39 +0800 Subject: [PATCH] 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()); {