Changeset 2198 for inundation/parallel/run_parallel_sw_merimbula_metis.py
- Timestamp:
- Jan 11, 2006, 12:03:41 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
inundation/parallel/run_parallel_sw_merimbula_metis.py
r2152 r2198 174 174 #try: 175 175 # domain.initialise_visualiser(rect=rect) 176 # #domain.visualiser.coloring['stage'] = True 177 # domain.visualiser.scale_z['stage'] = 0.2 178 # domain.visualiser.scale_z['elevation'] = 0.05 176 # domain.visualiser.updating['stage'] = True 177 # domain.visualiser.setup['elevation'] = True 178 # domain.visualiser.qcolor['stage'] = (0.0, 0.0, 0.8) 179 # domain.visualiser.scale_z['stage'] = 250 180 # domain.visualiser.scale_z['elevation'] = 250 179 181 #except: 180 182 # print 'No visualiser' … … 206 208 207 209 yieldstep = 1 208 finaltime = 30210 finaltime = 90 209 211 210 212 #yieldstep = 1 … … 218 220 219 221 # Profiling 220 import profile 221 profiler = profile.Profile() 222 #import profile 223 #profiler = profile.Profile() 224 #result.dump_stats("profile." + str(numprocs) + "." + str(myid) + ".dat") 225 226 #New hotshot profiling 227 import hotshot 228 profiler = hotshot.Profile("hotshot." + str(numprocs) + "." + str(myid) + ".prof") 222 229 s = '''for t in domain.evolve(yieldstep = yieldstep, finaltime = finaltime): 223 230 if myid == 0: … … 225 232 ''' 226 233 result = profiler.runctx(s, globals(), locals()) 227 result.dump_stats("profile." + str(numprocs) + "." + str(myid) + ".dat")234 profiler.close() 228 235 229 236 #print 'P%d: That took %.2f seconds' %(myid, time.time()-t0)
Note: See TracChangeset
for help on using the changeset viewer.