Changeset 6171


Ignore:
Timestamp:
Jan 14, 2009, 4:43:43 PM (10 years ago)
Author:
ole
Message:

Removed use of 'num' as a variable

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

Legend:

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

    r6145 r6171  
    186186        d_uh = num.reshape(num.take(xmomentum[last_time_index, :], [0,5,10,15]), (4,1))
    187187        d_vh = num.reshape(num.take(ymomentum[last_time_index, :], [0,5,10,15]), (4,1))
    188         D = num.concatenate( (d_stage, d_uh, d_vh), axis=1)
     188        D = num.concatenate((d_stage, d_uh, d_vh), axis=1)
    189189
    190190        #Reference interpolated values at midpoints on diagonal at
     
    222222        d_uh = num.reshape(num.take(xmomentum[timestep, :], [0,5,10,15]), (4,1))
    223223        d_vh = num.reshape(num.take(ymomentum[timestep, :], [0,5,10,15]), (4,1))
    224         D = num.concatenate( (d_stage, d_uh, d_vh), axis=1)
     224        D = num.concatenate((d_stage, d_uh, d_vh), axis=1)
    225225
    226226        #Reference interpolated values at midpoints on diagonal at
     
    244244        d_uh = num.reshape(num.take(xmomentum[timestep, :], [0,5,10,15]), (4,1))
    245245        d_vh = num.reshape(num.take(ymomentum[timestep, :], [0,5,10,15]), (4,1))
    246         D = num.concatenate( (d_stage, d_uh, d_vh), axis=1)
     246        D = num.concatenate((d_stage, d_uh, d_vh), axis=1)
    247247
    248248        #Reference interpolated values at midpoints on diagonal at
     
    265265        d_uh = num.reshape(num.take(xmomentum[timestep, :], [0,5,10,15]), (4,1))
    266266        d_vh = num.reshape(num.take(ymomentum[timestep, :], [0,5,10,15]), (4,1))
    267         D = num.concatenate( (d_stage, d_uh, d_vh), axis=1)
     267        D = num.concatenate((d_stage, d_uh, d_vh), axis=1)
    268268
    269269        #Reference interpolated values at midpoints on diagonal at
     
    278278        d_uh = num.reshape(num.take(xmomentum[timestep, :], [0,5,10,15]), (4,1))
    279279        d_vh = num.reshape(num.take(ymomentum[timestep, :], [0,5,10,15]), (4,1))
    280         D = num.concatenate( (d_stage, d_uh, d_vh), axis=1)
     280        D = num.concatenate((d_stage, d_uh, d_vh), axis=1)
    281281
    282282        #Reference interpolated values at midpoints on diagonal at
     
    389389        d_uh = num.reshape(num.take(xmomentum[last_time_index, :], [0,5,10,15]), (4,1))
    390390        d_vh = num.reshape(num.take(ymomentum[last_time_index, :], [0,5,10,15]), (4,1))
    391         D = num.concatenate( (d_stage, d_uh, d_vh), axis=1)
     391        D = num.concatenate((d_stage, d_uh, d_vh), axis=1)
    392392
    393393        #Reference interpolated values at midpoints on diagonal at
  • anuga_core/source/anuga/abstract_2d_finite_volumes/util.py

    r6169 r6171  
    22152215            for k, quantity in enumerate(quantities):
    22162216                if quantity != 'time' and quantity != 'elevation':
    2217                     num = int(k*100+j)
    2218                     pylab.figure(num)
     2217                    pylab.figure(int(k*100+j))
    22192218                    pylab.ylabel(quantities_label[quantity])
    22202219                    pylab.plot(t,
Note: See TracChangeset for help on using the changeset viewer.