Changeset 8495
- Timestamp:
- Aug 7, 2012, 10:27:18 AM (13 years ago)
- Location:
- trunk/anuga_core/source/anuga_parallel
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/anuga_core/source/anuga_parallel/parallel_generic_communications.py
r8490 r8495 41 41 t0 = time.time() 42 42 43 #Determine minimum timestep across all processors 44 pypar.reduce(domain.local_timestep, pypar.MIN, 0, 45 buffer=domain.global_timestep)#, 46 #bypass=True) 43 allreduce = False 44 45 if allreduce: 46 #pypar.allreduce(domain.local_timestep, pypar.MIN, 47 # buffer=domain.global_timestep, 48 # bypass=True) 49 domain.communication_reduce_time += time.time()-t0 50 else: 51 pypar.reduce(domain.local_timestep, pypar.MIN, 0, 52 buffer=domain.global_timestep, 53 bypass=True) 47 54 48 #pypar.allreduce(domain.local_timestep, pypar.MIN, 49 # buffer=domain.global_timestep, 50 # bypass=True) 51 52 domain.communication_reduce_time += time.time()-t0 55 domain.communication_reduce_time += time.time()-t0 53 56 54 57 55 #Broadcast minimal timestep to all processors56 t0 = time.time()57 pypar.broadcast(domain.global_timestep, 0)#, bypass=True)58 #Broadcast minimal timestep to all processors 59 t0 = time.time() 60 pypar.broadcast(domain.global_timestep, 0)#, bypass=True) 58 61 59 domain.communication_broadcast_time += time.time()-t062 domain.communication_broadcast_time += time.time()-t0 60 63 61 64 old_fux_timestep = domain.flux_timestep -
trunk/anuga_core/source/anuga_parallel/run_parallel_sw_merimbula.py
r8492 r8495 111 111 domain.set_flow_algorithm('2_0') 112 112 113 113 114 #domain.smooth = False 114 115 #domain.set_default_order(2) -
trunk/anuga_core/source/anuga_parallel/run_parallel_sw_merimbula_profile.py
r8490 r8495 42 42 #-------------------------------------------------------------------------- 43 43 44 mesh_filename = "merimbula_10785_1.tsh" ; x0 = 756000.0 ; x1 = 756500.045 #mesh_filename = "merimbula_43200.tsh" ; x0 = 756000.0 ; x1 = 756500.044 #mesh_filename = "merimbula_10785_1.tsh" ; x0 = 756000.0 ; x1 = 756500.0 45 mesh_filename = "merimbula_43200.tsh" ; x0 = 756000.0 ; x1 = 756500.0 46 46 #mesh_filename = "test-100.tsh" ; x0 = 0.25 ; x1 = 0.5 47 47
Note: See TracChangeset
for help on using the changeset viewer.