Changeset 9054


Ignore:
Timestamp:
Feb 19, 2014, 10:57:17 AM (11 years ago)
Author:
steve
Message:

Just added some tests for regions

Location:
trunk/anuga_core/source/anuga/abstract_2d_finite_volumes
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/anuga_core/source/anuga/abstract_2d_finite_volumes/region.py

    r9009 r9054  
    2323class Region(object):
    2424    """
    25     Helper class to setup region (defined by indices, polygon or center/radius)
     25    Setup region (defined by indices, polygon or center/radius).
     26    Useful in defining where to apply certain operations
     27   
     28    expand_polygon=True then calculation of intersection of polygon
     29    with triangles based on vertices, otherwise based just on centroids
     30   
    2631    """
    2732
     
    275280        self.region = region
    276281        self.value = value
    277         delf.domain = self.region.domain
     282        self.domain = self.region.domain
    278283       
    279284       
  • trunk/anuga_core/source/anuga/abstract_2d_finite_volumes/test_tag_region.py

    r9001 r9054  
    3434    return 23.0
    3535
    36 class Test_Region(unittest.TestCase):
     36class Test_tag_region(unittest.TestCase):
    3737    def setUp(self):
    3838        pass
     
    254254
    255255if __name__ == "__main__":
    256     suite = unittest.makeSuite(Test_Region, 'test')   
     256    suite = unittest.makeSuite(Test_tag_region, 'test')   
    257257    runner = unittest.TextTestRunner()
    258258    runner.run(suite)
Note: See TracChangeset for help on using the changeset viewer.