- Timestamp:
- Mar 3, 2011, 6:04:03 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/anuga_core/source/anuga/abstract_2d_finite_volumes/neighbour_mesh.py
r8070 r8124 262 262 if neighbourdict.has_key((a,b)): 263 263 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 , msg264 raise Exception(msg) 265 265 if neighbourdict.has_key((b,c)): 266 266 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 msg267 raise Exception(msg) 268 268 if neighbourdict.has_key((c,a)): 269 269 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 msg270 raise Exception(msg) 271 271 272 272 neighbourdict[a,b] = (i, 2) #(id, edge) … … 427 427 msg = 'Boundary dictionary must be defined before ' 428 428 msg += 'building boundary structure' 429 raise msg429 raise Exception(msg) 430 430 431 431 … … 505 505 if p0 is None: 506 506 msg = 'Impossible: p0 is None!?' 507 raise Exception , msg507 raise Exception(msg) 508 508 509 509 # Register potential paths from A to B … … 876 876 if is_outside_polygon(point, polygon): 877 877 msg = 'Point %s is outside mesh' %str(point) 878 raise Exception , msg878 raise Exception(msg) 879 879 880 880 … … 889 889 890 890 msg = 'Point %s not found within a triangle' %str(point) 891 raise Exception , msg891 raise Exception(msg) 892 892 893 893
Note: See TracChangeset
for help on using the changeset viewer.