From be8e4d956ca1a73b553376e8bbd9aa1d5c2b368d Mon Sep 17 00:00:00 2001 From: Oliver Sander <sander@igpm.rwth-aachen.de> Date: Fri, 10 Oct 2014 18:11:31 +0000 Subject: [PATCH] Move the GlobalUniqueIndex class into the namespace Dune [[Imported from SVN: r9917]] --- dune/gfe/parallel/globalindex.hh | 5 +++++ dune/gfe/riemanniantrsolver.cc | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/dune/gfe/parallel/globalindex.hh b/dune/gfe/parallel/globalindex.hh index aebb05ec..38ebb47b 100644 --- a/dune/gfe/parallel/globalindex.hh +++ b/dune/gfe/parallel/globalindex.hh @@ -66,6 +66,9 @@ /* of a given codim in a given GridView, assuming they all have the same geometry, */ /* i.e. codim, type */ /*********************************************************************************************/ + +namespace Dune { + template<class GridView, int CODIM> class GlobalUniqueIndex { @@ -346,4 +349,6 @@ protected: IndexMap globalLocalMap_; }; +} // namespace Dune + #endif /* GLOBALUNIQUEINDEX_HH_ */ diff --git a/dune/gfe/riemanniantrsolver.cc b/dune/gfe/riemanniantrsolver.cc index 2ab1da2b..435bfcce 100644 --- a/dune/gfe/riemanniantrsolver.cc +++ b/dune/gfe/riemanniantrsolver.cc @@ -181,7 +181,7 @@ setup(const GridType& grid, // If we are on more than 1 processors, join all local transfer matrices on rank 0, // and construct a single global transfer operator there. - typedef GlobalUniqueIndex<typename GridType::LeafGridView, gridDim> LeafP1GUIndex; + typedef Dune::GlobalUniqueIndex<typename GridType::LeafGridView, gridDim> LeafP1GUIndex; LeafP1GUIndex p1Index(grid_->leafGridView()); typedef typename TruncatedCompressedMGTransfer<CorrectionType>::TransferOperatorType TransferOperatorType; @@ -198,7 +198,7 @@ setup(const GridType& grid, // If we are on more than 1 processors, join all local transfer matrices on rank 0, // and construct a single global transfer operator there. - typedef GlobalUniqueIndex<typename GridType::LevelGridView, gridDim> LevelGUIndex; + typedef Dune::GlobalUniqueIndex<typename GridType::LevelGridView, gridDim> LevelGUIndex; LevelGUIndex fineGUIndex(grid_->levelGridView(i+2)); LevelGUIndex coarseGUIndex(grid_->levelGridView(i+1)); @@ -221,7 +221,7 @@ setup(const GridType& grid, // If we are on more than 1 processors, join all local transfer matrices on rank 0, // and construct a single global transfer operator there. - typedef GlobalUniqueIndex<typename GridType::LevelGridView, gridDim> LevelGUIndex; + typedef Dune::GlobalUniqueIndex<typename GridType::LevelGridView, gridDim> LevelGUIndex; LevelGUIndex fineGUIndex(grid_->levelGridView(i+1)); LevelGUIndex coarseGUIndex(grid_->levelGridView(i)); -- GitLab