Better logic for paraFoam -nativeReader option
This commit is contained in:
parent
ac008a3ca0
commit
edfd6dae01
1 changed files with 5 additions and 8 deletions
13
bin/paraFoam
13
bin/paraFoam
|
@ -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
|
||||||
|
|
||||||
|
|
Reference in a new issue