Ignore:
Timestamp:
Mar 18, 2009, 3:00:24 PM (14 years ago)
Author:
ole
Message:

Removed more cluttter in search functions.

File:
1 edited

Legend:

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

    r6544 r6545  
    5353
    5454        x = [0.2, 0.7]
    55         found, s0, s1, s2, k = search_tree_of_vertices(root,
    56                                                        mesh,
    57                                                        ensure_numeric(x))
     55        found, s0, s1, s2, k = search_tree_of_vertices(root, x)
    5856        assert k == 1 # Triangle one
    5957        assert found is True
     
    8078           
    8179            found, s0, s1, s2, k = search_tree_of_vertices(root,
    82                                                            mesh,
    8380                                                           ensure_numeric(x))
    8481
     
    112109                      [10, 3]]:
    113110               
    114                 found, s0, s1, s2, k = search_tree_of_vertices(root,
    115                                                                mesh,
    116                                                                x)
     111                found, s0, s1, s2, k = search_tree_of_vertices(root, x)
    117112
    118113                if k >= 0:
     
    145140        # print x, candidate_vertices
    146141        found, sigma0, sigma1, sigma2, k = \
    147                _search_triangles_of_vertices(mesh,
    148                                              candidate_vertices,
     142               _search_triangles_of_vertices(candidate_vertices,
    149143                                             x)
    150144
     
    167161            #print x, candidate_vertices
    168162            found, sigma0, sigma1, sigma2, k = \
    169                    _search_triangles_of_vertices(mesh,
    170                                                  candidate_vertices,
     163                   _search_triangles_of_vertices(candidate_vertices,
    171164                                                 ensure_numeric(x))
    172165            if k >= 0:
     
    215208        x = [2.5, 1.5]
    216209        element_found, sigma0, sigma1, sigma2, k = \
    217                        search_tree_of_vertices(root, mesh, x)
     210                       search_tree_of_vertices(root, x)
    218211        # One point
    219212        x = [3.00005, 2.999994]
    220213        element_found, sigma0, sigma1, sigma2, k = \
    221                        search_tree_of_vertices(root, mesh, x)
     214                       search_tree_of_vertices(root, x)
    222215        assert element_found is True
    223216        assert k == 1
Note: See TracChangeset for help on using the changeset viewer.