checking whehter need to update before updateWellTargets.

This commit is contained in:
Kai Bao 2016-11-15 13:56:49 +01:00
parent f9f5bacee4
commit 55eec0b2ed

View File

@ -290,6 +290,10 @@ namespace Opm
void WellCollection::updateWellTargets(const std::vector<double> well_rates)
{
if ( !needUpdateWellTargets() ) {
return;
}
// TODO: currently, we only handle the level of the well groups for the moment, i.e. the level just above wells
// We believe the relations between groups are similar to the relations between different wells inside the same group.
// While there will be somre more complication invloved for sure.