Changeset 8282
- Timestamp:
- Dec 13, 2011, 5:29:12 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/anuga_core/source/anuga_parallel/parallel_api.py
r8281 r8282 63 63 domain_dir = domain.get_datadir() 64 64 georef = domain.geo_reference 65 number_of_global_triangles = domain.number_of_triangles 66 number_of_global_nodes = domain.number_of_nodes 65 67 66 68 # FIXME - what other attributes need to be transferred? 67 69 68 70 for p in range(1, numprocs): 69 send((domain_name, domain_dir, georef), p) 71 send((domain_name, domain_dir, georef, \ 72 number_of_global_triangles, number_of_global_nodes), p) 70 73 else: 71 74 if verbose: print 'P%d: Receiving domain attributes' %(myid) 72 75 73 domain_name, domain_dir, georef = receive(0) 76 domain_name, domain_dir, georef, \ 77 number_of_global_triangles, number_of_global_nodes = receive(0) 74 78 75 79 … … 102 106 distribute_mesh(domain, verbose=verbose) 103 107 104 number_of_global_triangles = len(tri_map)105 number_of_global_nodes = len(node_map)106 108 107 109 # Extract l2g maps … … 126 128 rec_submesh(0, verbose) 127 129 128 number_of_global_triangles = len(tri_map) 129 number_of_global_nodes = len(node_map) 130 130 131 131 132 # Extract l2g maps
Note: See TracChangeset
for help on using the changeset viewer.