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:
@@ -2126,6 +2126,9 @@ namespace {
|
|||||||
void
|
void
|
||||||
FullyImplicitBlackoilSolver<T>::updatePhaseCondFromPrimalVariable()
|
FullyImplicitBlackoilSolver<T>::updatePhaseCondFromPrimalVariable()
|
||||||
{
|
{
|
||||||
|
if (! active_[Gas]) {
|
||||||
|
OPM_THROW(std::logic_error, "updatePhaseCondFromPrimarVariable() logic requires active gas phase.");
|
||||||
|
}
|
||||||
const int nc = primalVariable_.size();
|
const int nc = primalVariable_.size();
|
||||||
for (int c = 0; c < nc; ++c) {
|
for (int c = 0; c < nc; ++c) {
|
||||||
phaseCondition_[c] = PhasePresence(); // No free phases.
|
phaseCondition_[c] = PhasePresence(); // No free phases.
|
||||||
|
|||||||
Reference in New Issue
Block a user