Runs first iterations of two-phase test case plausibly

This commit is contained in:
babrodtk 2016-04-21 16:17:54 +02:00
parent 404929fe34
commit c8d5174113
2 changed files with 3 additions and 3 deletions

View File

@ -322,8 +322,8 @@ namespace Opm
this->compute_R_(n, p, T, z, cells, &R_[0]);
}
const auto& pu = phaseUsage();
bool oil_and_gas = pu.phase_pos[BlackoilPhases::Liquid] &&
pu.phase_pos[BlackoilPhases::Vapour];
bool oil_and_gas = pu.phase_used[BlackoilPhases::Liquid] &&
pu.phase_used[BlackoilPhases::Vapour];
const int o = pu.phase_pos[BlackoilPhases::Liquid];
const int g = pu.phase_pos[BlackoilPhases::Vapour];

View File

@ -94,7 +94,7 @@ namespace Opm
}
else {
//Set to ridiculous value on purpose: should never be used
pu.phase_pos[i] = -1;
pu.phase_pos[i] = 2000000000;
}
}