Example #1
0
 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()
Example #2
0
 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()
Example #3
0
 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()
Example #4
0
 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()