Changeset 2523


Ignore:
Timestamp:
Mar 10, 2006, 5:29:37 PM (19 years ago)
Author:
duncan
Message:

changing links

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inundation/pmesh/mesh.py

    r2396 r2523  
    3232SET_COLOUR='red'
    3333
    34 # FIXME (DSG-ALL)When the dependancies between pyvolution and utils
    35 #are sorted out this can be changed   
    36 def gradient(x0, y0, x1, y1, x2, y2, q0, q1, q2):
    37     """
    38     """
    39    
    40     det = (y2-y0)*(x1-x0) - (y1-y0)*(x2-x0)           
    41     a = (y2-y0)*(q1-q0) - (y1-y0)*(q2-q0)
    42     a /= det
    43 
    44     b = (x1-x0)*(q2-q0) - (x2-x0)*(q1-q0)
    45     b /= det           
    46 
    47     return a, b
    48 
    49 ##############################################
    50 #Initialise module
    51 
    52 #FIXME (DSG) Don't have this dependent on pyvolution!
    53 #Changed by Ole: Let util.py make the decision
    54 #from pyvolution.util import gradient
    55 #import compile
    56 #if compile.can_use_C_extension('util_ext.c'):
    57 #    from util_ext import gradient, point_on_line
    58 #else:
    59 #    gradient = gradient_python
     34#FIXME: this is not tested.
     35from utilities.util_ext import gradient
     36
    6037
    6138
Note: See TracChangeset for help on using the changeset viewer.