diff --git a/bin/foamJob b/bin/foamJob index fe637afe1..6b227f0a6 100755 --- a/bin/foamJob +++ b/bin/foamJob @@ -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