From 93849cea0964fb40653535169a3d44c5862decdc Mon Sep 17 00:00:00 2001 From: Hrvoje Jasak Date: Wed, 1 May 2019 17:19:53 +0100 Subject: [PATCH] Bugfix: decomposeMesh offset. Vuko Vukcevic --- .../decomposeTools/finiteVolume/decomposeMesh.C | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/decompositionMethods/decomposeReconstruct/decomposeTools/finiteVolume/decomposeMesh.C b/src/decompositionMethods/decomposeReconstruct/decomposeTools/finiteVolume/decomposeMesh.C index 45c459f87..57fe4ec5b 100644 --- a/src/decompositionMethods/decomposeReconstruct/decomposeTools/finiteVolume/decomposeMesh.C +++ b/src/decompositionMethods/decomposeReconstruct/decomposeTools/finiteVolume/decomposeMesh.C @@ -639,6 +639,7 @@ void Foam::domainDecomposition::decomposeMesh(const bool filterEmptyPatches) // the list of inside boundaries for the owner // processor and try to find this inter-processor // patch. + cyclicParallel_ = true; // Insert inter-processor data for ownerProc and return // whether the neighbour was already present in the list @@ -647,6 +648,7 @@ void Foam::domainDecomposition::decomposeMesh(const bool filterEmptyPatches) ( ownerProc, // Processor to append to neighbourProc, // Processor to append + patchStart + patchFaceI, // Face index to append interProcBoundaries, @@ -661,7 +663,9 @@ void Foam::domainDecomposition::decomposeMesh(const bool filterEmptyPatches) ( neighbourProc, // Processor to append to ownerProc, // Processor to append - patchStart + patchFaceI, // Face index to append + + // Face index with offset to append + patchStart + cycOffset + patchFaceI, interProcBoundaries, interProcBFaces