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

Use method 'size' instead of 'nGlobalEntity'

[[Imported from SVN: r9935]]
parent fb45603c
Branches
No related tags found
No related merge requests found
......@@ -85,8 +85,8 @@ namespace Dune {
//int localIndex = globalEdgeIndex.localIndex (*it->template subEntity<1>(i)) + gridView.size(2);
int localIndex = p2Mapper_.map(*it, 0, 0);
int globalIndex = globalElementIndex.index(*it->template subEntity<0>(0))
+ globalEdgeIndex.nGlobalEntity()
+ globalVertexIndex.nGlobalEntity();
+ globalEdgeIndex.size(1)
+ globalVertexIndex.size(2);
localGlobalMap_[localIndex] = globalIndex;
globalLocalMap_[globalIndex] = localIndex;
......
......@@ -102,7 +102,7 @@ public:
// Create occupation pattern in matrix
Dune::MatrixIndexSet occupationPattern;
occupationPattern.resize(guIndex1_.nGlobalEntity(), guIndex2_.nGlobalEntity());
occupationPattern.resize(localMapper1_.size(), localMapper2_.size());
for (size_t k = 0; k < globalMatrixEntries.size(); ++k)
occupationPattern.add(globalMatrixEntries[k].row, globalMatrixEntries[k].col);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment