Ignore:
Timestamp:
Aug 30, 2004, 4:55:48 PM (21 years ago)
Author:
ole
Message:

Subclassed class Quantity into Conserved_quantity

File:
1 edited

Legend:

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

    r212 r242  
    8787
    8888    def test_boundary_allocation(self):
    89         quantity = Quantity(self.mesh4,
     89        quantity = Conserved_quantity(self.mesh4,
    9090                            [[1,2,3], [5,5,5], [0,0,9], [-6, 3, 3]])
    9191
     
    189189
    190190    def test_gradient(self):
    191         quantity = Quantity(self.mesh4)
     191        quantity = Conserved_quantity(self.mesh4)
    192192
    193193        #Set up for a gradient of (3,0) at mid triangle
     
    218218
    219219    def test_second_order_extrapolation2(self):
    220         quantity = Quantity(self.mesh4)
     220        quantity = Conserved_quantity(self.mesh4)       
    221221
    222222        #Set up for a gradient of (3,1), f(x) = 3x+y
     
    327327
    328328    def test_first_order_extrapolator(self):
    329         quantity = Quantity(self.mesh4)
     329        quantity = Conserved_quantity(self.mesh4)               
    330330
    331331        #Test centroids
     
    342342
    343343    def test_second_order_extrapolator(self):
    344         quantity = Quantity(self.mesh4)
     344        quantity = Conserved_quantity(self.mesh4)                       
    345345
    346346        #Set up for a gradient of (3,0) at mid triangle
     
    375375       
    376376
    377     def test_limiter(self):       
    378         quantity = Quantity(self.mesh4)
     377    def test_limiter(self):
     378        quantity = Conserved_quantity(self.mesh4)
    379379
    380380        #Create a deliberate overshoot (e.g. from gradient computation)
     
    406406
    407407    def test_distribute_first_order(self):
    408         quantity = Quantity(self.mesh4)
     408        quantity = Conserved_quantity(self.mesh4)       
    409409
    410410        #Test centroids
     
    427427
    428428    def test_update_explicit(self):
    429         quantity = Quantity(self.mesh4)
     429        quantity = Conserved_quantity(self.mesh4)
    430430
    431431        #Test centroids
     
    443443
    444444    def test_update_semi_implicit(self):
    445         quantity = Quantity(self.mesh4)
     445        quantity = Conserved_quantity(self.mesh4)
    446446
    447447        #Test centroids
     
    459459
    460460    def test_both_updates(self):
    461         quantity = Quantity(self.mesh4)
     461        quantity = Conserved_quantity(self.mesh4)
    462462
    463463        #Test centroids
Note: See TracChangeset for help on using the changeset viewer.