Skip to content
Snippets Groups Projects
Commit be8e4d95 authored by Oliver Sander's avatar Oliver Sander Committed by sander
Browse files

Move the GlobalUniqueIndex class into the namespace Dune

[[Imported from SVN: r9917]]
parent 39db86ed
No related branches found
No related tags found
No related merge requests found
...@@ -66,6 +66,9 @@ ...@@ -66,6 +66,9 @@
/* of a given codim in a given GridView, assuming they all have the same geometry, */ /* of a given codim in a given GridView, assuming they all have the same geometry, */
/* i.e. codim, type */ /* i.e. codim, type */
/*********************************************************************************************/ /*********************************************************************************************/
namespace Dune {
template<class GridView, int CODIM> template<class GridView, int CODIM>
class GlobalUniqueIndex class GlobalUniqueIndex
{ {
...@@ -346,4 +349,6 @@ protected: ...@@ -346,4 +349,6 @@ protected:
IndexMap globalLocalMap_; IndexMap globalLocalMap_;
}; };
} // namespace Dune
#endif /* GLOBALUNIQUEINDEX_HH_ */ #endif /* GLOBALUNIQUEINDEX_HH_ */
...@@ -181,7 +181,7 @@ setup(const GridType& grid, ...@@ -181,7 +181,7 @@ setup(const GridType& grid,
// If we are on more than 1 processors, join all local transfer matrices on rank 0, // If we are on more than 1 processors, join all local transfer matrices on rank 0,
// and construct a single global transfer operator there. // 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()); LeafP1GUIndex p1Index(grid_->leafGridView());
typedef typename TruncatedCompressedMGTransfer<CorrectionType>::TransferOperatorType TransferOperatorType; typedef typename TruncatedCompressedMGTransfer<CorrectionType>::TransferOperatorType TransferOperatorType;
...@@ -198,7 +198,7 @@ setup(const GridType& grid, ...@@ -198,7 +198,7 @@ setup(const GridType& grid,
// If we are on more than 1 processors, join all local transfer matrices on rank 0, // If we are on more than 1 processors, join all local transfer matrices on rank 0,
// and construct a single global transfer operator there. // 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 fineGUIndex(grid_->levelGridView(i+2));
LevelGUIndex coarseGUIndex(grid_->levelGridView(i+1)); LevelGUIndex coarseGUIndex(grid_->levelGridView(i+1));
...@@ -221,7 +221,7 @@ setup(const GridType& grid, ...@@ -221,7 +221,7 @@ setup(const GridType& grid,
// If we are on more than 1 processors, join all local transfer matrices on rank 0, // If we are on more than 1 processors, join all local transfer matrices on rank 0,
// and construct a single global transfer operator there. // 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 fineGUIndex(grid_->levelGridView(i+1));
LevelGUIndex coarseGUIndex(grid_->levelGridView(i)); LevelGUIndex coarseGUIndex(grid_->levelGridView(i));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment