mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-12-18 21:43:27 -06:00
63d8d5e781
Previously, we used the setStatus method to set wells that do not exist on the local grid to SHUT. Or at least this is what I thought that ```well.setStatus(timestep, SHUT)```. Unfortunately, my assumption was wrong. This was revealed while testing a parallel run with SPE9 that threw an expeption about "Elements must be added in weakly increasing order" in Opm::DynamicState::add(int, T). Seems like the method name is a bit misleading. As it turns out the WellManager has its own complete list of active wells (shut wells are simply left out). Therefore we can use this behaviour to our advantage: With this commit we not only exclude shut wells from the list, but also the ones that do not exist on the local grid. We even get rid of an ugly const_cast. Currently, I have running a parallel SPE9 test that has not yet aborted. |
||
---|---|---|
.. | ||
core |