mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
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. |
||
---|---|---|
.. | ||
autodiff | ||
polymer | ||
simulators |