mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-11-25 18:50:19 -06:00
counting well iterations correctly.
This commit is contained in:
parent
bb0164f39f
commit
6af9aee20f
@ -139,8 +139,6 @@ namespace Opm
|
||||
linIters += report.linear_iterations;
|
||||
if (report.well_iterations != std::numeric_limits<int>::min()) {
|
||||
wellIters += report.well_iterations;
|
||||
} else {
|
||||
wellIters = report.well_iterations;
|
||||
}
|
||||
++iteration;
|
||||
} while ( (!converged && (iteration <= maxIter())) || (iteration <= minIter()));
|
||||
@ -154,10 +152,16 @@ namespace Opm
|
||||
|
||||
linearIterations_ += linIters;
|
||||
nonlinearIterations_ += iteration - 1; // Since the last one will always be trivial.
|
||||
wellIterations_ += wellIters;
|
||||
if (wellIters != 0) {
|
||||
wellIterations_ += wellIters;
|
||||
wellIterationsLast_ = wellIters;
|
||||
}
|
||||
if (wellIters == 0) {
|
||||
wellIterations_ = std::numeric_limits<int>::min();
|
||||
wellIterationsLast_ = std::numeric_limits<int>::min();
|
||||
}
|
||||
linearIterationsLast_ = linIters;
|
||||
nonlinearIterationsLast_ = iteration;
|
||||
wellIterationsLast_ = wellIters;
|
||||
|
||||
// Do model-specific post-step actions.
|
||||
model_->afterStep(dt, reservoir_state, well_state);
|
||||
|
Loading…
Reference in New Issue
Block a user