Changeset 8497
- Timestamp:
- Aug 7, 2012, 12:22:48 PM (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
r8495 r8497 41 41 t0 = time.time() 42 42 43 allreduce = False43 allreduce = True 44 44 45 45 if allreduce: 46 #pypar.allreduce(domain.local_timestep, pypar.MIN,47 #buffer=domain.global_timestep,48 #bypass=True)46 pypar.allreduce(domain.local_timestep, pypar.MIN, 47 buffer=domain.global_timestep, 48 bypass=True) 49 49 domain.communication_reduce_time += time.time()-t0 50 50 else: … … 62 62 domain.communication_broadcast_time += time.time()-t0 63 63 64 old_fux_timestep = domain.flux_timestep64 #old_flux_timestep = domain.flux_timestep 65 65 domain.flux_timestep = domain.global_timestep[0] 66 66 … … 93 93 Xout[:,i] = num.take(Q_cv, Idf) 94 94 95 pypar.send(Xout, int(send_proc), use_buffer=True )#, bypass=True)95 pypar.send(Xout, int(send_proc), use_buffer=True, bypass=True) 96 96 97 97 … … 103 103 X = domain.ghost_recv_dict[iproc][2] 104 104 105 X = pypar.receive(int(iproc), buffer=X )#, bypass=True)105 X = pypar.receive(int(iproc), buffer=X, bypass=True) 106 106 107 107 for i, q in enumerate(domain.conserved_quantities): -
trunk/anuga_core/source/anuga_parallel/run_parallel_sw_merimbula.py
r8496 r8497 109 109 #-------------------------------------------------------------------------- 110 110 111 domain.set_flow_algorithm('2_0') 112 111 domain.set_flow_algorithm('2_0') 113 112 114 113 #domain.smooth = False -
trunk/anuga_core/source/anuga_parallel/run_parallel_sw_rectangular_cross_profile.py
r8493 r8497 46 46 #mesh_filename = "test-100.tsh" ; x0 = 0.25 ; x1 = 0.5 47 47 48 finaltime = 0.5 49 yieldstep = 0.05 48 50 49 verbose = True 51 50 … … 69 68 #-------------------------------------------------------------------------- 70 69 if myid == 0: 71 length = 2.0 *numprocs70 length = 2.0 72 71 width = 2.0 73 dx = dy = 0.0 472 dx = dy = 0.02 74 73 domain = rectangular_cross_domain(int(length/dx), int(width/dy), 75 74 len1=length, len2=width) … … 115 114 Br = Reflective_boundary(domain) # Solid reflective wall 116 115 117 domain.set_boundary({'top' :Br, 'bottom' :Br, 'left' :Br, 'right' :Br })116 domain.set_boundary({'top' :Br, 'bottom' :Br, 'left' :Br, 'right' :Br, 'ghost' : None }) 118 117 119 118 """ … … 133 132 134 133 t0 = time.time() 135 134 finaltime = 2.0 135 yieldstep = 0.5 136 136 137 137 s = """
Note: See TracChangeset
for help on using the changeset viewer.