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" ]
|
||||
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
|
||||
|
||||
|
|
Reference in a new issue