Changeset 1053


Ignore:
Timestamp:
Mar 9, 2005, 7:29:59 PM (20 years ago)
Author:
ole
Message:

Added check

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inundation/ga/storm_surge/pyvolution/util.py

    r1043 r1053  
    1616    v1 = v[0]/l
    1717    v2 = v[1]/l
    18        
    19     theta = acos(v1)
     18
     19    try:       
     20        theta = acos(v1)
     21    except ValueError, e:
     22        print 'Angle acos(%s) failed: %s' %(str(v1), e)         
    2023
    2124    if v2 < 0:
Note: See TracChangeset for help on using the changeset viewer.