mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
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.
This commit is contained in:
parent
6893c8cbdd
commit
4418685056
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user