Changeset 7676
- Timestamp:
- Apr 6, 2010, 8:46:17 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_core/source/anuga_parallel/run_parallel_sw_merimbula.py
r7674 r7676 1 1 2 2 """Run parallel shallow water domain. 3 4 run using command like: 5 6 mpirun -np m python run_parallel_sw_merimbula.py 7 8 where m is the number of processors to be used. 9 10 Will produce sww files with names domain_Pn_m.sww where m is number of processors and 11 n in [0, m-1] refers to specific processor that owned this part of the partitioned mesh. 3 12 """ 4 13 … … 10 19 import os 11 20 import sys 21 import time 12 22 import pypar 13 23 … … 38 48 #-------------------------------------------------------------------------- 39 49 40 mesh_filename = "merimbula_10785_1.tsh" 50 #mesh_filename = "merimbula_10785_1.tsh" 51 mesh_filename = "merimbula_43200.tsh" 41 52 #mesh_filename = "test-100.tsh" 42 yieldstep = 143 finaltime = 20 53 yieldstep = 50 54 finaltime = 200 44 55 quantity = 'stage' 45 56 verbose = True … … 88 99 #------------------------------------------------------------------------------ 89 100 if myid == 0 and verbose: print 'EVOLVE' 90 101 102 t0 = time.time() 103 91 104 for t in domain.evolve(yieldstep = yieldstep, finaltime = finaltime): 92 105 if myid == 0: 93 106 domain.write_time() 107 108 109 if myid == 0: 110 print 'That took %.2f seconds' %(time.time()-t0) 111 print 'Communication time %.2f seconds'%domain.communication_time 112 print 'Reduction Communication time %.2f seconds'%domain.communication_reduce_time 113 print 'Broadcast time %.2f seconds'%domain.communication_broadcast_time 114 94 115 95 116 finalize()
Note: See TracChangeset
for help on using the changeset viewer.