From 31d95a14c8713bf539dc2e8028b44c9e234ac543 Mon Sep 17 00:00:00 2001 From: Hrvoje Jasak Date: Tue, 7 Dec 2010 15:15:46 +0000 Subject: [PATCH] Cleaning up idxtype mess --- .../MGridGenGAMGAgglomerate.C | 24 ++++++++++++------- .../MGridGenGAMGAgglomeration.H | 14 ++--------- 2 files changed, 17 insertions(+), 21 deletions(-) diff --git a/src/fvAgglomerationMethods/MGridGenGamgAgglomeration/MGridGenGAMGAgglomerate.C b/src/fvAgglomerationMethods/MGridGenGamgAgglomeration/MGridGenGAMGAgglomerate.C index 5545ce4c0..a5fcc6d68 100644 --- a/src/fvAgglomerationMethods/MGridGenGamgAgglomeration/MGridGenGAMGAgglomerate.C +++ b/src/fvAgglomerationMethods/MGridGenGamgAgglomeration/MGridGenGAMGAgglomerate.C @@ -31,10 +31,16 @@ Description #include "fvMesh.H" #include "syncTools.H" -//extern "C" -//{ -//# include "mgridgen.h" -//} +extern "C" +{ +# include "mgridgen.h" +# ifdef darwin +# undef FALSE +# undef TRUE +# endif + +#undef sign +} // * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * // @@ -42,8 +48,8 @@ void Foam::MGridGenGAMGAgglomeration:: makeCompactCellFaceAddressingAndFaceWeights ( const lduAddressing& fineAddressing, - List& cellCells, - List& cellCellOffsets, + labelList& cellCells, + labelList& cellCellOffsets, const vectorField& Si, List& faceWeights ) @@ -113,8 +119,8 @@ Foam::tmp Foam::MGridGenGAMGAgglomeration::agglomerate const label nFineCells = fineAddressing.size(); // Compact addressing for cellCells - List cellCells; - List cellCellOffsets; + labelList cellCells; + labelList cellCellOffsets; // Face weights = face areas of the internal faces List faceWeights; @@ -130,7 +136,7 @@ Foam::tmp Foam::MGridGenGAMGAgglomeration::agglomerate ); // MGridGen agglomeration options. - List options(4, 0); + labelList options(4, 0); options[0] = 4; // globular agglom options[1] = 6; // objective F3 and F2 options[2] = 128; // debugging output level diff --git a/src/fvAgglomerationMethods/MGridGenGamgAgglomeration/MGridGenGAMGAgglomeration.H b/src/fvAgglomerationMethods/MGridGenGamgAgglomeration/MGridGenGAMGAgglomeration.H index e26503074..f92fede7a 100644 --- a/src/fvAgglomerationMethods/MGridGenGamgAgglomeration/MGridGenGAMGAgglomeration.H +++ b/src/fvAgglomerationMethods/MGridGenGamgAgglomeration/MGridGenGAMGAgglomeration.H @@ -40,16 +40,6 @@ SourceFiles #include "fvMesh.H" #include "GAMGAgglomeration.H" -extern "C" -{ -# include "mgridgen.h" -# ifdef darwin -# undef FALSE -# undef TRUE -# endif -} - - // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // namespace Foam @@ -76,8 +66,8 @@ class MGridGenGAMGAgglomeration void makeCompactCellFaceAddressingAndFaceWeights ( const lduAddressing& fineAddressing, - List& cellCells, - List& cellCellOffsets, + labelList& cellCells, + labelList& cellCellOffsets, const vectorField& Si, List& faceWeights );