mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
drop useages of std::numeric_limits for counting well iterations.
This commit is contained in:
@@ -137,9 +137,7 @@ namespace Opm
|
||||
}
|
||||
converged = report.converged;
|
||||
linIters += report.linear_iterations;
|
||||
if (report.well_iterations != std::numeric_limits<int>::min()) {
|
||||
wellIters += report.well_iterations;
|
||||
}
|
||||
wellIters += report.well_iterations;
|
||||
++iteration;
|
||||
} while ( (!converged && (iteration <= maxIter())) || (iteration <= minIter()));
|
||||
|
||||
@@ -152,14 +150,8 @@ namespace Opm
|
||||
|
||||
linearIterations_ += linIters;
|
||||
nonlinearIterations_ += iteration - 1; // Since the last one will always be trivial.
|
||||
if (wellIters != 0) {
|
||||
wellIterations_ += wellIters;
|
||||
wellIterationsLast_ = wellIters;
|
||||
}
|
||||
if (wellIters == 0) {
|
||||
wellIterations_ = std::numeric_limits<int>::min();
|
||||
wellIterationsLast_ = std::numeric_limits<int>::min();
|
||||
}
|
||||
wellIterations_ = wellIters;
|
||||
wellIterationsLast_ = wellIters;
|
||||
linearIterationsLast_ = linIters;
|
||||
nonlinearIterationsLast_ = iteration;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user