Changeset 2625 for inundation/parallel/run_parallel_merimbula.py
- Timestamp:
- Mar 29, 2006, 9:41:58 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
inundation/parallel/run_parallel_merimbula.py
r2152 r2625 87 87 # read in the test files 88 88 89 filename = 'test-100.tsh'90 #filename = 'merimbula_10785.tsh'89 # filename = 'test-100.tsh' 90 filename = 'merimbula_10785.tsh' 91 91 nx = numprocs 92 92 ny = 1 … … 95 95 96 96 domain_full = pmesh_to_domain_instance(filename, Advection_Domain) 97 domain_full.set_quantity('stage', Set_Stage(200.0,300.0,1.0))98 # domain.set_quantity('stage', Set_Stage(756000.0,756500.0,4.0))97 # domain_full.set_quantity('stage', Set_Stage(200.0,300.0,1.0)) 98 domain_full.set_quantity('stage', Set_Stage(756000.0,756500.0,4.0)) 99 99 100 100 nodes, triangles, boundary, triangles_per_proc, quantities =\ 101 101 pmesh_divide(domain_full, nx, ny) 102 102 103 103 # subdivide the mesh 104 104 rect = array(domain_full.xy_extent, Float) 105 106 print rect107 105 108 106 rect = array(rect, Float) … … 128 126 rec_submesh(0) 129 127 130 #if myid == 0:131 # print 'ghost'132 # print ghost_recv_dict133 #134 #if myid == 0:135 # print 'full'136 # print full_send_dict137 138 139 128 pypar.broadcast(rect,0) 140 print rect141 129 142 130 domain = Parallel_Domain(points, vertices, boundary, … … 150 138 151 139 T = Transmissive_boundary(domain) 152 R = Reflective_boundary(domain)153 domain.set_boundary( {'outflow': R, 'inflow': R, 'inner':R, 'exterior': R, 'open':R} )140 #R = Reflective_boundary(domain) 141 domain.set_boundary( {'outflow': T, 'inflow': T, 'inner':T, 'exterior': T, 'open':T, 'ghost':None} ) 154 142 155 143 … … 170 158 171 159 160 from norms import linf_norm 172 161 173 162 #yieldstep = 1 163 #finaltime = 4000 164 174 165 yieldstep = 1000 175 166 finaltime = 50000 176 # finaltime = 4000 167 177 168 for t in domain.evolve(yieldstep = yieldstep, finaltime = finaltime): 178 169 if myid == 0: 179 170 domain.write_time() 171 ## Stage = domain.quantities['stage'] 172 ## max_stage = max(max(Stage.edge_values)) 173 ## print max_stage 174 ## if max_stage > 4.0: 175 ## print "######################", max_stage 180 176 181 177 if myid == 0:
Note: See TracChangeset
for help on using the changeset viewer.