/[ascend]/trunk/pygtk/integrator.py
ViewVC logotype

Diff of /trunk/pygtk/integrator.py

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

revision 669 by johnpye, Wed Jun 21 07:00:45 2006 UTC revision 902 by johnpye, Wed Oct 25 07:35:39 2006 UTC
# Line 96  class IntegratorWindow: Line 96  class IntegratorWindow:
96              self.browser.reporter.reportNote("No indep var found");              self.browser.reporter.reportNote("No indep var found");
97              self.beginentry.set_text("0")              self.beginentry.set_text("0")
98    
99          self.durationentry.set_text("10")          _dur = self.prefs.getStringPref("Integrator","duration","100")
100            self.durationentry.set_text(_dur)
101          self.nstepsentry.set_text("100")          self.nstepsentry.set_text("100")
102          self.timedistributionselect.set_active(0)          self.timedistributionselect.set_active(0)
103    
# Line 167  class IntegratorWindow: Line 168  class IntegratorWindow:
168          self.integrator.setLinearTimesteps(ascpy.Units("s"), _val["begin"], (_val["begin"]+_val["duration"]), _val["num"]);          self.integrator.setLinearTimesteps(ascpy.Units("s"), _val["begin"], (_val["begin"]+_val["duration"]), _val["num"]);
169          self.begin=_val["begin"]          self.begin=_val["begin"]
170          self.duration=_val["duration"]          self.duration=_val["duration"]
171    
172            self.prefs.setStringPref("Integrator","duration",str(self.duration))
173                    
174          # set substep parameters (ie settings common to any integrator engine)          # set substep parameters (ie settings common to any integrator engine)
175          _failed=False          _failed=False

Legend:
Removed from v.669  
changed lines
  Added in v.902

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22