1100 |
step_fail_counter=0 |
step_fail_counter=0 |
1101 |
iteration_fail_counter=0 |
iteration_fail_counter=0 |
1102 |
if self.time_step==0: |
if self.time_step==0: |
1103 |
dt_new=self.getSafeTimeStepSize(dt) |
dt_new=self.getSafeTimeStepSize(self.dt) |
1104 |
else: |
else: |
1105 |
dt_new=min(max(self.getSafeTimeStepSize(self.dt),self.dt/self.MAX_CHANGE_OF_DT),self.dt*self.MAX_CHANGE_OF_DT) |
dt_new=min(max(self.getSafeTimeStepSize(self.dt),self.dt/self.MAX_CHANGE_OF_DT),self.dt*self.MAX_CHANGE_OF_DT) |
1106 |
self.trace("%d. time step %e (step size %e.)" % (self.time_step+1,self.time+dt_new,dt_new)) |
self.trace("%d. time step %e (step size %e.)" % (self.time_step+1,self.time+dt_new,dt_new)) |
1127 |
self.trace("Time step is repeated with new time step size %s."%dt_new) |
self.trace("Time step is repeated with new time step size %s."%dt_new) |
1128 |
if step_fail_counter>self.FAILED_TIME_STEPS_MAX: |
if step_fail_counter>self.FAILED_TIME_STEPS_MAX: |
1129 |
raise SimulationBreakDownError("Time integration is given up after %d attempts."%step_fail_counter) |
raise SimulationBreakDownError("Time integration is given up after %d attempts."%step_fail_counter) |
1130 |
if not check_point==None: |
if not check_pointing==None: |
1131 |
if check_point.doDump(): |
if check_pointing.doDump(): |
1132 |
self.trace("check point is created.") |
self.trace("check point is created.") |
1133 |
self.writeXML() |
self.writeXML() |
1134 |
self.doFinalization() |
self.doFinalization() |