Added test to ensure active gas phase.

This commit is contained in:
Atgeirr Flø Rasmussen 2014-07-23 11:41:06 +02:00
parent 92f20c6040
commit 1faf5da05b

View File

@ -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.