Changeset 762
- Timestamp:
- Jan 20, 2005, 5:07:42 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
inundation/ga/storm_surge/pyvolution/test_quantity.py
r715 r762 396 396 [3,3,3], [4, 4, 4]]) 397 397 398 399 def test_distribute_second_order(self): 400 quantity = Conserved_quantity(self.mesh4) 401 402 #Test centroids 403 quantity.set_values([2.,4.,8.,2.], location = 'centroids') 404 assert allclose(quantity.centroid_values, [2, 4, 8, 2]) #Centroid 405 406 407 #Extrapolate 408 quantity.extrapolate_second_order() 409 410 assert allclose(quantity.vertex_values[1,:], [2.2, 4.9, 4.9]) 398 411 399 412
Note: See TracChangeset
for help on using the changeset viewer.