Changeset 8497


Ignore:
Timestamp:
Aug 7, 2012, 12:22:48 PM (13 years ago)
Author:
steve
Message:

Move over to opl machine

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  
    4141    t0 = time.time()
    4242
    43     allreduce = False
     43    allreduce = True
    4444   
    4545    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)
    4949        domain.communication_reduce_time += time.time()-t0
    5050    else:
     
    6262        domain.communication_broadcast_time += time.time()-t0
    6363
    64     old_fux_timestep = domain.flux_timestep
     64    #old_flux_timestep = domain.flux_timestep
    6565    domain.flux_timestep = domain.global_timestep[0]
    6666   
     
    9393                        Xout[:,i] = num.take(Q_cv, Idf)
    9494
    95                     pypar.send(Xout, int(send_proc), use_buffer=True)#, bypass=True)
     95                    pypar.send(Xout, int(send_proc), use_buffer=True, bypass=True)
    9696
    9797
     
    103103                X   = domain.ghost_recv_dict[iproc][2]
    104104
    105                 X = pypar.receive(int(iproc), buffer=X)#, bypass=True)
     105                X = pypar.receive(int(iproc), buffer=X, bypass=True)
    106106
    107107                for i, q in enumerate(domain.conserved_quantities):
  • trunk/anuga_core/source/anuga_parallel/run_parallel_sw_merimbula.py

    r8496 r8497  
    109109#--------------------------------------------------------------------------
    110110
    111 domain.set_flow_algorithm('2_0')   
    112 
     111domain.set_flow_algorithm('2_0')
    113112
    114113#domain.smooth = False
  • trunk/anuga_core/source/anuga_parallel/run_parallel_sw_rectangular_cross_profile.py

    r8493 r8497  
    4646#mesh_filename = "test-100.tsh" ; x0 = 0.25 ; x1 = 0.5
    4747
    48 finaltime = 0.5
    49 yieldstep = 0.05
     48
    5049verbose = True
    5150
     
    6968#--------------------------------------------------------------------------
    7069if myid == 0:
    71     length = 2.0*numprocs
     70    length = 2.0
    7271    width = 2.0
    73     dx = dy = 0.04
     72    dx = dy = 0.02
    7473    domain = rectangular_cross_domain(int(length/dx), int(width/dy),
    7574                                              len1=length, len2=width)
     
    115114Br = Reflective_boundary(domain)      # Solid reflective wall
    116115
    117 domain.set_boundary({'top' :Br, 'bottom' :Br, 'left' :Br, 'right' :Br })
     116domain.set_boundary({'top' :Br, 'bottom' :Br, 'left' :Br, 'right' :Br, 'ghost' : None })
    118117
    119118"""
     
    133132
    134133t0 = time.time()
    135 
     134finaltime = 2.0
     135yieldstep = 0.5
    136136
    137137s = """
Note: See TracChangeset for help on using the changeset viewer.