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()
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()