Merge pull request #3131 from fgfuchs/global_time_fix

fix bug that sets global_time to 0
This commit is contained in:
Bård Skaflestad
2021-03-23 15:51:47 +01:00
committed by GitHub

View File

@@ -70,7 +70,10 @@ namespace Opm
total_linearizations += sr.total_linearizations;
total_newton_iterations += sr.total_newton_iterations;
total_linear_iterations += sr.total_linear_iterations;
global_time = sr.global_time; // It makes no sense adding time points, so = not += here.
// It makes no sense adding time points. Therefore, do not
// overwrite the value of global_time which gets set in
// NonlinearSolverEbos.hpp by the line:
// report.global_time = timer.simulationTimeElapsed();
}