From 6eae520af725dfb2bb209c6f8cf6fe122bcaf310 Mon Sep 17 00:00:00 2001
From: mattijs <mattijs>
Date: Mon, 23 Dec 2024 14:48:43 +0000
Subject: [PATCH] BUG: pointBoundaryMesh: use correct db. Fixes #3291

---
 .../meshes/pointMesh/pointBoundaryMesh/pointBoundaryMesh.C     | 2 +-
 .../chtMultiRegionFoam/windshieldCondensation/Allrun           | 1 -
 .../chtMultiRegionFoam/windshieldCondensation/Allrun-parallel  | 3 +--
 3 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/src/OpenFOAM/meshes/pointMesh/pointBoundaryMesh/pointBoundaryMesh.C b/src/OpenFOAM/meshes/pointMesh/pointBoundaryMesh/pointBoundaryMesh.C
index 97990194a20..127342e8dc6 100644
--- a/src/OpenFOAM/meshes/pointMesh/pointBoundaryMesh/pointBoundaryMesh.C
+++ b/src/OpenFOAM/meshes/pointMesh/pointBoundaryMesh/pointBoundaryMesh.C
@@ -177,7 +177,7 @@ Foam::pointBoundaryMesh::pointBoundaryMesh
             "boundary",
             io.instance(),
             polyMesh::meshSubDir/pointMesh::meshSubDir,
-            io.db(),
+            m.thisDb(),
             io.readOpt(),
             io.writeOpt(),
             false   //io.registerObject()     // or always set to false?
diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/windshieldCondensation/Allrun b/tutorials/heatTransfer/chtMultiRegionFoam/windshieldCondensation/Allrun
index 940382c4de3..a13c16c18e9 100755
--- a/tutorials/heatTransfer/chtMultiRegionFoam/windshieldCondensation/Allrun
+++ b/tutorials/heatTransfer/chtMultiRegionFoam/windshieldCondensation/Allrun
@@ -16,7 +16,6 @@ runApplication subsetMesh c0 -patch walls -overwrite
 runApplication splitMeshRegions -cellZones -overwrite
 
 # create register face and cell zones
-rm -f log.topoSet.register
 runApplication -s register \
     topoSet -region cabin -dict system/topoSetDictRegister
 
diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/windshieldCondensation/Allrun-parallel b/tutorials/heatTransfer/chtMultiRegionFoam/windshieldCondensation/Allrun-parallel
index 89f2927ab81..b5403e5e1f8 100755
--- a/tutorials/heatTransfer/chtMultiRegionFoam/windshieldCondensation/Allrun-parallel
+++ b/tutorials/heatTransfer/chtMultiRegionFoam/windshieldCondensation/Allrun-parallel
@@ -16,8 +16,7 @@ runApplication subsetMesh c0 -patch walls -overwrite
 runApplication splitMeshRegions -cellZones -overwrite
 
 # create register face and cell zones
-rm -f log.topoSet.register
-runApplication -o -s register \
+runApplication -s register \
     topoSet -region cabin -dict system/topoSetDictRegister
 
 # set the initial fields
-- 
GitLab