Ignore:
Timestamp:
Mar 5, 2009, 2:48:11 PM (16 years ago)
Author:
rwilson
Message:

Took Ole's changes to the test_get_maximum_inundation code and made it numpy.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/numpy/anuga/shallow_water/tsunami_okada.py

    r6410 r6472  
    215215            yrec=x
    216216            for i in range(0,len(zrec[0])):
    217                 if (num.alltrue(zrec[0][i]==yrec) and
    218                     num.alltrue(zrec[1][i]==xrec)):
     217                if (num.any(zrec[0][i]==yrec) and num.any(zrec[1][i]==xrec)):
    219218                    Z=zrec[2][i]
    220219                    Z=0.001*Z
Note: See TracChangeset for help on using the changeset viewer.