Changeset 686


Ignore:
Timestamp:
Dec 7, 2004, 5:24:55 PM (20 years ago)
Author:
duncan
Message:

fixed bug that was giving boundaries a "" tag.

Location:
inundation/ga/storm_surge
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • inundation/ga/storm_surge/examples/beach.py

    r673 r686  
    3131print 'Creating domain from %s.tsh' %name
    3232domain = 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]
    3933
    4034domain = Domain(domain.coordinates, domain.triangles, domain.boundary)
  • inundation/ga/storm_surge/pyvolution/pmesh2domain.py

    r663 r686  
    119119        v2 = seg[1]
    120120        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
    122123                #this creates a dict of lists of faces, indexed by marker
    123124                #tagged_edges.setdefault(marker,[]).append(sides[key])
    124125                marker_dict[sides[key]] = marker
     126
    125127    return marker_dict
    126128
Note: See TracChangeset for help on using the changeset viewer.