From 674a9a878f2e444dfc7c6e353cb2f67c70c05de2 Mon Sep 17 00:00:00 2001
From: mattijs <mattijs>
Date: Thu, 7 Oct 2021 10:56:13 +0100
Subject: [PATCH] ENH: foamGetDict: sneak in topoSetSourcesDict. See #2232

---
 bin/foamGetDict | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

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