if output_dir exists, save PRT file in that folder.

This commit is contained in:
Liu Ming 2016-04-01 09:27:39 +08:00
parent 0108216a68
commit c314c30e79

View File

@ -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());
{