foamGet: include controlDict.orig file in case check
This commit is contained in:
@ -3,7 +3,7 @@
|
||||
# ========= |
|
||||
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
# \\ / O peration | Website: https://openfoam.org
|
||||
# \\ / A nd | Copyright (C) 2018-2021 OpenFOAM Foundation
|
||||
# \\ / A nd | Copyright (C) 2018-2022 OpenFOAM Foundation
|
||||
# \\/ M anipulation |
|
||||
#------------------------------------------------------------------------------
|
||||
# License
|
||||
@ -234,8 +234,9 @@ done
|
||||
[ $# -eq 1 ] || error "missing argument: no file name/prefix <file> supplied"
|
||||
prefix="$1"
|
||||
|
||||
[ -s "system/controlDict" ] || \
|
||||
echo "Warning: cannot find OpenFOAM case directory (no system/controlDict file)"
|
||||
{ [ -s "system/controlDict" ] || [ -s "system/controlDict.orig" ] ; } || \
|
||||
echo "Warning: cannot find a system/controlDict file" \
|
||||
"- is this a case directory?"
|
||||
|
||||
files="$(findFiles "$searchDirs" "$prefix" "$ext")"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user