Changeset 636 for inundation/ga


Ignore:
Timestamp:
Nov 30, 2004, 2:19:54 PM (20 years ago)
Author:
ole
Message:

Comments

Location:
inundation/ga/storm_surge/pyvolution
Files:
2 edited

Legend:

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

    r601 r636  
    6767        from Numeric import array, zeros, Int, Float, maximum, sqrt, sum
    6868
    69         General_mesh.__init__(self,coordinates, triangles)
     69        General_mesh.__init__(self, coordinates, triangles)
    7070
    7171        N = self.number_of_elements
     
    306306            neighbour array has unique negative indices for boundary
    307307            boundary_segments array imposes an ordering on segments
    308             (not otherwise available from the dictionary)             
     308            (not otherwise available from the dictionary)
     309
     310        Note: If a segment is listed in the boundary dictionary
     311        it *will* become a boundary - even if there is a neighbouring triangle.
     312        This would be the case for internal boundaries
    309313        """
    310314
     
    320324        index = -1       
    321325        for id, edge in self.boundary_segments:
     326
     327            #FIXME: One would detect internal boundaries as follows
     328            #if self.neighbours[id, edge] > -1:
     329            #    print 'Internal boundary'
     330           
    322331            self.neighbours[id, edge] = index
    323332            index -= 1
  • inundation/ga/storm_surge/pyvolution/pmesh2domain.py

    r415 r636  
    1919       
    2020    assert issubclass(DomainClass, Domain), "DomainClass is not a subclass of Domain."
     21
     22
     23   
    2124    domain = DomainClass(vertex_coordinates, volumes, marker_dict,
    2225                         tagged_elements = tagged_elements_dict )
    2326
     27
     28   
     29    #FIXME (Ole): Is this really the right place to apply the a default
     30    #value specific to the shallow water wave equation?
     31    #The 'assert' above indicates that any subclass of Domain is acceptable.
     32    #Suggestion - module shallow_water.py will eventually take care of this
     33    #(when I get around to it) so it should be removed from here. 
     34   
    2435    # set the water level to be the elevation
    2536    if vertex_quantity_dict.has_key('elevation') and not vertex_quantity_dict.has_key('level'):
Note: See TracChangeset for help on using the changeset viewer.