mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: foamGetDict: sneak in topoSetSourcesDict. See #2232
This commit is contained in:
@ -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"
|
||||||
|
|||||||
Reference in New Issue
Block a user