Ignore:
Timestamp:
Jan 31, 2007, 2:25:12 PM (18 years ago)
Author:
ole
Message:

More diagnostics

File:
1 edited

Legend:

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

    r4200 r4201  
    578578            msg += '\n'
    579579            # Find index of largest computed flux speed
    580             i = argmax(self.max_speed)
    581 
    582             x, y = self.get_centroid_coordinates()[i]
    583 
    584             s = 'Triangle #%d with centroid (%.4f, %.4f) ' %(i, x, y)
    585             s += 'had the largest computed speed: %.4f m/s' %(self.max_speed[i])
    586 
    587             # FIXME (Ole): Maybe add all quantity values at vertices
    588 
     580            k = argmax(self.max_speed)
     581
     582            x, y = self.get_centroid_coordinates()[k]
     583
     584            s = 'Triangle #%d with centroid (%.4f, %.4f) ' %(k, x, y)
     585            s += 'had the largest computed speed: %.4f m/s\n' %(self.max_speed[k])
    589586            msg += s
     587           
     588            # Report all quantity values at vertices
     589            for name in self.quantities:
     590                q = self.quantities[name]
     591                X,Y,A,V = q.get_vertex_values()               
     592               
     593                s = '  %s (vertex values):\t %.4f, %.4f, %.4f\n'\
     594                    %(name, A[3*k], A[3*k+1], A[3*k+2])
     595
     596                msg += s
     597
     598
     599
     600
     601
    590602
    591603        return msg
Note: See TracChangeset for help on using the changeset viewer.