opm-simulators/opm
Markus Blatt b6c06738b5 Do not assume ordering in an unordered_map when gathering data.
The order of an unordered_map is quite unpredictable. (The same
order will only hold with the same hash function, comparison
operator, and insertion order). Therefore we cannot assume that
the global SimulationDataContainer uses the same order for the
cell data as the local one (This was done before this commit).
But we can assume that the local one uses the same order on every
process.

Before this commit data got mixed up (e.g. gasoilratio with surfacevol)
when gathering local data for writing eclipse files on the master
process. This commit fixes this.

Instead of iterating over the cell data of the global state when
writing the data received, we again iterate over the cell data of
the local state and simply use the key to request the correct data
for writing from the global state.
2016-07-25 17:17:06 +02:00
..
autodiff Do not assume ordering in an unordered_map when gathering data. 2016-07-25 17:17:06 +02:00
polymer making a forwarded updateListEconLimited in SimulatorBase. 2016-07-05 13:02:28 +02:00
simulators BlackoilOutputWriter rewritten to use opm-output 2016-06-07 10:15:07 +02:00