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

Diff of /trunk/pygtk/gtkbrowser.py

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

revision 917 by johnpye, Thu Nov 2 21:34:59 2006 UTC revision 918 by johnpye, Sat Nov 4 03:58:06 2006 UTC
# Line 727  class Browser: Line 727  class Browser:
727          self.start_waiting("Checking system...")          self.start_waiting("Checking system...")
728    
729          try:          try:
730                self.sim.build()
731    
732              self.sim.checkInstance()              self.sim.checkInstance()
733              self.reporter.reportWarning("System instance check run, check above for error (if any).")              self.reporter.reportWarning("System instance check run, check above for error (if any).")
734              # the above gives output but doesn't throw errors or return a status.              # the above gives output but doesn't throw errors or return a status.
# Line 735  class Browser: Line 737  class Browser:
737              status = self.sim.checkDoF()              status = self.sim.checkDoF()
738              if status==ascpy.ASCXX_DOF_UNDERSPECIFIED:              if status==ascpy.ASCXX_DOF_UNDERSPECIFIED:
739                  self.on_show_fixable_variables_activate(None)                  self.on_show_fixable_variables_activate(None)
740                    return
741              elif status==ascpy.ASCXX_DOF_OVERSPECIFIED:              elif status==ascpy.ASCXX_DOF_OVERSPECIFIED:
742                  self.on_show_freeable_variables_activate(None)                  self.on_show_freeable_variables_activate(None)
743                    return
744              elif status==ascpy.ASCXX_DOF_STRUCT_SINGULAR:              elif status==ascpy.ASCXX_DOF_STRUCT_SINGULAR:
745                  if not self.sim.checkStructuralSingularity():                  if not self.sim.checkStructuralSingularity():
746                      sing = self.sim.getSingularityInfo()                      sing = self.sim.getSingularityInfo()
# Line 759  class Browser: Line 763  class Browser:
763    
764                      _dialog = InfoDialog(self,self.window,text,title)                      _dialog = InfoDialog(self,self.window,text,title)
765                      _dialog.run()                      _dialog.run()
766                    return
767    
768              self.reporter.reportNote("System DoF check OK")              self.reporter.reportNote("System DoF check OK")
769    

Legend:
Removed from v.917  
changed lines
  Added in v.918

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