mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
if all the phase are stagnate then stagnate will be true.
This commit is contained in:
parent
5b28b38056
commit
b183fdfa6d
@ -1736,6 +1736,7 @@ namespace {
|
||||
return;
|
||||
}
|
||||
|
||||
stagnate = true;
|
||||
int oscillatePhase = 0;
|
||||
const std::vector<double>& F0 = residual_history[it];
|
||||
const std::vector<double>& F1 = residual_history[it - 1];
|
||||
@ -1746,7 +1747,9 @@ namespace {
|
||||
|
||||
oscillatePhase += (d1 < relaxRelTol) && (relaxRelTol < d2);
|
||||
|
||||
stagnate = ! (std::abs((F1[p] - F2[p]) / F2[p]) > 1.0e-3);
|
||||
// Process is 'stagnate' unless at least one phase
|
||||
// exhibits significant residual change.
|
||||
stagnate = (stagnate && !(std::abs((F1[p] - F2[p]) / F2[p]) > 1.0e-3));
|
||||
}
|
||||
|
||||
oscillate = (oscillatePhase > 1);
|
||||
|
Loading…
Reference in New Issue
Block a user