small corrections in WellsGroup

should not change reults.
This commit is contained in:
Kai Bao 2017-04-04 14:50:15 +02:00
parent bd9ff2ad94
commit 44924b9ee9
2 changed files with 3 additions and 0 deletions

View File

@ -426,6 +426,7 @@ namespace Opm
// not sure if no water and no oil, what will happen here, zero guide_rate?
well_node.prodSpec().guide_rate_ = guide_rate;
well_node.prodSpec().guide_rate_type_ = ProductionSpecification::LIQ;
break;
}
case ProductionSpecification::NONE: {
// Group control is not in use for this group.

View File

@ -871,12 +871,14 @@ namespace Opm
} else {
// can not produce more to meet the target
OpmLog::info("group " + name() + " can not meet its target!");
return true;
}
} else { // overproducing the target, the only possibility is that all the wells/groups are under individual control
// while somehow our algorithms did not make the wells/groups return group controls
// either we should fix the algorithm of determining the target for well to return group controls
// or we should do something here
OpmLog::info("group " + name() + " is overproducing its target!");
return false;
}
}
}