Changeset 8573
- Timestamp:
- Sep 12, 2012, 11:14:00 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/anuga_core/source/anuga_parallel/run_parallel_sw_rectangular_cross.py
r8571 r8573 44 44 #dx = dy = 0.00125 45 45 #dx = dy = 0.5 46 domain = rectangular_cross_domain(int(length/dx), int(width/dy),46 seq_domain = rectangular_cross_domain(int(length/dx), int(width/dy), 47 47 len1=length, len2=width, verbose=verbose) 48 48 49 domain.set_store(False)50 domain.set_quantity('elevation', lambda x,y : -1.0-x )51 domain.set_quantity('stage', 1.0)52 domain.print_statistics()49 seq_domain.set_store(False) 50 seq_domain.set_quantity('elevation', lambda x,y : -1.0-x ) 51 seq_domain.set_quantity('stage', 1.0) 52 seq_domain.print_statistics() 53 53 else: 54 domain = None54 seq_domain = None 55 55 56 56 t1 = time.time() … … 66 66 67 67 # setup parameters to test using different ghost_layer_widths 68 parameters = dict(ghost_layer_width = 4) 69 domain = distribute(domain,verbose=verbose, parameters=parameters) 68 parameters = dict(ghost_layer_width = 2) 69 domain = distribute(seq_domain,verbose=verbose, parameters=parameters) 70 71 del seq_domain 72 70 73 71 74 t2 = time.time()
Note: See TracChangeset
for help on using the changeset viewer.