From 38c1e9aedd3bbe1c62a018e7f6ea3bd86ac994c5 Mon Sep 17 00:00:00 2001 From: mattijs Date: Fri, 28 Oct 2011 15:24:25 +0100 Subject: [PATCH] ENH: cyclicGAMGInterface.C: cleaner algorithm --- .../cyclicGAMGInterface/cyclicGAMGInterface.C | 180 ++++-------------- 1 file changed, 33 insertions(+), 147 deletions(-) diff --git a/src/OpenFOAM/matrices/lduMatrix/solvers/GAMG/interfaces/cyclicGAMGInterface/cyclicGAMGInterface.C b/src/OpenFOAM/matrices/lduMatrix/solvers/GAMG/interfaces/cyclicGAMGInterface/cyclicGAMGInterface.C index e4d56022f0..39038f5f29 100644 --- a/src/OpenFOAM/matrices/lduMatrix/solvers/GAMG/interfaces/cyclicGAMGInterface/cyclicGAMGInterface.C +++ b/src/OpenFOAM/matrices/lduMatrix/solvers/GAMG/interfaces/cyclicGAMGInterface/cyclicGAMGInterface.C @@ -25,7 +25,8 @@ License #include "cyclicGAMGInterface.H" #include "addToRunTimeSelectionTable.H" -#include "Map.H" +#include "labelPair.H" +#include "HashTable.H" // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * // @@ -62,180 +63,65 @@ Foam::cyclicGAMGInterface::cyclicGAMGInterface ), fineCyclicInterface_(refCast(fineInterface)) { - // Make a lookup table of entries for owner/neighbour - Map > neighboursTable + // From coarse face to coarse cell + DynamicList