ENH: foamGetDict: sneak in topoSetSourcesDict. See #2232

This commit is contained in:
mattijs
2021-10-07 10:56:13 +01:00
parent 3c0fef819b
commit 674a9a878f

View File

@ -7,7 +7,7 @@
# \\/ M anipulation | # \\/ M anipulation |
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# Copyright (C) 2018 OpenFOAM Foundation # Copyright (C) 2018 OpenFOAM Foundation
# Copyright (C) 2019-2020 OpenCFD Ltd. # Copyright (C) 2019-2021 OpenCFD Ltd.
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# License # License
# This file is part of OpenFOAM. # This file is part of OpenFOAM.
@ -204,11 +204,19 @@ findFiles()
then then
# No extension # No extension
findFilesInDirs "$prefix" findFilesInDirs "$prefix"
if [[ "$prefix" == topoSet* ]]
then
findFilesInDirs "topoSetSourcesDict"
fi
elif [ "$searchExt" = "<any>" ] elif [ "$searchExt" = "<any>" ]
then then
# No extension or any extension # No extension or any extension
findFilesInDirs "$prefix" findFilesInDirs "$prefix"
findFilesInDirs "${prefix}.*" findFilesInDirs "${prefix}.*"
if [[ "$prefix" == topoSet* ]]
then
findFilesInDirs "topoSetSourcesDict"
fi
else else
# With specific extension # With specific extension
findFilesInDirs "${prefix}.$searchExt" findFilesInDirs "${prefix}.$searchExt"