Changeset 2107
- Timestamp:
- Dec 2, 2005, 12:34:30 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
inundation/parallel/run_parallel_sw_merimbula_metis.py
r2090 r2107 187 187 #finaltime = 1 188 188 #processor_name 189 for t in domain.evolve(yieldstep = yieldstep, finaltime = finaltime):190 if myid == 0:191 domain.write_time()189 #for t in domain.evolve(yieldstep = yieldstep, finaltime = finaltime): 190 # if myid == 0: 191 # domain.write_time() 192 192 #print 'Processor %d, Integral of stage %d'%\ 193 193 # (domain.processor,domain.quantities['stage'].get_integral()) 194 194 195 # Profiling 196 import profile 197 profiler = profile.Profile() 198 s = '''for t in domain.evolve(yieldstep = yieldstep, finaltime = finaltime): 199 if myid == 0: 200 domain.write_time() 201 ''' 202 result = profiler.runctx(s, globals(), locals()) 203 result.dump_stats("profile." + str(numprocs) + "." + str(myid) + ".dat") 195 204 196 205 #print 'P%d: That took %.2f seconds' %(myid, time.time()-t0)
Note: See TracChangeset
for help on using the changeset viewer.