From edfd6dae012906fed30b956ce8bb4077ffaf75e0 Mon Sep 17 00:00:00 2001 From: Martin Beaudoin Date: Fri, 5 Jul 2013 13:01:32 -0400 Subject: [PATCH] Better logic for paraFoam -nativeReader option --- bin/paraFoam | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/bin/paraFoam b/bin/paraFoam index 5459de2f1..17fbd62c5 100755 --- a/bin/paraFoam +++ b/bin/paraFoam @@ -85,21 +85,18 @@ caseName=${PWD##*/} if [ -n "$useNativeReader" ] then - caseFile="$caseName.foam" + caseFileExt=".foam" else - caseFile="$caseName.OpenFOAM" + caseFileExt=".OpenFOAM" fi +caseFile="$caseName$caseFileExt" + fvControls="system" if [ -n "$regionName" ] then - if [ -n "$useNativeReader" ] - then - caseFile="$caseName{$regionName}.foam" - else - caseFile="$caseName{$regionName}.OpenFOAM" - fi + caseFile="$caseName{$regionName}$caseFileExt" fvControls="$fvControls/$regionName" fi