foamJob: Added support for the new processorsNNN collated IO directory naming

Resolves bug report https://bugs.openfoam.org/view.php?id=2884
This commit is contained in:
Henry Weller
2018-03-22 11:35:30 +00:00
parent 58b7c01dbd
commit de9d27cace

View File

@ -3,7 +3,7 @@
# ========= |
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
# \\ / O peration |
# \\ / A nd | Copyright (C) 2011-2017 OpenFOAM Foundation
# \\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
# \\/ M anipulation |
#-------------------------------------------------------------------------------
# License
@ -175,7 +175,7 @@ then
#
# Check if the case decomposed
#
if [ -r "processor0" -o -r "processors" ]
if [ -r "processor0" -o -r "processors" -o "$(echo processors[1-9]*)" != "processors[1-9]*" ]
then
NPROCS="$(foamDictionary -entry numberOfSubdomains -value system/decomposeParDict)"
else