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
commit 41fd301d16
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -70,7 +70,10 @@ namespace Opm
total_linearizations += sr.total_linearizations; total_linearizations += sr.total_linearizations;
total_newton_iterations += sr.total_newton_iterations; total_newton_iterations += sr.total_newton_iterations;
total_linear_iterations += sr.total_linear_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();
} }