Ignore:
Timestamp:
Apr 14, 2007, 4:05:58 PM (17 years ago)
Author:
ole
Message:

Prepared tests for making new slope limiters default. Still a few unprepared tests remaining and
one example in test_data_manager where small timesteps are generated.

File:
1 edited

Legend:

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

    r4217 r4376  
    630630
    631631            x, y = self.get_centroid_coordinates()[k]
    632 
    633             msg += '  Triangle #%d with centroid (%.4f, %.4f) ' %(k, x, y)
    634             msg += 'had the largest computed speed: %.4f m/s\n' %(self.max_speed[k])
     632            radius = self.get_radii()[k]
     633            area = self.get_areas()[k]     
     634            max_speed = self.max_speed[k]           
     635
     636            msg += '  Triangle #%d with centroid (%.4f, %.4f), ' %(k, x, y)
     637            msg += 'area = %.4f and radius = %.4f ' %(area, radius)
     638            msg += 'had the largest computed speed: %.6f m/s ' %(max_speed)
     639            if max_speed > 0.0:
     640                msg += '(timestep=%.6f)\n' %(radius/max_speed)
     641            else:
     642                msg += '(timestep=%.6f)\n' %(0)     
    635643           
    636644            # Report all quantity values at vertices
Note: See TracChangeset for help on using the changeset viewer.