Minor fixes

This commit is contained in:
babrodtk
2015-08-18 10:17:28 +02:00
parent 761973b01e
commit 104159af15
2 changed files with 4 additions and 2 deletions

View File

@@ -58,6 +58,9 @@
namespace
{
const static double alq_invalid = -std::numeric_limits<double>::max();
const static double vfp_invalid = -std::numeric_limits<int>::max();
void warnIfUnusedParams(const Opm::parameter::ParameterGroup& param)
{
if (param.anyUnused()) {
@@ -91,7 +94,7 @@ namespace
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,
-std::numeric_limits<int>::max(), -std::numeric_limits<int>::max(),
alq_invalid, vfp_invalid,
distr, ctrl);
well_controls_set_current(ctrl, well_controls_get_num(ctrl) - 1);
}