Changeset 9309 for trunk/anuga_core/demos/channel3_parallel.py
- Timestamp:
- Aug 31, 2014, 9:15:34 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/anuga_core/demos/channel3_parallel.py
r8728 r9309 9 9 import anuga 10 10 11 import anuga_parallel11 #import anuga_parallel 12 12 13 13 … … 46 46 47 47 48 if anuga _parallel.myid == 0:48 if anuga.myid == 0: 49 49 points, vertices, boundary = anuga.rectangular_cross(int(length/dx), 50 50 int(width/dy), len1=length, len2=width) 51 51 domain = anuga.Domain(points, vertices, boundary) 52 52 domain.set_name('channel3') # Output name 53 domain.set_flow_algorithm('DE0') 53 54 print domain.statistics() 54 55 … … 64 65 # Distribute domain on processor 0 to to other processors 65 66 #------------------------------------------------------------------------------ 66 parameters = dict(ghost_layer_width=3)67 domain = anuga _parallel.distribute(domain, verbose= True, parameters=parameters)67 #parameters = dict(ghost_layer_width=3) 68 domain = anuga.distribute(domain, verbose= True) 68 69 69 70 … … 81 82 #------------------------------------------------------------------------------ 82 83 for t in domain.evolve(yieldstep=0.1, finaltime=16.0): 83 if anuga _parallel.myid == 0:84 if anuga.myid == 0: 84 85 print domain.timestepping_statistics() 85 86 … … 93 94 domain.sww_merge(verbose=True) 94 95 95 anuga _parallel.finalize()96 anuga.finalize() 96 97
Note: See TracChangeset
for help on using the changeset viewer.