Ignore:
Timestamp:
Dec 1, 2004, 4:36:33 PM (20 years ago)
Author:
ole
Message:

Refactoring boundary structure to allow None Boundary object for internal boundaries.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inundation/ga/storm_surge/pyvolution/test_advection.py

    r195 r648  
    4646        domain.check_integrity()
    4747
    48         assert allclose(domain.neighbours, [[-1,-2,-3]])       
    49                
     48
    5049        #Populate boundary array with dirichlet conditions.
     50        domain.neighbours = array([[-1,-2,-3]])         
    5151        domain.quantities['level'].boundary_values[:] = 1.0
    5252
     
    100100        domain.check_integrity()
    101101
    102         assert allclose(domain.neighbours, [[-1,-2,-3]])       
    103102               
    104103        #Populate boundary array with dirichlet conditions.
     104        domain.neighbours = array([[-1,-2,-3]])                 
    105105        domain.quantities['level'].boundary_values[0] = 1.0
    106106       
     
    131131        domain.check_integrity()
    132132
    133         assert allclose(domain.neighbours, [[1,-1,-2], [0,-3,-4]])     
    134133
    135134        #Populate boundary array with dirichlet conditions.
    136 
     135        domain.neighbours = array([[1,-1,-2], [0,-3,-4]])
    137136        domain.set_quantity('level', [1.0, 0.0], 'centroids')
    138137        domain.distribute_to_vertices_and_edges()
Note: See TracChangeset for help on using the changeset viewer.