Changeset 4590


Ignore:
Timestamp:
Jul 4, 2007, 6:38:19 PM (17 years ago)
Author:
ole
Message:

Started test of search_functions.

Location:
anuga_core/source/anuga/fit_interpolate
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • anuga_core/source/anuga/fit_interpolate/search_functions.py

    r4522 r4590  
    88from Numeric import dot
    99
    10 from numerical_tools import get_machine_precision
     10from anuga.utilities.numerical_tools import get_machine_precision
    1111
    1212def search_tree_of_vertices(root, mesh, x):
     
    5151
    5252def _search_triangles_of_vertices(mesh, candidate_vertices, x):
     53    """Search for triangle containing x amongs candidate_vertices in mesh
     54
     55    This is called by search_tree_of_vertices once the appropriate node
     56    has been found from the quad tree.
     57
     58    This function is responsible for most of the compute time in
     59    fit and interpolate.
     60    """
     61   
    5362    #Find triangle containing x:
    5463    element_found = False
  • anuga_core/source/anuga/fit_interpolate/test_fit.py

    r4535 r4590  
    215215
    216216        interp = Fit(vertices, triangles,
    217                                 alpha=0.0)
     217                     alpha=0.0)
    218218
    219219
Note: See TracChangeset for help on using the changeset viewer.