mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
This commit splits out the per-cell initial state derivation to two separate helper functions, equilibrateCellCentres() and cellLoop(). The latter manages the per-cell assignments to pertinent data members and calls an arbitrary "equilbration method" that is provided as a callback and which calculates per-cell phase pressures, phase saturations and mixing ratios (Rs/Rv). In turn, the equilibrateCellCentres() uses the cellLoop() to affect the existing equilibration procedure within a cell using values at the depths of the cell centres only.