Changeset 6179
- Timestamp:
- Jan 15, 2009, 5:55:57 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_core/source/anuga/pmesh/test_mesh_interface.py
r5717 r6179 33 33 polygon = geo_ref_poly.change_points_geo_ref(polygon_absolute) 34 34 35 boundary_tags = {'walls':[0,1],'bom':[2 ]}35 boundary_tags = {'walls':[0,1],'bom':[2,3]} 36 36 37 37 inner1_polygon_absolute = [[10,10],[20,10],[20,20],[10,20]] … … 44 44 45 45 interior_regions = [(inner1_polygon, 5),(inner2_polygon, 10)] 46 47 #print polygon 48 #print boundary_tags 49 46 50 m = create_mesh_from_regions(polygon, 47 51 boundary_tags, … … 66 70 self.failUnless(segs[2].tag=='bom', 67 71 'FAILED!') 68 self.failUnless(segs[3].tag==' ',72 self.failUnless(segs[3].tag=='bom', 69 73 'FAILED!') 70 74 … … 255 259 polygon = geo_ref_poly.change_points_geo_ref(polygon_absolute) 256 260 257 boundary_tags = {'walls':[0,1],'bom':[2 ]}261 boundary_tags = {'walls':[0,1],'bom':[2,3]} 258 262 259 263 inner1_polygon_absolute = [[10,10],[20,10],[20,20],[10,20]] … … 288 292 self.failUnless(segs[2].tag=='bom', 289 293 'FAILED!') 290 self.failUnless(segs[3].tag==' ',294 self.failUnless(segs[3].tag=='bom', 291 295 'FAILED!') 292 296 … … 311 315 geo_ref_poly = Geo_reference(56, x_p, y_p) 312 316 313 boundary_tags = {'walls':[0,1],'bom':[2 ]}317 boundary_tags = {'walls':[0,1],'bom':[2,3]} 314 318 315 319 inner1_polygon_absolute = [[10,10],[20,10],[20,20],[10,20]] … … 343 347 self.failUnless(segs[2].tag=='bom', 344 348 'FAILED!') 345 self.failUnless(segs[3].tag==' ',349 self.failUnless(segs[3].tag=='bom', 346 350 'FAILED!') 347 351 … … 372 376 373 377 374 boundary_tags = {'walls':[0,1],'bom':[2 ]}378 boundary_tags = {'walls':[0,1],'bom':[2,3]} 375 379 376 380 interior_regions = [(inner1_polygon, density_inner1)] … … 427 431 428 432 429 boundary_tags = {'walls':[0,1],'bom':[2 ]}433 boundary_tags = {'walls':[0,1],'bom':[2,3]} 430 434 431 435 interior_regions = [(inner1_polygon, density_inner1)] … … 475 479 [max_inner2,max_inner2],[min_inner2,max_inner2]] 476 480 477 boundary_tags = {'walls':[0,1],'bom':[2 ]}481 boundary_tags = {'walls':[0,1],'bom':[2,3]} 478 482 479 483 interior_regions = [(inner1_polygon, density_inner1), … … 522 526 [max_inner2,max_inner2],[min_inner2,max_inner2]] 523 527 524 boundary_tags = {'walls':[0,1],'bom':[2 ]}528 boundary_tags = {'walls':[0,1],'bom':[2,3]} 525 529 526 530 #Note the list order is important … … 557 561 polygon = [[min_x,min_y],[1000,100],[1000,1000],[100,1000]] 558 562 559 boundary_tags = {'walls':[0,1],'bom':[2 ]}563 boundary_tags = {'walls':[0,1],'bom':[2,3]} 560 564 # boundary_tags = {'walls':[0,1]} 561 565 # This one is inside bounding polygon - should pass
Note: See TracChangeset
for help on using the changeset viewer.