- Timestamp:
- May 11, 2008, 8:40:01 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_core/source/anuga_parallel/run_parallel_advection.py
r5243 r5306 102 102 t0 = time.time() 103 103 104 # Start the evolve computions 105 import hotshot 106 profiler = hotshot.Profile("hotshot." + str(numprocs) + "." + str(myid) + ".prof") 107 s = '''for t in domain.evolve(yieldstep = 0.1, finaltime = 2.0): 108 if myid == 0: 109 domain.write_time() 110 ''' 111 112 113 result = profiler.runctx(s, globals(), locals()) 114 profiler.close() 115 116 # for t in domain.evolve(yieldstep = 0.1, finaltime = 3.0): 117 # if myid == 0: 118 # domain.write_time() 104 for t in domain.evolve(yieldstep = 0.1, finaltime = 3.0): 105 if myid == 0: 106 domain.write_time() 119 107 120 108 # Output some computation statistics
Note: See TracChangeset
for help on using the changeset viewer.