mirror of
https://github.com/OPM/opm-simulators.git
synced 2026-09-05 04:40:19 -05:00
Makes CollectDataToIORank::localIndexMap_ have nonzero size when accessing.
While it may not produce memory errors it is semantically wrong to insert entries with random acces into a vector that has reserved enough memory to hold the values but still has size 0.
This commit is contained in:
@@ -223,7 +223,7 @@ namespace Ewoms
|
||||
|
||||
localIndexMap_.clear();
|
||||
const size_t gridSize = gridManager.grid().size( 0 );
|
||||
localIndexMap_.reserve( gridSize );
|
||||
localIndexMap_.resize( gridSize, -1 );
|
||||
|
||||
// store the local Cartesian index
|
||||
IndexMapType distributedCartesianIndex;
|
||||
|
||||
Reference in New Issue
Block a user