Changeset 2154


Ignore:
Timestamp:
Dec 19, 2005, 3:27:46 PM (18 years ago)
Author:
ole
Message:

Made boundary ordering unique in File_boundary

Location:
inundation/pyvolution
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • inundation/pyvolution/generic_boundary_conditions.py

    r1900 r2154  
    202202       
    203203
    204         #Record ordering #FIXME: should this happen in domain.py?
     204        #Make ordering unique #FIXME: should this happen in domain.py?
     205        boundary_keys.sort()
     206
     207
     208        #Record ordering #FIXME: should this also happen in domain.py?
    205209        self.boundary_indices = {}
    206 
    207210        for i, (vol_id, edge_id) in enumerate(boundary_keys):
    208211
  • inundation/pyvolution/test_generic_boundary_conditions.py

    r1835 r2154  
    164164
    165165
     166       
     167
    166168        #Check that midpoint coordinates at boundary are correctly computed
    167169        assert allclose( F.midpoint_coordinates,
    168                          [[0.0, 3.0], [1.0, 3.0], [0.0, 1.0],
    169                          [1.0, 0.0], [3.0, 0.0], [3.0, 1.0]])
     170                         [[1.0, 0.0], [0.0, 1.0], [3.0, 0.0],
     171                          [3.0, 1.0], [1.0, 3.0], [0.0, 3.0]])
    170172
    171173        #assert allclose(F.midpoint_coordinates[(3,2)], [0.0, 3.0])
Note: See TracChangeset for help on using the changeset viewer.