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