mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Added test to ensure active gas phase.
This commit is contained in:
parent
92f20c6040
commit
1faf5da05b
@ -2126,6 +2126,9 @@ namespace {
|
||||
void
|
||||
FullyImplicitBlackoilSolver<T>::updatePhaseCondFromPrimalVariable()
|
||||
{
|
||||
if (! active_[Gas]) {
|
||||
OPM_THROW(std::logic_error, "updatePhaseCondFromPrimarVariable() logic requires active gas phase.");
|
||||
}
|
||||
const int nc = primalVariable_.size();
|
||||
for (int c = 0; c < nc; ++c) {
|
||||
phaseCondition_[c] = PhasePresence(); // No free phases.
|
||||
|
Loading…
Reference in New Issue
Block a user