Changeset 3904
- Timestamp:
- Nov 1, 2006, 4:15:10 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_core/source/anuga_parallel/parallel_api.py
r3884 r3904 9 9 from anuga_parallel.parallel_abstraction import size, rank, get_processor_name 10 10 from anuga_parallel.parallel_abstraction import finalize, send, receive 11 from anuga_parallel.parallel_abstraction import pypar_available 11 from anuga_parallel.parallel_abstraction import pypar_available, barrier 12 12 13 13 … … 61 61 domain_name = domain.get_name() 62 62 domain_dir = domain.get_datadir() 63 georef = domain.geo_reference 64 63 65 # FIXME - what other attributes need to be transferred? 64 66 65 67 for p in range(1, numprocs): 66 send((domain_name, domain_dir ), p)68 send((domain_name, domain_dir, georef), p) 67 69 else: 68 70 if verbose: print 'P%d: Receiving domain attributes' %(myid) 69 71 70 domain_name, domain_dir = receive(0)72 domain_name, domain_dir, georef = receive(0) 71 73 72 74 … … 133 135 #------------------------------------------------------------------------ 134 136 domain.set_name(domain_name) 135 domain.set_datadir(domain_dir) 137 domain.set_datadir(domain_dir) 138 domain.geo_reference = georef 136 139 137 140 #------------------------------------------------------------------------
Note: See TracChangeset
for help on using the changeset viewer.