Changeset 636 for inundation/ga
- Timestamp:
- Nov 30, 2004, 2:19:54 PM (20 years ago)
- Location:
- inundation/ga/storm_surge/pyvolution
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
inundation/ga/storm_surge/pyvolution/mesh.py
r601 r636 67 67 from Numeric import array, zeros, Int, Float, maximum, sqrt, sum 68 68 69 General_mesh.__init__(self, coordinates, triangles)69 General_mesh.__init__(self, coordinates, triangles) 70 70 71 71 N = self.number_of_elements … … 306 306 neighbour array has unique negative indices for boundary 307 307 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 309 313 """ 310 314 … … 320 324 index = -1 321 325 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 322 331 self.neighbours[id, edge] = index 323 332 index -= 1 -
inundation/ga/storm_surge/pyvolution/pmesh2domain.py
r415 r636 19 19 20 20 assert issubclass(DomainClass, Domain), "DomainClass is not a subclass of Domain." 21 22 23 21 24 domain = DomainClass(vertex_coordinates, volumes, marker_dict, 22 25 tagged_elements = tagged_elements_dict ) 23 26 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 24 35 # set the water level to be the elevation 25 36 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.