BUG: foamJob does not detect collated format (#2514)

This commit is contained in:
Mark Olesen 2022-06-21 11:31:07 +02:00
parent 2b86a22f56
commit 48a50fec51

View File

@ -7,23 +7,10 @@
# \\/ M anipulation |
#------------------------------------------------------------------------------
# Copyright (C) 2011-2015 OpenFOAM Foundation
# Copyright (C) 2019 OpenCFD Ltd.
# Copyright (C) 2019-2022 OpenCFD Ltd.
#------------------------------------------------------------------------------
# License
# This file is part of OpenFOAM.
#
# OpenFOAM is free software: you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
# for more details.
#
# You should have received a copy of the GNU General Public License
# along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
# This file is part of OpenFOAM, distributed under GPL-3.0-or-later.
#
# Script
# foamJob
@ -188,11 +175,12 @@ then
# Check if case is decomposed
if [ "$optCheck" = true ]
then
[ -r "processor0" ] || [ -r "processors" ] || {
if [ "$(find . -maxdepth 1 \( -name 'processor0' -o -name 'processors*' \) -type d | wc -l)" -eq 0 ]
then
echo "Case is not currently decomposed"
echo "Try decomposing first with \"foamJob decomposePar\""
exit 1
}
fi
fi
# Locate mpirun