Changeset 530


Ignore:
Timestamp:
Nov 12, 2004, 3:54:45 PM (20 years ago)
Author:
duncan
Message:

adding test, removing dead code

Location:
inundation/ga/storm_surge/pyvolution
Files:
1 added
1 edited

Legend:

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

    r529 r530  
    187187        return vertex_coordinates
    188188   
    189     def get_vertices(self,  element_ids=None):
     189    def get_vertices(self,  indexes=None):
    190190        """Get connectivity
    191         element_ids is a
     191        indexes is a
    192192        If unique is True give them only once as stored internally.
    193193        If unique is False return connectivity of all elements
     
    196196        from Numeric import take
    197197       
    198         # Don't check in yet. unique and index must work together
    199         if (element_ids ==  None):
    200             isindexes = False
    201             element_ids = range(len(self))
    202         else:
    203             isindexes = True
    204            
    205         return  take(self.triangles, element_ids)
     198        if (indexes ==  None):
     199            indexes = range(len(self))
     200           
     201        return  take(self.triangles, indexes)
    206202   
    207203    def build_vertexlist(self):
Note: See TracChangeset for help on using the changeset viewer.