fixing warnings in other folder under opm-simulators

This commit is contained in:
Kai Bao
2019-06-26 09:50:56 +02:00
parent 53b15527c2
commit 9a2fcdbfd5
14 changed files with 50 additions and 61 deletions

View File

@@ -520,8 +520,8 @@ namespace Opm {
failing_wells.insert(wf.wellName());
}
if (sr_size >= num_steps) {
for (int step = 1; step < num_steps; ++step) {
const auto& srep = sr[sr_size - 1 - step];
for (int s = 1; s < num_steps; ++s) {
const auto& srep = sr[sr_size - 1 - s];
// Report must be from same report step and substep, otherwise we have
// not chopped/retried enough times on this step.
if (srep.report_step != rep_step || srep.current_step != sub_step) {