/[escript]/trunk/escript/py_src/modelframe.py
ViewVC logotype

Diff of /trunk/escript/py_src/modelframe.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 975 by gross, Thu Feb 15 10:18:18 2007 UTC revision 980 by gross, Mon Feb 19 05:12:38 2007 UTC
# Line 1100  class Simulation(Model): Line 1100  class Simulation(Model):
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))
# Line 1127  class Simulation(Model): Line 1127  class Simulation(Model):
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()

Legend:
Removed from v.975  
changed lines
  Added in v.980

  ViewVC Help
Powered by ViewVC 1.1.26