Ignore:
Timestamp:
Feb 4, 2009, 11:29:12 AM (16 years ago)
Author:
ole
Message:

fiddle

File:
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_core/source/anuga/alpha_shape/alpha_shape.py

    r6174 r6268  
    288288            zeroind = [k for k in range(len(denom)) if \
    289289                       (denom[k]< EPSILON and  denom[k] > -EPSILON)]
    290         try:
     290
     291        if num.alltrue(denom != 0.0):               
    291292            dx = num.divide_safe(y31*dist21 - y21*dist31,denom)
    292293            dy = num.divide_safe(x21*dist31 - x31*dist21,denom)
    293         except ZeroDivisionError:
     294        else:
    294295            raise  AlphaError
    295296           
Note: See TracChangeset for help on using the changeset viewer.