Ignore:
Timestamp:
Aug 31, 2014, 9:15:34 PM (10 years ago)
Author:
steve
Message:

small changes plot_utils

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/anuga_core/demos/channel3_parallel.py

    r8728 r9309  
    99import anuga
    1010
    11 import anuga_parallel
     11#import anuga_parallel
    1212
    1313
     
    4646
    4747
    48 if anuga_parallel.myid == 0:
     48if anuga.myid == 0:
    4949    points, vertices, boundary = anuga.rectangular_cross(int(length/dx),
    5050                                         int(width/dy), len1=length, len2=width)
    5151    domain = anuga.Domain(points, vertices, boundary)
    5252    domain.set_name('channel3')                  # Output name
     53    domain.set_flow_algorithm('DE0')
    5354    print domain.statistics()
    5455
     
    6465# Distribute domain on processor 0 to to other processors
    6566#------------------------------------------------------------------------------
    66 parameters = dict(ghost_layer_width=3)
    67 domain = anuga_parallel.distribute(domain, verbose= True, parameters=parameters)
     67#parameters = dict(ghost_layer_width=3)
     68domain = anuga.distribute(domain, verbose= True)
    6869
    6970
     
    8182#------------------------------------------------------------------------------
    8283for t in domain.evolve(yieldstep=0.1, finaltime=16.0):
    83     if anuga_parallel.myid == 0:
     84    if anuga.myid == 0:
    8485        print domain.timestepping_statistics()
    8586
     
    9394domain.sww_merge(verbose=True)
    9495
    95 anuga_parallel.finalize()
     96anuga.finalize()
    9697       
Note: See TracChangeset for help on using the changeset viewer.