Changeset 8136


Ignore:
Timestamp:
Mar 10, 2011, 3:48:40 PM (13 years ago)
Author:
wilsonr
Message:

Improved formatting of debug output.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/anuga_core/source/anuga/geometry/polygon.py

    r8073 r8136  
    10141014    # TO DO check if any of the regions fall inside one another
    10151015
    1016     log.critical('-' * 80)
    1017     log.critical('Polygon   Max triangle area (m^2)   Total area (km^2) '
    1018                  'Estimated #triangles')
    1019     log.critical('-' * 80)
     1016    log.info('-' * 80)
     1017    log.info('Polygon  Max triangle area (m^2)  Total area (km^2) '
     1018             'Estimated #triangles')
     1019    log.info('-' * 80)
    10201020       
    10211021    no_triangles = 0.0
     
    10281028        area -= this_area
    10291029
    1030         log.critical('Interior %s%s%d'
    1031                      % (('%.0f' % resolution).ljust(25),
    1032                         ('%.2f' % (this_area/1000000)).ljust(19),
    1033                         this_triangles))
    1034         #print 'Interior ',
    1035         #print ('%.0f' % resolution).ljust(25),
    1036         #print ('%.2f' % (this_area/1000000)).ljust(19),
    1037         #print '%d' % (this_triangles)
     1030        log.info('Interior %s%s%d'
     1031                 % (('%.0f' % resolution).ljust(25),
     1032                    ('%.2f' % (this_area/1000000)).ljust(19),
     1033                    this_triangles))
    10381034
    10391035    bound_triangles = area/remainder_res
    10401036    no_triangles += bound_triangles
    10411037
    1042     log.critical('Bounding %s%s%d'
    1043                  % (('%.0f' % remainder_res).ljust(25),
    1044                     ('%.2f' % (area/1000000)).ljust(19),
    1045                     bound_triangles))
    1046     #print 'Bounding ',
    1047     #print ('%.0f' % remainder_res).ljust(25),
    1048     #print ('%.2f' % (area/1000000)).ljust(19),
    1049     #print '%d' % (bound_triangles)
     1038    log.info('Bounding %s%s%d'
     1039             % (('%.0f' % remainder_res).ljust(25),
     1040                ('%.2f' % (area/1000000)).ljust(19),
     1041                bound_triangles))
    10501042
    10511043    total_number_of_triangles = no_triangles/0.7
    10521044
    1053     log.critical('Estimated total number of triangles: %d'
     1045    log.info('Estimated total number of triangles: %d'
    10541046                 % total_number_of_triangles)
    1055     log.critical('Note: This is generally about 20%% '
    1056                  'less than the final amount')
     1047    log.info('Note: This is generally about 20% less than the final amount')
    10571048
    10581049    return int(total_number_of_triangles)
Note: See TracChangeset for help on using the changeset viewer.