Changeset 6179


Ignore:
Timestamp:
Jan 15, 2009, 5:55:57 PM (16 years ago)
Author:
ole
Message:

Fixed up tests reflecting changes in changeset:6177

File:
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_core/source/anuga/pmesh/test_mesh_interface.py

    r5717 r6179  
    3333        polygon = geo_ref_poly.change_points_geo_ref(polygon_absolute)
    3434
    35         boundary_tags = {'walls':[0,1],'bom':[2]}
     35        boundary_tags = {'walls':[0,1],'bom':[2,3]}
    3636       
    3737        inner1_polygon_absolute = [[10,10],[20,10],[20,20],[10,20]]
     
    4444       
    4545        interior_regions = [(inner1_polygon, 5),(inner2_polygon, 10)]
     46       
     47        #print polygon
     48        #print boundary_tags
     49       
    4650        m = create_mesh_from_regions(polygon,
    4751                                     boundary_tags,
     
    6670        self.failUnless(segs[2].tag=='bom',
    6771                        'FAILED!')
    68         self.failUnless(segs[3].tag=='',
     72        self.failUnless(segs[3].tag=='bom',
    6973                        'FAILED!')
    7074
     
    255259        polygon = geo_ref_poly.change_points_geo_ref(polygon_absolute)
    256260
    257         boundary_tags = {'walls':[0,1],'bom':[2]}
     261        boundary_tags = {'walls':[0,1],'bom':[2,3]}
    258262       
    259263        inner1_polygon_absolute = [[10,10],[20,10],[20,20],[10,20]]
     
    288292        self.failUnless(segs[2].tag=='bom',
    289293                        'FAILED!')
    290         self.failUnless(segs[3].tag=='',
     294        self.failUnless(segs[3].tag=='bom',
    291295                        'FAILED!')
    292296       
     
    311315        geo_ref_poly = Geo_reference(56, x_p, y_p)
    312316       
    313         boundary_tags = {'walls':[0,1],'bom':[2]}
     317        boundary_tags = {'walls':[0,1],'bom':[2,3]}
    314318       
    315319        inner1_polygon_absolute = [[10,10],[20,10],[20,20],[10,20]]
     
    343347        self.failUnless(segs[2].tag=='bom',
    344348                        'FAILED!')
    345         self.failUnless(segs[3].tag=='',
     349        self.failUnless(segs[3].tag=='bom',
    346350                        'FAILED!')
    347351       
     
    372376     
    373377       
    374         boundary_tags = {'walls':[0,1],'bom':[2]}
     378        boundary_tags = {'walls':[0,1],'bom':[2,3]}
    375379       
    376380        interior_regions = [(inner1_polygon, density_inner1)]
     
    427431     
    428432       
    429         boundary_tags = {'walls':[0,1],'bom':[2]}
     433        boundary_tags = {'walls':[0,1],'bom':[2,3]}
    430434       
    431435        interior_regions = [(inner1_polygon, density_inner1)]
     
    475479                          [max_inner2,max_inner2],[min_inner2,max_inner2]]
    476480       
    477         boundary_tags = {'walls':[0,1],'bom':[2]}
     481        boundary_tags = {'walls':[0,1],'bom':[2,3]}
    478482       
    479483        interior_regions = [(inner1_polygon, density_inner1),
     
    522526                   [max_inner2,max_inner2],[min_inner2,max_inner2]]
    523527       
    524         boundary_tags = {'walls':[0,1],'bom':[2]}
     528        boundary_tags = {'walls':[0,1],'bom':[2,3]}
    525529
    526530        #Note the list order is important
     
    557561        polygon = [[min_x,min_y],[1000,100],[1000,1000],[100,1000]]
    558562       
    559         boundary_tags = {'walls':[0,1],'bom':[2]}
     563        boundary_tags = {'walls':[0,1],'bom':[2,3]}
    560564#        boundary_tags = {'walls':[0,1]}
    561565        # This one is inside bounding polygon - should pass
Note: See TracChangeset for help on using the changeset viewer.