Merge pull request #53 from atgeirr/well-bugfix

Well bugfix
This commit is contained in:
Atgeirr Flø Rasmussen 2012-10-08 05:40:31 -07:00
commit 7de73782bf
2 changed files with 2 additions and 2 deletions

View File

@ -407,8 +407,8 @@ namespace Opm
// Optionally, check if well controls are satisfied.
if (check_well_controls_) {
Opm::computePhaseFlowRatesPerWell(*wells_,
fractional_flows,
well_state.perfRates(),
fractional_flows,
well_resflows_phase);
std::cout << "Checking well conditions." << std::endl;
// For testing we set surface := reservoir

View File

@ -863,7 +863,7 @@ namespace Opm
return;
}
// We're a producer, so we need to negate the input
double ntarget = target;
double ntarget = -target;
double distr[3] = { 0.0, 0.0, 0.0 };
const int* phase_pos = phaseUsage().phase_pos;