Changeset 7317 for anuga_core/source/anuga/abstract_2d_finite_volumes/generic_boundary_conditions.py
- Timestamp:
- Jul 22, 2009, 9:22:11 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_core/source/anuga/abstract_2d_finite_volumes/generic_boundary_conditions.py
r7276 r7317 7 7 from anuga.fit_interpolate.interpolate import Modeltime_too_late 8 8 from anuga.fit_interpolate.interpolate import Modeltime_too_early 9 import anuga.utilities.log as log 9 10 10 11 import numpy as num … … 176 177 %str(self.default_boundary) 177 178 msg += 'Note: Further warnings will be supressed' 178 print msg179 log.critical(msg) 179 180 180 181 # FIXME (Ole): Replace this crude flag with … … 240 241 # any tagged boundary later on. 241 242 242 if verbose: print 'Find midpoint coordinates of entire boundary'243 if verbose: log.critical('Find midpoint coordinates of entire boundary') 243 244 self.midpoint_coordinates = num.zeros((len(domain.boundary), 2), num.float) 244 245 boundary_keys = domain.boundary.keys() … … 275 276 self.boundary_indices[(vol_id, edge_id)] = i 276 277 277 if verbose: print 'Initialise file_function'278 if verbose: log.critical('Initialise file_function') 278 279 self.F = file_function(filename, 279 280 domain, … … 315 316 msg += 'outside aren\'t used on the actual boundary segment.' 316 317 if verbose is True: 317 print msg318 log.critical(msg) 318 319 #raise Exception(msg) 319 320 … … 365 366 %str(self.default_boundary) 366 367 msg += 'Note: Further warnings will be supressed' 367 print msg368 log.critical(msg) 368 369 369 370 # FIXME (Ole): Replace this crude flag with … … 441 442 # any tagged boundary later on. 442 443 443 if verbose: print 'Find midpoint coordinates of entire boundary'444 if verbose: log.critical('Find midpoint coordinates of entire boundary') 444 445 self.midpoint_coordinates = num.zeros((len(domain.boundary), 2), num.float) 445 446 boundary_keys = domain.boundary.keys() … … 475 476 476 477 477 if verbose: print 'Initialise file_function'478 if verbose: log.critical('Initialise file_function') 478 479 self.F = file_function(filename, domain, 479 480 interpolation_points=self.midpoint_coordinates, … … 501 502 msg += 'outside aren\'t used on the actual boundary segment.' 502 503 if verbose is True: 503 print msg504 log.critical(msg) 504 505 #raise Exception(msg) 505 506
Note: See TracChangeset
for help on using the changeset viewer.