Changeset 8920


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

Small changes to deal with spatial functions

Location:
trunk/anuga_core/source
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/anuga_core/source/anuga/shallow_water/boundaries.py

    r8820 r8920  
    496496
    497497    This function is a thin wrapper around the generic File_boundary. The
    498     difference between the file_boundary and field_boundary is only that the
    499     field_boundary will allow you to change the level of the stage height when
     498    difference between the File_boundary and Field_boundary is only that the
     499    Field_boundary will allow you to change the level of the stage height when
    500500    you read in the boundary condition. This is very useful when running
    501501    different tide heights in the same area as you need only to convert one
    502502    boundary condition to a SWW file, ideally for tide height of 0 m
    503     (saving disk space). Then you can use field_boundary to read this SWW file
     503    (saving disk space). Then you can use Field_boundary to read this SWW file
    504504    and change the stage height (tide) on the fly depending on the scenario.
    505505    """
  • 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.