Changeset 6222


Ignore:
Timestamp:
Jan 21, 2009, 4:33:27 PM (15 years ago)
Author:
ole
Message:

Ensured non-contiguous arrays work in caching

File:
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_core/source/anuga/caching/caching.py

    r6148 r6222  
    13821382      val = myhash(I, ids)
    13831383  elif type(T) == num.ArrayType:
    1384       # Use mean value for efficiency 
     1384      T = num.array(T) # Ensure contiguous
     1385
     1386      # Use mean value for efficiency
    13851387      val = hash(num.average(T.flat))
    13861388  elif type(T) == InstanceType:
Note: See TracChangeset for help on using the changeset viewer.