Ignore:
Timestamp:
Nov 30, 2008, 1:09:52 PM (16 years ago)
Author:
steve
Message:

Problem with caching on windows. In interpolate.py had to introduce function wrap_Interpolate to remove error on windows.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_core/source/anuga/fit_interpolate/interpolate.py

    r6035 r6036  
    121121              'max_vertices_per_cell': max_vertices_per_cell,
    122122              'verbose': verbose}
    123                      
    124     I = apply(Interpolate, args, kwargs)
     123             
     124
     125   
     126    if use_cache is True:
     127        # Messy wrapping of Interpolate to deal with win32 error
     128        # I = cache(Interpolate, args, kwargs, verbose=verbose)
     129        # work on linux
     130        def wrap_Interpolate(args,kwargs):
     131            I = apply(Interpolate, args, kwargs)
     132            return I
     133        I = cache(wrap_Interpolate, (args, kwargs),{},
     134                  verbose=verbose)
     135    else:
     136        I = apply(Interpolate, args, kwargs)
     137
    125138                 
    126139   
     
    171184
    172185        # FIXME (Ole): Need an input check
    173        
    174186       
    175187        FitInterpolate.__init__(self,
Note: See TracChangeset for help on using the changeset viewer.