Changeset 1582
- Timestamp:
- Jul 5, 2005, 4:48:45 PM (19 years ago)
- Location:
- inundation/ga/storm_surge/parallel
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
inundation/ga/storm_surge/parallel/build_commun.py
r1580 r1582 116 116 for k in submesh["full_quan"]: 117 117 pypar.send(submesh["full_quan"][k][p], p, use_buffer=True) 118 118 119 for k in submesh["ghost_quan"]: 119 120 pypar.send(submesh["ghost_quan"][k][p], p, use_buffer=True) … … 252 253 new_quan = zeros((no_full_triangles, 3), Float) 253 254 submesh_cell["full_quan"]={} 255 254 256 for i in range(no_quantities): 255 submesh_cell["full_quan"][qkeys[i]] = pypar.receive(p, new_quan) 257 tmp = pypar.receive(p, new_quan) 258 submesh_cell["full_quan"][qkeys[i]]=zeros((no_full_triangles,3), Float) 259 submesh_cell["full_quan"][qkeys[i]][:] = tmp[:] 256 260 257 261 new_quan = zeros((no_ghost_triangles, 3), Float) 258 262 submesh_cell["ghost_quan"]={} 259 263 for i in range(no_quantities): 260 submesh_cell["ghost_quan"][qkeys[i]] = pypar.receive(p, new_quan) 264 tmp = pypar.receive(p, new_quan) 265 submesh_cell["ghost_quan"][qkeys[i]]= zeros((no_ghost_triangles,3), Float) 266 submesh_cell["ghost_quan"][qkeys[i]][:] = tmp[:] 261 267 262 268 # find the full triangles assigned to this processor -
inundation/ga/storm_surge/parallel/run_parallel_sw_merimbula.py
r1581 r1582 88 88 89 89 90 91 92 90 if myid == 0: 93 91 … … 108 106 nodes, triangles, boundary, triangles_per_proc, quantities = \ 109 107 pmesh_divide(domain_full, nx, ny) 110 108 111 109 rect = array(domain_full.xy_extent, Float) 112 110 113 111 submesh = build_submesh(nodes, triangles, boundary,\ 114 112 quantities, triangles_per_proc) 115 113 116 114 # send the mesh partition to the appropriate processor 117 115
Note: See TracChangeset
for help on using the changeset viewer.