mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
The "xvar" exists only if Gas is active. Therefore, we cannot extract that variable from "vars" unless we know that Gas is an active phase. Failing to do so would wrongfully increment 'nextvar' whence the final BHP variable would be an out-of-bounds access.