Ignore:
Timestamp:
Oct 9, 2006, 4:46:39 PM (18 years ago)
Author:
ole
Message:

Enabled caching in create_mesh_from_regions as requested in ticket:80 and
added a unittest for it.

File:
1 edited

Legend:

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

    r2263 r3715  
    133133        """Test that 'clear' works
    134134        """
     135
    135136        N = 5000  #Make N fairly small here
    136137
     
    145146       
    146147       
    147         cache(f,(a,b,c,N), {'x':x, 'y':y}, clear = 1)   
     148        cache(f, (a,b,c,N), {'x':x, 'y':y}, clear = 1)   
    148149
    149150 
     
    151152       
    152153       
    153         T4 = cache(f,(a,b,c,N), {'x':x, 'y':y}, test=1)
     154        T4 = cache(f, (a,b,c,N), {'x':x, 'y':y}, test=1)
     155        #print 'T4', T4
    154156        assert T4 is None, "Option 'test' when cache absent failed"
    155157
Note: See TracChangeset for help on using the changeset viewer.