Ignore:
Timestamp:
Jun 14, 2013, 9:13:24 PM (12 years ago)
Author:
steve
Message:

Small changes to deal with spatial functions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/anuga_core/source/anuga/utilities/function_utils.py

    r8879 r8920  
    55from anuga.fit_interpolate.interpolate import Modeltime_too_early
    66from anuga.fit_interpolate.interpolate import Modeltime_too_late
     7
     8import warnings
     9#warnings.filterwarnings('default')
    710
    811def determine_function_type(function):
     
    4043                    function(t)
    4144                except:
    42                     print 'problem calling with one scalar argument'
     45                    #print 'problem calling with one scalar argument'
    4346                    msg = 'Input argument cannot be called as f(t), f(x,y) or f(x,y,t)'
    4447                    raise Exception, msg
     
    6669            else:
    6770                # Pass control to default left function
     71
     72                warnings.warn('Using default_left_value')
    6873                if callable(default_left_value):
    6974                    result = default_left_value(t)
     
    7782            else:
    7883                # Pass control to default right function
     84
     85                warnings.warn('Using default_right_value')
    7986                if callable(default_right_value):
    8087                    result = default_right_value(t)
Note: See TracChangeset for help on using the changeset viewer.