mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
BUG: foamJob does not detect collated format (#2514)
This commit is contained in:
22
bin/foamJob
22
bin/foamJob
@ -7,23 +7,10 @@
|
|||||||
# \\/ M anipulation |
|
# \\/ M anipulation |
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# Copyright (C) 2011-2015 OpenFOAM Foundation
|
# Copyright (C) 2011-2015 OpenFOAM Foundation
|
||||||
# Copyright (C) 2019 OpenCFD Ltd.
|
# Copyright (C) 2019-2022 OpenCFD Ltd.
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# License
|
# License
|
||||||
# This file is part of OpenFOAM.
|
# This file is part of OpenFOAM, distributed under GPL-3.0-or-later.
|
||||||
#
|
|
||||||
# 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/>.
|
|
||||||
#
|
#
|
||||||
# Script
|
# Script
|
||||||
# foamJob
|
# foamJob
|
||||||
@ -188,11 +175,12 @@ then
|
|||||||
# Check if case is decomposed
|
# Check if case is decomposed
|
||||||
if [ "$optCheck" = true ]
|
if [ "$optCheck" = true ]
|
||||||
then
|
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 "Case is not currently decomposed"
|
||||||
echo "Try decomposing first with \"foamJob decomposePar\""
|
echo "Try decomposing first with \"foamJob decomposePar\""
|
||||||
exit 1
|
exit 1
|
||||||
}
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Locate mpirun
|
# Locate mpirun
|
||||||
|
|||||||
Reference in New Issue
Block a user