mirror of
https://github.com/OpenFOAM/OpenFOAM-6.git
synced 2025-12-08 06:57:46 +00:00
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:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user