Changeset 6177


Ignore:
Timestamp:
Jan 15, 2009, 4:27:51 PM (10 years ago)
Author:
kristy
Message:

Better error message for boundary segment that has not been tagged.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_core/source/anuga/pmesh/mesh_interface.py

    r6163 r6177  
    144144                raise SegmentError, msg
    145145
    146        
     146        for i in range(max_points):
     147            found = False
     148            for tag in boundary_tags:
     149                if i in boundary_tags[tag]:
     150                    found = True
     151            if found is False:
     152                msg = 'Segment %d was not asigned a boundary_tag' %i
     153                raise Exception, msg
     154               
    147155
    148156   
Note: See TracChangeset for help on using the changeset viewer.