예제 #1
0
파일: mpiGUI.py 프로젝트: santiama/OOF3D
 def apply_function(self, control_box, data=None):
     msg = "apply function"
     mpitools.broadcast_string(msg, 0)  ## args: command and sender
     ## tells other processors to execute the function callback
     ## next: create and launch thread
     self.thread = clerk.Clerk(self.callback)
     self.thread.start()
예제 #2
0
파일: mpiGUI.py 프로젝트: anilkunwar/OOF2
 def apply_function(self, control_box, data=None):
     msg = "apply function"
     mpitools.broadcast_string(msg, 0) ## args: command and sender
     ## tells other processors to execute the function callback
     ## next: create and launch thread
     self.thread = clerk.Clerk(self.callback)
     self.thread.start()
예제 #3
0
파일: mpiGUI.py 프로젝트: santiama/OOF3D
 def destroy(self, *args):
     mpitools.broadcast_string("quit", 0)  ## args: command and sender
     self.window.hide()
     gtk.mainquit()
     print "quitting main"
     sys.stdout.flush()
     mpitools.mpi_barrier()
     sys.exit()
예제 #4
0
파일: mpiGUI.py 프로젝트: anilkunwar/OOF2
 def destroy(self, *args):
     mpitools.broadcast_string("quit", 0) ## args: command and sender
     self.window.hide()
     gtk.mainquit()
     print "quitting main"
     sys.stdout.flush()
     mpitools.mpi_barrier()
     sys.exit()