Changeset 7818 for anuga_work/development/anuga_1d/quantity.py
- Timestamp:
- Jun 11, 2010, 10:27:11 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_work/development/anuga_1d/quantity.py
r7815 r7818 232 232 except ValueError: 233 233 msg = ("Illegal type for variable 'numeric': %s" % type(numeric)) 234 raise Exception , msg234 raise Exception(msg) 235 235 self.set_values_from_constant(numeric) 236 236 … … 299 299 if location not in ['vertices', 'centroids', 'unique_vertices']: 300 300 msg = 'Invalid location: %s, (possible choices vertices, centroids, unique_vertices)' %location 301 raise msg301 raise Exception(msg) 302 302 303 303 if X is None: 304 304 msg = 'Given values are None' 305 raise msg305 raise Exception(msg) 306 306 307 307 import types … … 441 441 if location not in ['vertices', 'centroids', 'unique vertices']: 442 442 msg = 'Invalid location: %s' %location 443 raise msg443 raise Exception(msg) 444 444 445 445 import types, Numeric … … 463 463 if cells is None: 464 464 msg = 'Unique vertex not associated with cells' 465 raise msg465 raise Exception(msg) 466 466 467 467 # Go through all cells, vertex pairs … … 614 614 if sum(equal(denominator, 0.0)) > 0.0: 615 615 msg = 'Zero division in semi implicit update. Call Stephen :-)' 616 raise msg616 raise Exception(msg) 617 617 else: 618 618 #Update conserved_quantities from semi implicit updates
Note: See TracChangeset
for help on using the changeset viewer.