def fun5(): ScrollText.sc.appendStatusText("-----------------------------") ScrollText.sc.appendStatusText("------- Mouse Control -------") ScrollText.sc.appendStatusText("-----------------------------") window = Toplevel(root) window.resizable(width=False, height=False) mm.mm(window).pack() window.mainloop()
def before_request(): # connect to the database # flask.g.db = sqlite3.connect(app.config['database']) # refresh the rdio key try: flask.g.rdio.refresh() except: flask.g.rdio = rdio.rdio(app.config) pass # set up the searcher if not hasattr(flask.g, 'mm'): flask.g.mm = mm.mm(app.config) pass # set up the echonest bindings if not hasattr(flask.g, 'en'): flask.g.en = en.en(app.config) pass # build the session object # TODO: 2012-07-19 11:46:26 by Brian McFee <*****@*****.**> pass
import mm from mpi4py import MPI comm = MPI.COMM_WORLD rank = comm.rank size = comm.size comm.Barrier() t_start = MPI.Wtime() mm.mm() comm.Barrier() t_diff = MPI.Wtime() - t_start print 'runtime on rank %d of %d is %f' %(rank, size, t_diff) comm.Barrier() print 'Executing 1 fortran timestep on rank %d of %d.' %(rank, size) mm.timestep(1) comm.Barrier()