Ignore:
Timestamp:
Jun 7, 2010, 1:04:42 PM (14 years ago)
Author:
hudson
Message:

urs2sww has an extra urs_ungridded2sww function.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/anuga_core/source/anuga/abstract_2d_finite_volumes/util.py

    r7772 r7800  
    149149        else:
    150150            return format % float(value)
    151 
    152 
    153 #################################################################################
    154 # OBSOLETE STUFF
    155 #################################################################################
    156 
    157 # @note TEMP
    158 def angle(v1, v2):
    159     """Temporary Interface to new location"""
    160 
    161     import anuga.utilities.numerical_tools as NT   
    162    
    163     msg = 'angle has moved from util.py.  '
    164     msg += 'Please use "from anuga.utilities.numerical_tools import angle"'
    165     warn(msg, DeprecationWarning)
    166 
    167     return NT.angle(v1, v2)
    168 
    169    
    170 # @note TEMP
    171 def anglediff(v0, v1):
    172     """Temporary Interface to new location"""
    173 
    174     import anuga.utilities.numerical_tools as NT
    175    
    176     msg = 'anglediff has moved from util.py.  '
    177     msg += 'Please use "from anuga.utilities.numerical_tools import anglediff"'
    178     warn(msg, DeprecationWarning)
    179 
    180     return NT.anglediff(v0, v1)   
    181 
    182 # @note TEMP
    183 def point_on_line(*args, **kwargs):
    184     """Temporary Interface to new location"""
    185 
    186     msg = 'point_on_line has moved from util.py.  '
    187     msg += 'Please use "from anuga.geometry.polygon import point_on_line"'
    188     warn(msg, DeprecationWarning)
    189 
    190     return utilities.geometry.point_on_line(*args, **kwargs)   
    191 
    192    
    193 # @note TEMP
    194 def inside_polygon(*args, **kwargs):
    195     """Temporary Interface to new location"""
    196 
    197     log.critical('inside_polygon has moved from util.py.')
    198     log.critical('Please use '
    199                  '"from anuga.utilities.polygon import inside_polygon"')
    200 
    201     return geometry.polygon.inside_polygon(*args, **kwargs)   
    202 
    203    
    204 # @note TEMP
    205 def outside_polygon(*args, **kwargs):
    206     """Temporary Interface to new location"""
    207 
    208     log.critical('outside_polygon has moved from util.py.')
    209     log.critical('Please use '
    210                  '"from anuga.geometry.polygon import outside_polygon"')
    211 
    212     return geometry.geometry.outside_polygon(*args, **kwargs)   
    213 
    214    
    215 # @note TEMP
    216 def read_polygon(*args, **kwargs):
    217     """Temporary Interface to new location"""
    218 
    219     log.critical('read_polygon has moved from util.py.')
    220     log.critical('Please use '
    221                  '"from anuga.geometry.polygon import read_polygon"')
    222 
    223     return geometry.geometry.read_polygon(*args, **kwargs)   
    224 
    225 
    226 # @note TEMP
    227 def populate_polygon(*args, **kwargs):
    228     """Temporary Interface to new location"""
    229 
    230     log.critical('populate_polygon has moved from util.py.')
    231     log.critical('Please use '
    232                  '"from anuga.utilities.polygon import populate_polygon"')
    233 
    234     return utilities.geometry.populate_polygon(*args, **kwargs)   
    235 
    236 
    237 #################################################################################
    238 # End of obsolete stuff ?
    239 #################################################################################
    240 
    241 # @note TEMP
    242 def start_screen_catcher(dir_name, myid='', numprocs='', extra_info='',
    243                          verbose=False):
    244     """Temporary Interface to new location"""
    245     from anuga.shallow_water.data_manager import start_screen_catcher \
    246          as dm_start_screen_catcher
    247 
    248     log.critical('start_screen_catcher has moved from util.py.')
    249     log.critical('Please use "from anuga.shallow_water.data_manager import '
    250                  'start_screen_catcher"')
    251    
    252     return dm_start_screen_catcher(dir_name, myid='', numprocs='',
    253                                    extra_info='', verbose=False)
    254 
    255 
    256151
    257152##
Note: See TracChangeset for help on using the changeset viewer.