Ignore:
Timestamp:
Jul 22, 2009, 9:22:11 AM (15 years ago)
Author:
rwilson
Message:

Replaced 'print' statements with log.critical() calls.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_core/source/anuga/abstract_2d_finite_volumes/generic_boundary_conditions.py

    r7276 r7317  
    77from anuga.fit_interpolate.interpolate import Modeltime_too_late
    88from anuga.fit_interpolate.interpolate import Modeltime_too_early
     9import anuga.utilities.log as log
    910
    1011import numpy as num
     
    176177                            %str(self.default_boundary)
    177178                        msg += 'Note: Further warnings will be supressed'
    178                         print msg
     179                        log.critical(msg)
    179180               
    180181                    # FIXME (Ole): Replace this crude flag with
     
    240241        # any tagged boundary later on.
    241242
    242         if verbose: print 'Find midpoint coordinates of entire boundary'
     243        if verbose: log.critical('Find midpoint coordinates of entire boundary')
    243244        self.midpoint_coordinates = num.zeros((len(domain.boundary), 2), num.float)
    244245        boundary_keys = domain.boundary.keys()
     
    275276            self.boundary_indices[(vol_id, edge_id)] = i
    276277
    277         if verbose: print 'Initialise file_function'
     278        if verbose: log.critical('Initialise file_function')
    278279        self.F = file_function(filename,
    279280                               domain,
     
    315316            msg += 'outside aren\'t used on the actual boundary segment.'
    316317            if verbose is True:           
    317                 print msg
     318                log.critical(msg)
    318319            #raise Exception(msg)
    319320
     
    365366                                %str(self.default_boundary)
    366367                            msg += 'Note: Further warnings will be supressed'
    367                             print msg
     368                            log.critical(msg)
    368369                   
    369370                        # FIXME (Ole): Replace this crude flag with
     
    441442        # any tagged boundary later on.
    442443
    443         if verbose: print 'Find midpoint coordinates of entire boundary'
     444        if verbose: log.critical('Find midpoint coordinates of entire boundary')
    444445        self.midpoint_coordinates = num.zeros((len(domain.boundary), 2), num.float)
    445446        boundary_keys = domain.boundary.keys()
     
    475476
    476477
    477         if verbose: print 'Initialise file_function'
     478        if verbose: log.critical('Initialise file_function')
    478479        self.F = file_function(filename, domain,
    479480                                   interpolation_points=self.midpoint_coordinates,
     
    501502            msg += 'outside aren\'t used on the actual boundary segment.'
    502503            if verbose is True:           
    503                 print msg
     504                log.critical(msg)
    504505            #raise Exception(msg)
    505506
Note: See TracChangeset for help on using the changeset viewer.