- Timestamp:
- Nov 9, 2006, 12:51:08 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_core/source/anuga/abstract_2d_finite_volumes/test_quantity.py
r3945 r3956 1348 1348 quantity = Quantity(domain,[[1,1,1],[2,2,2],[3,3,3], 1349 1349 [4,4,4],[5,5,5],[6,6,6]]) 1350 1351 1352 # Check that constants work 1353 value = 7 1354 indices = [1] 1355 quantity.set_values(value, 1356 location = 'centroids', 1357 indices = indices) 1358 #print "quantity.centroid_values",quantity.centroid_values 1359 assert allclose(quantity.centroid_values, [1,7,3,4,5,6]) 1360 1350 1361 value = [7] 1351 1362 indices = [1]
Note: See TracChangeset
for help on using the changeset viewer.