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

Diff of /trunk/pygtk/integratorreporter.py

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

revision 1128 by johnpye, Fri Jan 5 13:45:13 2007 UTC revision 1129 by johnpye, Sat Jan 13 11:40:59 2007 UTC
# Line 39  class IntegratorReporterPython(ascpy.Int Line 39  class IntegratorReporterPython(ascpy.Int
39              self.getIntegrator().solve()              self.getIntegrator().solve()
40          except RuntimeError,e:          except RuntimeError,e:
41              self.browser.reporter.reportError("Integrator failed: %s" % e)              self.browser.reporter.reportError("Integrator failed: %s" % e)
42                if self.browser.prefs.getBoolPref("Integrator","writeendmatrix",True):
43                    _fn = "/tmp/ascintegratormatrix.mtx"
44                    self.browser.reporter.reportNote("Writing matrix to file '%s'" % _fn)
45                    _fp = file(_fn,"w")
46                    try:
47                        try:
48                            self.getIntegrator().writeMatrix(_fp)
49                        except RuntimeError,e:
50                            self.browser.reporter.reportError(str(e))
51                    finally:
52                        _fp.close()
53          self.window.destroy()          self.window.destroy()
54          return          return
55    

Legend:
Removed from v.1128  
changed lines
  Added in v.1129

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