Changeset 8282


Ignore:
Timestamp:
Dec 13, 2011, 5:29:12 PM (13 years ago)
Author:
steve
Message:

Working on merging sww from paralle runs

File:
1 edited

Legend:

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

    r8281 r8282  
    6363        domain_dir = domain.get_datadir()
    6464        georef = domain.geo_reference
     65        number_of_global_triangles = domain.number_of_triangles
     66        number_of_global_nodes = domain.number_of_nodes
    6567       
    6668        # FIXME - what other attributes need to be transferred?
    6769
    6870        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)
    7073    else:
    7174        if verbose: print 'P%d: Receiving domain attributes' %(myid)
    7275
    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)
    7478
    7579
     
    102106                distribute_mesh(domain, verbose=verbose)
    103107
    104         number_of_global_triangles = len(tri_map)
    105         number_of_global_nodes = len(node_map)
    106108
    107109        # Extract l2g maps
     
    126128                rec_submesh(0, verbose)
    127129
    128         number_of_global_triangles = len(tri_map)
    129         number_of_global_nodes = len(node_map)
     130
    130131
    131132        # Extract l2g maps
Note: See TracChangeset for help on using the changeset viewer.