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

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

Location:
anuga_core/source/anuga/advection
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • anuga_core/source/anuga/advection/advection.py

    r7276 r7317  
    3232
    3333from anuga.abstract_2d_finite_volumes.domain import *
     34import anuga.utilities.log as log
    3435
    3536import numpy as num
     
    165166
    166167        """
    167         print "======================================"
    168         print "BEFORE compute_fluxes"
    169         print "stage_update",Stage.explicit_update
    170         print "stage_edge",Stage.edge_values
    171         print "stage_bdry",Stage.boundary_values
    172         print "neighbours",self.neighbours
    173         print "neighbour_edges",self.neighbour_edges
    174         print "normals",self.normals
    175         print "areas",self.areas
    176         print "radii",self.radii
    177         print "edgelengths",self.edgelengths
    178         print "tri_full_flag",self.tri_full_flag
    179         print "huge_timestep",huge_timestep
    180         print "max_timestep",max_timestep
    181         print "velocity",self.velocity
     168        log.critical("======================================")
     169        log.critical("BEFORE compute_fluxes")
     170        log.critical("stage_update=%s" % str(Stage.explicit_update))
     171        log.critical("stage_edge=%s" % str(Stage.edge_values))
     172        log.critical("stage_bdry=%s" % str(Stage.boundary_values))
     173        log.critical("neighbours=%s" % str(self.neighbours))
     174        log.critical("neighbour_edges=%s" % str(self.neighbour_edges))
     175        log.critical("normals=%s" % str(self.normals))
     176        log.critical("areas=%s" % str(self.areas))
     177        log.critical("radii=%s" % str(self.radii))
     178        log.critical("edgelengths=%s" % str(self.edgelengths))
     179        log.critical("tri_full_flag=%s" % str(self.tri_full_flag))
     180        log.critical("huge_timestep=%s" % str(huge_timestep))
     181        log.critical("max_timestep=%s" % str(max_timestep))
     182        log.critical("velocity=%s" % str(self.velocity))
    182183        """
    183184
  • anuga_core/source/anuga/advection/test_all.py

    r4978 r7317  
    2929        if os.path.isdir(file):
    3030            sys.path.append(file)
    31             #print 'Recursing into', file
    3231            test_files += get_test_files(path + os.sep + file)
    3332        elif file[:5] == 'test_' and file[-2:] == 'py':
    34             #print 'Appending', file
    3533            test_files.append(file)
    3634        else:
Note: See TracChangeset for help on using the changeset viewer.