From de9d27cacee5411da5bf377fe699ad1662a6742a Mon Sep 17 00:00:00 2001 From: Henry Weller Date: Thu, 22 Mar 2018 11:35:30 +0000 Subject: [PATCH] foamJob: Added support for the new processorsNNN collated IO directory naming Resolves bug report https://bugs.openfoam.org/view.php?id=2884 --- bin/foamJob | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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