Changeset 686
- Timestamp:
- Dec 7, 2004, 5:24:55 PM (20 years ago)
- Location:
- inundation/ga/storm_surge
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
inundation/ga/storm_surge/examples/beach.py
r673 r686 31 31 print 'Creating domain from %s.tsh' %name 32 32 domain = pmesh_to_domain_instance(name + '.tsh', Domain) 33 34 #HACK to remove internal boundary (until we get a solution)35 #Is this still necessary?36 for b in domain.boundary.keys():37 if domain.boundary[b] == '':38 del domain.boundary[b]39 33 40 34 domain = Domain(domain.coordinates, domain.triangles, domain.boundary) -
inundation/ga/storm_surge/pyvolution/pmesh2domain.py
r663 r686 119 119 v2 = seg[1] 120 120 for key in [(v1,v2),(v2,v1)]: 121 if sides.has_key(key): 121 if sides.has_key(key) and marker <> "": 122 #"" represents null. Don't put these into the dictionary 122 123 #this creates a dict of lists of faces, indexed by marker 123 124 #tagged_edges.setdefault(marker,[]).append(sides[key]) 124 125 marker_dict[sides[key]] = marker 126 125 127 return marker_dict 126 128
Note: See TracChangeset
for help on using the changeset viewer.