Revert "Make CollectDataIORank::localIndexMap_ as map from element to interior element index."

This reverts commit 09db2fd412abe4b8a2f52274bcc0041e4b20a94d.

Judging from ParallelDebugOutput.hh this should not be a map from element
index to interior element index, but an a list of indices of all interior
elements
This commit is contained in:
Markus Blatt
2017-01-18 16:25:46 +01:00
parent 41d258f1c8
commit 6893c8cbdd

View File

@@ -120,7 +120,6 @@ namespace Ewoms
indexMap.resize( localSize );
for( size_t i=0; i<localSize; ++i )
{
assert( localIndexMap_[ i ] != -1 );
const int id = distributedGlobalIndex_[ localIndexMap_[ i ] ];
indexMap[ i ] = globalPosition_[ id ] ;
#ifndef NDEBUG
@@ -234,7 +233,6 @@ namespace Ewoms
// store the local Cartesian index
IndexMapType distributedCartesianIndex;
int interiorElementIdx = 0;
distributedCartesianIndex.resize(gridSize, -1);
auto localView = gridManager.grid().leafGridView();
@@ -252,7 +250,7 @@ namespace Ewoms
// only store interior element for collection
if( element.partitionType() == Dune :: InteriorEntity )
{
localIndexMap_[elemIdx] = interiorElementIdx++;
localIndexMap_[elemIdx] = elemIdx;
}
}