mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-12-24 08:20:01 -06:00
Made reservoir rates have a small error tolerated
This commit is contained in:
parent
6ee088550f
commit
8702852524
@ -592,7 +592,7 @@ namespace Opm
|
|||||||
my_rate += ctrls.distr[np*ctrl_index + phase]*well_reservoirrates_phase[np*self_index_ + phase];
|
my_rate += ctrls.distr[np*ctrl_index + phase]*well_reservoirrates_phase[np*self_index_ + phase];
|
||||||
}
|
}
|
||||||
const double my_rate_target = ctrls.target[ctrl_index];
|
const double my_rate_target = ctrls.target[ctrl_index];
|
||||||
ctrl_violated = std::fabs(my_rate) > std::fabs(my_rate_target);
|
ctrl_violated = std::fabs(my_rate) - std::fabs(my_rate_target)> std::max(std::abs(my_rate), std::abs(my_rate_target))*1e-6;
|
||||||
if (ctrl_violated) {
|
if (ctrl_violated) {
|
||||||
std::cout << "RESERVOIR_RATE limit violated for well " << name() << ":\n";
|
std::cout << "RESERVOIR_RATE limit violated for well " << name() << ":\n";
|
||||||
std::cout << "rate limit = " << my_rate_target << std::endl;
|
std::cout << "rate limit = " << my_rate_target << std::endl;
|
||||||
|
Loading…
Reference in New Issue
Block a user