From 41430150f6640f8d80956deeb995017666774a37 Mon Sep 17 00:00:00 2001
From: Van Dung Nguyen <vdg.nguyen@gmail.com>
Date: Mon, 6 Nov 2017 15:43:20 +0100
Subject: [PATCH] correct time

---
 NonLinearSolver/nlsolver/nonLinearMechSolver.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/NonLinearSolver/nlsolver/nonLinearMechSolver.cpp b/NonLinearSolver/nlsolver/nonLinearMechSolver.cpp
index 19e06024f..858844df3 100644
--- a/NonLinearSolver/nlsolver/nonLinearMechSolver.cpp
+++ b/NonLinearSolver/nlsolver/nonLinearMechSolver.cpp
@@ -2013,7 +2013,7 @@ void nonLinearMechSolver::setTimeForLaw(const double t,const double dt)
   for(std::map<int,materialLaw*>::iterator it=maplaw.begin(); it!=maplaw.end();++it)
   {
     if (_microFlag){
-      double macroTime = _currentTime+ t*_timeStep;
+      double macroTime = _currentTime- (1-t)*_timeStep;
       double tstep = dt*_timeStep; // because
       it->second->setTime(macroTime,tstep);
     }
-- 
GitLab