- Timestamp:
- Jun 17, 2010, 5:34:13 PM (13 years ago)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
anuga_work/development/2010-projects/anuga_1d/base/test_quantity_1d.py
r7851 r7855 6 6 7 7 8 from generic_domain import Generic_domain as Domain8 from anuga_1d.base.generic_domain import Generic_domain as Domain 9 9 #from shallow_water_domain import flux_function as domain_flux_function 10 10 11 from quantity import *11 from anuga_1d.base.quantity import * 12 12 13 13 … … 37 37 self.domain6 = Domain(self.points6) 38 38 39 40 39 def tearDown(self): 41 40 pass … … 46 45 47 46 assert self.domain4.boundary == {(0, 0): 'left', (3, 1): 'right'} 47 48 48 49 49 def test_creation(self): … … 497 497 498 498 499 def test_find_qmax_qmin(self): 500 quantity = Quantity(self.domain4) 501 502 503 quantity.set_values([1.0, 4.0, 8.0, 2.0], 504 location = 'centroids') 505 506 507 508 quantity.find_qmax_qmin() 509 510 511 assert allclose(quantity.qmax, [4.0, 8.0, 8.0, 8.0]) 512 assert allclose(quantity.qmin, [1.0, 1.0, 2.0, 2.0]) 513 514 499 515 def test_distribute_first_order(self): 500 516 quantity = Quantity(self.domain4)
Note: See TracChangeset
for help on using the changeset viewer.