Changeset 2909 for inundation/parallel/build_commun.py
- Timestamp:
- May 18, 2006, 1:06:32 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
inundation/parallel/build_commun.py
r2625 r2909 313 313 return GAnodes, GAtriangles, boundary, quantities, ghost_rec, full_send 314 314 315 315 ######################################################### 316 # 317 # Extract the submesh that will belong to the 318 # "host processor" (i.e. processor zero) 319 # 320 # *) See the documentation for build_submesh 321 # 322 # ------------------------------------------------------- 323 # 324 # *) A dictionary containing the full_triangles, 325 # full_nodes, full_boundary, ghost_triangles, ghost_nodes, 326 # ghost_boundary, ghost_commun and full_commun belonging 327 # to processor zero are returned. 328 # 329 ######################################################### 330 def extract_hostmesh(submesh, triangles_per_proc): 331 332 submesh_cell = {} 333 submesh_cell["full_nodes"] = submesh["full_nodes"][0] 334 submesh_cell["ghost_nodes"] = submesh["ghost_nodes"][0] 335 submesh_cell["full_triangles"] = submesh["full_triangles"][0] 336 submesh_cell["ghost_triangles"] = submesh["ghost_triangles"][0] 337 submesh_cell["full_boundary"] = submesh["full_boundary"][0] 338 submesh_cell["ghost_boundary"] = submesh["ghost_boundary"][0] 339 submesh_cell["ghost_commun"] = submesh["ghost_commun"][0] 340 submesh_cell["full_commun"] = submesh["full_commun"][0] 341 submesh_cell["full_quan"] ={} 342 submesh_cell["ghost_quan"]={} 343 for k in submesh["full_quan"]: 344 submesh_cell["full_quan"][k] = submesh["full_quan"][k][0] 345 submesh_cell["ghost_quan"][k] = submesh["ghost_quan"][k][0] 346 347 numprocs = pypar.size() 348 points, vertices, boundary, quantities, ghost_recv_dict, full_send_dict = \ 349 build_local_mesh(submesh_cell, 0, triangles_per_proc[0], numprocs) 350 return points, vertices, boundary, quantities, ghost_recv_dict, \ 351 full_send_dict 352 353 354
Note: See TracChangeset
for help on using the changeset viewer.