adding flow_injecitivity executable target

This commit is contained in:
Kai Bao
2018-11-28 10:41:39 +01:00
parent e1ede3c9d5
commit b079c0a1e5
7 changed files with 195 additions and 9 deletions

View File

@@ -108,7 +108,7 @@ namespace Opm
pu.phase_pos[BlackoilPhases::Energy] = -1;
// Add polymer molecular weight related
pu.has_polymermw = phase.active(Phase::POLYMW);
pu.has_polymermw = phases.active(Phase::POLYMW);
if (pu.has_polymermw) {
if (!pu.has_polymer) {
OPM_THROW(std::runtime_error, "pu.has_polymermw is true while pu.has_polymer is false");