fix bug that sets global_time to 0

This commit is contained in:
Franz Georg Fuchs 2021-03-23 12:11:26 +01:00
parent 0667497108
commit b86d5e2ad0

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();
}