mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
This commit adds a new data member, seg_number_, that maps a linear segment index (0 .. #segments - 1) to the appropriate segment number (segment ID). This ensures that member function report() is able to produce segment results in terms of user-assigned segment numbers rather than linear indices internal to the simulator and its state variables. This, in turn, decouples the well state object from the output (summary/restart) code and makes the restart facility more self contained. Rewrite the unit test for WellStateFullyImplicitBlackoil to account for the new indexing scheme when assigning the synthetic segment results. While here, also abide by the file's naming convention for data members and locals.