From 6ef906812cb656bde254779b43906e4cf126ae31 Mon Sep 17 00:00:00 2001
From: Henry <Henry>
Date: Wed, 8 Jan 2014 16:50:17 +0000
Subject: [PATCH] MGridGenGAMGAgglomeration: add support for weighting and
 iterating the agglomeration between adjacent processors to improve
 correspondence

---
 .../MGridGenGAMGAgglomeration.C               |  2 +-
 .../MGridGenGAMGAgglomeration.H               | 23 +++++++++++++++++++
 2 files changed, 24 insertions(+), 1 deletion(-)

diff --git a/src/fvAgglomerationMethods/MGridGenGamgAgglomeration/MGridGenGAMGAgglomeration.C b/src/fvAgglomerationMethods/MGridGenGamgAgglomeration/MGridGenGAMGAgglomeration.C
index 69dab59023b..1b468f825d1 100644
--- a/src/fvAgglomerationMethods/MGridGenGamgAgglomeration/MGridGenGAMGAgglomeration.C
+++ b/src/fvAgglomerationMethods/MGridGenGamgAgglomeration/MGridGenGAMGAgglomeration.C
@@ -2,7 +2,7 @@
   =========                 |
   \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
    \\    /   O peration     |
-    \\  /    A nd           | Copyright (C) 2011-2013 OpenFOAM Foundation
+    \\  /    A nd           | Copyright (C) 2011-2014 OpenFOAM Foundation
      \\/     M anipulation  |
 -------------------------------------------------------------------------------
 License
diff --git a/src/fvAgglomerationMethods/MGridGenGamgAgglomeration/MGridGenGAMGAgglomeration.H b/src/fvAgglomerationMethods/MGridGenGamgAgglomeration/MGridGenGAMGAgglomeration.H
index 5ed8e2a401c..6c0772358da 100644
--- a/src/fvAgglomerationMethods/MGridGenGamgAgglomeration/MGridGenGAMGAgglomeration.H
+++ b/src/fvAgglomerationMethods/MGridGenGamgAgglomeration/MGridGenGAMGAgglomeration.H
@@ -67,6 +67,29 @@ class MGridGenGAMGAgglomeration
 
     // Private Member Functions
 
+        void swap
+        (
+            const lduInterfacePtrsList& interfaces,
+            const labelUList& cellValues,
+            PtrList<labelList>& nbrValues
+        ) const;
+
+        void getNbrAgglom
+        (
+            const lduAddressing& addr,
+            const lduInterfacePtrsList& interfaces,
+            const PtrList<labelList>& nbrGlobalAgglom,
+            labelList& cellToNbrAgglom
+        ) const;
+
+        void detectSharedFaces
+        (
+            const lduMesh& mesh,
+            const labelList& value,
+            labelHashSet& sharedFaces
+        ) const;
+
+
         //- Construct the CSR format addressing
         void makeCompactCellFaceAddressingAndFaceWeights
         (
-- 
GitLab