Changeset 648 for inundation/ga/storm_surge/pyvolution/test_advection.py
- Timestamp:
- Dec 1, 2004, 4:36:33 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
inundation/ga/storm_surge/pyvolution/test_advection.py
r195 r648 46 46 domain.check_integrity() 47 47 48 assert allclose(domain.neighbours, [[-1,-2,-3]]) 49 48 50 49 #Populate boundary array with dirichlet conditions. 50 domain.neighbours = array([[-1,-2,-3]]) 51 51 domain.quantities['level'].boundary_values[:] = 1.0 52 52 … … 100 100 domain.check_integrity() 101 101 102 assert allclose(domain.neighbours, [[-1,-2,-3]])103 102 104 103 #Populate boundary array with dirichlet conditions. 104 domain.neighbours = array([[-1,-2,-3]]) 105 105 domain.quantities['level'].boundary_values[0] = 1.0 106 106 … … 131 131 domain.check_integrity() 132 132 133 assert allclose(domain.neighbours, [[1,-1,-2], [0,-3,-4]])134 133 135 134 #Populate boundary array with dirichlet conditions. 136 135 domain.neighbours = array([[1,-1,-2], [0,-3,-4]]) 137 136 domain.set_quantity('level', [1.0, 0.0], 'centroids') 138 137 domain.distribute_to_vertices_and_edges()
Note: See TracChangeset
for help on using the changeset viewer.