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

Fixes pushing to resized array distributedCartesianIndex.
This commit is contained in:
Andreas Lauser authored and GitHub committed 2017-03-10 11:41:25 +01:00
commit 6dbdd387d6
1 file changed
+1 -1
+1 -1
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 )