Changeset 598


Ignore:
Timestamp:
Nov 19, 2004, 12:01:28 PM (20 years ago)
Author:
duncan
Message:

adding test for internal boundaries. Warning, it fails the test!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inundation/ga/storm_surge/pyvolution/test_mesh.py

    r486 r598  
    597597
    598598
     599
     600    def test_internal_boundaries(self):
     601        """
     602        get values based on triangle lists.
     603        """
     604        from mesh_factory import rectangular
     605        from shallow_water import Domain
     606        from Numeric import zeros, Float
     607       
     608        #Create basic mesh
     609        points, vertices, boundary = rectangular(1, 3)
     610
     611        # Add an internal boundary
     612        boundary[(2,0)] = 'internal'
     613        boundary[(1,0)] = 'internal'
     614       
     615        #Create shallow water domain
     616        domain = Domain(points, vertices, boundary)
     617        domain.build_tagged_elements_dictionary({'bottom':[0,1],
     618                                                 'top':[4,5],
     619                                                 'all':[0,1,2,3,4,5]})
     620
     621       
    599622       
    600623       
Note: See TracChangeset for help on using the changeset viewer.