Changeset 3904


Ignore:
Timestamp:
Nov 1, 2006, 4:15:10 PM (16 years ago)
Author:
nick
Message:

change to pass geo_reference

File:
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_core/source/anuga_parallel/parallel_api.py

    r3884 r3904  
    99from anuga_parallel.parallel_abstraction import size, rank, get_processor_name
    1010from anuga_parallel.parallel_abstraction import finalize, send, receive
    11 from anuga_parallel.parallel_abstraction import pypar_available
     11from anuga_parallel.parallel_abstraction import pypar_available, barrier
    1212
    1313
     
    6161        domain_name = domain.get_name()
    6262        domain_dir = domain.get_datadir()
     63        georef = domain.geo_reference
     64       
    6365        # FIXME - what other attributes need to be transferred?
    6466
    6567        for p in range(1, numprocs):
    66             send((domain_name, domain_dir), p)
     68            send((domain_name, domain_dir, georef), p)
    6769    else:
    6870        if verbose: print 'P%d: Receiving domain attributes' %(myid)
    6971
    70         domain_name, domain_dir = receive(0)
     72        domain_name, domain_dir, georef = receive(0)
    7173
    7274
     
    133135    #------------------------------------------------------------------------
    134136    domain.set_name(domain_name)
    135     domain.set_datadir(domain_dir)       
     137    domain.set_datadir(domain_dir)     
     138    domain.geo_reference = georef   
    136139
    137140    #------------------------------------------------------------------------
Note: See TracChangeset for help on using the changeset viewer.