Ignore:
Timestamp:
Mar 3, 2011, 6:04:03 PM (13 years ago)
Author:
wilsonr
Message:

Made changes described in ticket 359.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/anuga_core/source/anuga/abstract_2d_finite_volumes/neighbour_mesh.py

    r8070 r8124  
    262262            if neighbourdict.has_key((a,b)):
    263263                    msg = "Edge 2 of triangle %d is duplicating edge %d of triangle %d.\n" %(i,neighbourdict[a,b][1],neighbourdict[a,b][0])
    264                     raise Exception, msg
     264                    raise Exception(msg)
    265265            if neighbourdict.has_key((b,c)):
    266266                    msg = "Edge 0 of triangle %d is duplicating edge %d of triangle %d.\n" %(i,neighbourdict[b,c][1],neighbourdict[b,c][0])
    267                     raise msg
     267                    raise Exception(msg)
    268268            if neighbourdict.has_key((c,a)):
    269269                    msg = "Edge 1 of triangle %d is duplicating edge %d of triangle %d.\n" %(i,neighbourdict[c,a][1],neighbourdict[c,a][0])
    270                     raise msg
     270                    raise Exception(msg)
    271271
    272272            neighbourdict[a,b] = (i, 2) #(id, edge)
     
    427427            msg = 'Boundary dictionary must be defined before '
    428428            msg += 'building boundary structure'
    429             raise msg
     429            raise Exception(msg)
    430430
    431431
     
    505505            if p0 is None:
    506506                msg = 'Impossible: p0 is None!?'
    507                 raise Exception, msg
     507                raise Exception(msg)
    508508
    509509            # Register potential paths from A to B
     
    876876        if is_outside_polygon(point, polygon):
    877877            msg = 'Point %s is outside mesh' %str(point)
    878             raise Exception, msg
     878            raise Exception(msg)
    879879
    880880
     
    889889
    890890        msg = 'Point %s not found within a triangle' %str(point)
    891         raise Exception, msg
     891        raise Exception(msg)
    892892
    893893
Note: See TracChangeset for help on using the changeset viewer.