From 15d5fca144014d0b08411788d48066649b4946d8 Mon Sep 17 00:00:00 2001 From: mattijs <mattijs> Date: Thu, 25 May 2017 12:12:43 +0100 Subject: [PATCH] BUG: argList: -decomposeParDict handling in combination with -case. Related to #482 but this one is the handling inside argList. --- src/OpenFOAM/global/argList/argList.C | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/OpenFOAM/global/argList/argList.C b/src/OpenFOAM/global/argList/argList.C index 6873c7c1571..01b68a32de4 100644 --- a/src/OpenFOAM/global/argList/argList.C +++ b/src/OpenFOAM/global/argList/argList.C @@ -673,6 +673,17 @@ void Foam::argList::parse adjustOpt = true; source = source/"decomposeParDict"; } + + if + ( + !source.isAbsolute() + && !(source.size() && source[0] == '.') + ) + { + source = rootPath_/globalCase_/source; + adjustOpt = true; + } + // Could also check for absolute path, but shouldn't be needed if (adjustOpt) { -- GitLab