From 44186850568cb41326d3e3031b5ba0fca53271eb Mon Sep 17 00:00:00 2001 From: Markus Blatt Date: Wed, 18 Jan 2017 16:29:48 +0100 Subject: [PATCH] Revert "Makes CollectDataToIORank::localIndexMap_ have nonzero size when accessing." This reverts commit dde79daf4ec2004148a58250c4c8af5390251689. 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. Therefore we need to reserve and later on push_back. --- ebos/collecttoiorank.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ebos/collecttoiorank.hh b/ebos/collecttoiorank.hh index 394dde800..86e79b935 100644 --- a/ebos/collecttoiorank.hh +++ b/ebos/collecttoiorank.hh @@ -229,7 +229,7 @@ namespace Ewoms localIndexMap_.clear(); const size_t gridSize = gridManager.grid().size( 0 ); - localIndexMap_.resize( gridSize, -1 ); + localIndexMap_.reserve( gridSize ); // store the local Cartesian index IndexMapType distributedCartesianIndex;