[cig-commits] r5840 - short/3D/PyLith/branches/pylith-0.8/pylith3d/pylith3d

leif at geodynamics.org leif at geodynamics.org
Fri Jan 19 13:47:39 PST 2007


Author: leif
Date: 2007-01-19 13:47:39 -0800 (Fri, 19 Jan 2007)
New Revision: 5840

Modified:
   short/3D/PyLith/branches/pylith-0.8/pylith3d/pylith3d/Application.py
Log:
Added 'sys.executable' to the arguments for PetscInitialize(),
so that -start_in_debugger works.  Also, recognize -debugger_pause
(the default is too short on my system).


Modified: short/3D/PyLith/branches/pylith-0.8/pylith3d/pylith3d/Application.py
===================================================================
--- short/3D/PyLith/branches/pylith-0.8/pylith3d/pylith3d/Application.py	2007-01-19 21:19:23 UTC (rev 5839)
+++ short/3D/PyLith/branches/pylith-0.8/pylith3d/pylith3d/Application.py	2007-01-19 21:47:39 UTC (rev 5840)
@@ -84,8 +84,10 @@
 
 
     def _configure(self):
-        self.petscArgs = []
+        import sys
         
+        self.petscArgs = [sys.executable]
+        
         ksp_monitor = self.inventory.ksp_monitor
         if ksp_monitor:
             self.petscArgs.append("-ksp_monitor")
@@ -109,6 +111,10 @@
         if self.inventory.start_in_debugger:
             self.petscArgs.append("-start_in_debugger")
 
+        debugger_pause = self.inventory.debugger_pause
+        if debugger_pause:
+            self.petscArgs.extend(["-debugger_pause", debugger_pause])
+
         self.petscArgs.extend(self.inventory.petsc.getArgs())
 
         return
@@ -139,6 +145,7 @@
         pc_type = pyre.inventory.str("pc_type")
         sub_pc_type = pyre.inventory.str("sub_pc_type")
         start_in_debugger = pyre.inventory.str("start_in_debugger")
+        debugger_pause = pyre.inventory.str("debugger_pause")
 
         # a dummy facility for passing arbitrary options to PETSc
         petsc = PetscFacility("petsc")



More information about the cig-commits mailing list