Better logic for paraFoam -nativeReader option

This commit is contained in:
Martin Beaudoin 2013-07-05 13:01:32 -04:00
parent ac008a3ca0
commit edfd6dae01

View file

@ -85,21 +85,18 @@ caseName=${PWD##*/}
if [ -n "$useNativeReader" ] if [ -n "$useNativeReader" ]
then then
caseFile="$caseName.foam" caseFileExt=".foam"
else else
caseFile="$caseName.OpenFOAM" caseFileExt=".OpenFOAM"
fi fi
caseFile="$caseName$caseFileExt"
fvControls="system" fvControls="system"
if [ -n "$regionName" ] if [ -n "$regionName" ]
then then
if [ -n "$useNativeReader" ] caseFile="$caseName{$regionName}$caseFileExt"
then
caseFile="$caseName{$regionName}.foam"
else
caseFile="$caseName{$regionName}.OpenFOAM"
fi
fvControls="$fvControls/$regionName" fvControls="$fvControls/$regionName"
fi fi