Merge pull request #140 from blattms/fix-pushing-to-resized-array

Fixes pushing to resized array distributedCartesianIndex.
This commit is contained in:
Andreas Lauser
2017-03-10 11:41:25 +01:00
committed by GitHub

View File

@@ -247,7 +247,7 @@ namespace Ewoms
#else
int elemIdx = elemMapper.map( element );
#endif
distributedCartesianIndex.push_back( gridManager.cartesianIndex( elemIdx ) );
distributedCartesianIndex[elemIdx] = gridManager.cartesianIndex( elemIdx );
// only store interior element for collection
if( element.partitionType() == Dune :: InteriorEntity )