Ignore:
Timestamp:
Aug 27, 2004, 4:33:24 PM (21 years ago)
Author:
ole
Message:

Played with protection against mnimal heights and
balanced limiting. Looks good.
The demo show_balanced_limiters now runs!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inundation/ga/storm_surge/pyvolution/quantity.py

    r229 r234  
    183183                x2, y2 = self.domain.centroids[k2] #V2 centroid
    184184
    185                 #if k < 4:
    186                 #    print 'k, k0, k1, k2 = %d, %d, %d, %d' %(k, k0, k1, k2)
    187                 #    #print 'k = %d: (%f, %f), (%f, %f), (%f, %f)'\
    188                 #    #      %(k, x0, y0, x1, y1, x2, y2)
    189                 #    print 'k = %d: (%f, %f, %f)' %(k, q0, q1, q2)   
    190                
    191185                #Gradient
    192186                a[k], b[k] = gradient(x0, y0, x1, y1, x2, y2, q0, q1, q2)
     
    220214            dq[:,i] = qv[:,i] - qc
    221215       
    222         #Find min and max at this and neighbour's centroids
     216        #Find min and max of this and neighbour's centroid values
    223217        qmax = zeros(qc.shape, Float)
    224218        qmin = zeros(qc.shape, Float)       
     
    275269       
    276270        a, b = self.compute_gradients()
    277         ##for k in range(4):
    278         ##    print 'Gradients %d: %16.12f, %16.12f' %(k, a[k], b[k])
    279271
    280272        V = self.domain.get_vertex_coordinates()
Note: See TracChangeset for help on using the changeset viewer.