Changeset 7035 for branches/numpy/anuga/pmesh/test_mesh_interface.py
- Timestamp:
- May 14, 2009, 2:24:54 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/numpy/anuga/pmesh/test_mesh_interface.py
r6360 r7035 589 589 inner_polygon = [[800,400], [900,500], [800,600]] 590 590 interior_regions = [(inner_polygon, 5)] 591 592 m = create_mesh_from_regions(polygon, 593 boundary_tags, 594 10000000, 595 interior_regions=interior_regions) 591 596 try: 592 597 m = create_mesh_from_regions(polygon, … … 600 605 msg += 'does not cause an Exception to be raised' 601 606 raise Exception, msg 607 608 609 def test_create_mesh_with_segments_out_of_bounds(self): 610 """Test that create_mesh_from_regions fails when a segment is out of bounds. 611 """ 612 613 # These are the absolute values 614 min_x = 10 615 min_y = 88 616 polygon = [[min_x,min_y],[1000,100],[1000,1000],[100,1000]] 617 618 619 boundary_tags = {'walls': [0,1], 'bom':[2,3], 'out': [5]} 620 621 # This one is inside bounding polygon - should pass 622 inner_polygon = [[800,400],[900,500],[800,600]] 623 624 interior_regions = [(inner_polygon, 5)] 625 626 627 try: 628 m = create_mesh_from_regions(polygon, 629 boundary_tags, 630 10000000, 631 interior_regions=interior_regions) 632 except: 633 pass 634 else: 635 msg = 'Tags are listed repeatedly, but create mesh from regions ' 636 msg += 'does not cause an Exception to be raised' 637 raise Exception, msg 638 639 640 602 641 603 642 def test_create_mesh_from_regions_with_duplicate_verts(self):
Note: See TracChangeset
for help on using the changeset viewer.