Changeset 9330


Ignore:
Timestamp:
Sep 11, 2014, 12:48:26 AM (10 years ago)
Author:
steve
Message:

Updated to allow new quantities to be distributed properly

File:
1 edited

Legend:

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

    r9301 r9330  
    8686    #------------------------------------------------------------------------
    8787    for q in quantities:
    88         parallel_domain.set_quantity(q, quantities[q])
    89 
     88        try:
     89            parallel_domain.set_quantity(q, quantities[q])
     90        except KeyError:
     91            #print 'Try to create quantity %s'% q
     92            from anuga import Quantity
     93            Q = Quantity(parallel_domain, name=q, register=True)
     94            parallel_domain.set_quantity(q, quantities[q])
    9095
    9196    #------------------------------------------------------------------------
Note: See TracChangeset for help on using the changeset viewer.