Refactoring

This commit is contained in:
babrodtk committed 2015-08-19 13:12:14 +02:00
1 parent c7a66bf595
commit ac0e72ea1d
3 files changed
+35 -26

No files matched your search

+3 -1
View File
@@ -90,7 +90,9 @@ namespace
WellControls* ctrl = wells.ctrls[w];
const double target = (wells.type[w] == INJECTOR) ? 200*Opm::unit::barsa : 100*Opm::unit::barsa;
const double distr[3] = { 1.0, 0.0, 0.0 }; // Large enough irrespective of #phases.
well_controls_add_new(BHP, target, -1e100, -1e100, distr, ctrl);
well_controls_add_new(BHP, target,
-std::numeric_limits<int>::max(), -std::numeric_limits<int>::max(),
distr, ctrl);
well_controls_set_current(ctrl, well_controls_get_num(ctrl) - 1);
}
}