From 156839b16a85997f69f31066c9a16973bee98799 Mon Sep 17 00:00:00 2001
From: mattijs <mattijs>
Date: Fri, 27 Apr 2012 12:18:54 +0100
Subject: [PATCH] BUG: tetDecomposer: updated tet numbering

---
 .../polyTopoChange/polyTopoChange/tetDecomposer.C         | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/dynamicMesh/polyTopoChange/polyTopoChange/tetDecomposer.C b/src/dynamicMesh/polyTopoChange/polyTopoChange/tetDecomposer.C
index e8948c4fade..bdbd851527f 100644
--- a/src/dynamicMesh/polyTopoChange/polyTopoChange/tetDecomposer.C
+++ b/src/dynamicMesh/polyTopoChange/polyTopoChange/tetDecomposer.C
@@ -696,16 +696,16 @@ void Foam::tetDecomposer::setRefinement
 
 void Foam::tetDecomposer::updateMesh(const mapPolyMesh& map)
 {
-    inplaceRenumber(map.pointMap(), cellToPoint_);
-    inplaceRenumber(map.pointMap(), faceToPoint_);
+    inplaceRenumber(map.reversePointMap(), cellToPoint_);
+    inplaceRenumber(map.reversePointMap(), faceToPoint_);
 
     forAll(faceOwnerCells_, faceI)
     {
-        inplaceRenumber(map.cellMap(), faceOwnerCells_[faceI]);
+        inplaceRenumber(map.reverseCellMap(), faceOwnerCells_[faceI]);
     }
     forAll(faceNeighbourCells_, faceI)
     {
-        inplaceRenumber(map.cellMap(), faceNeighbourCells_[faceI]);
+        inplaceRenumber(map.reverseCellMap(), faceNeighbourCells_[faceI]);
     }
 }
 
-- 
GitLab