Changeset 2198 for inundation/parallel
- Timestamp:
- Jan 11, 2006, 12:03:41 PM (19 years ago)
- Location:
- inundation/parallel
- Files:
-
- 2 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) -
inundation/parallel/run_parallel_sw_rectangle.py
r2193 r2198 66 66 try: 67 67 domain.initialise_visualiser(rect=rect) 68 domain.visualiser.coloring['stage'] = True69 68 domain.visualiser.qcolor['stage'] = (0.0, 0.0, 0.8) 70 69 domain.visualiser.scale_z['stage'] = 1.0
Note: See TracChangeset
for help on using the changeset viewer.