Changeset 8471
- Timestamp:
- Jul 20, 2012, 11:08:47 AM (13 years ago)
- Location:
- trunk/anuga_core
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/anuga_core/source/anuga/operators/test_kinematic_viscosity_operator.py
r8469 r8471 3 3 from anuga import Quantity 4 4 from anuga import Dirichlet_boundary 5 from kinematic_viscosity_operator import Kinematic_ Viscosity_Operator5 from kinematic_viscosity_operator import Kinematic_viscosity_operator 6 6 7 7 import numpy as num … … 9 9 import unittest 10 10 11 class Test_ Kinematic_Viscosity(unittest.TestCase):11 class Test_kinematic_viscosity(unittest.TestCase): 12 12 def setUp(self): 13 13 pass … … 45 45 #print domain.quantities['stage'].boundary_values 46 46 47 return Kinematic_ Viscosity_Operator(domain)47 return Kinematic_viscosity_operator(domain) 48 48 49 49 #Second test operator class (2 triangles) … … 68 68 69 69 70 return Kinematic_ Viscosity_Operator(domain)70 return Kinematic_viscosity_operator(domain) 71 71 72 72 def test_enumerate_boundary(self): … … 431 431 b.set_boundary_values(0.0) 432 432 433 operator = Kinematic_ Viscosity_Operator(domain)433 operator = Kinematic_viscosity_operator(domain) 434 434 435 435 n = operator.n … … 544 544 b.set_boundary_values(0.0) 545 545 546 operator = Kinematic_ Viscosity_Operator(domain)546 operator = Kinematic_viscosity_operator(domain) 547 547 548 548 dt = 0.01 … … 608 608 b.set_boundary_values(0.0) 609 609 610 kv = Kinematic_ Viscosity_Operator(domain)610 kv = Kinematic_viscosity_operator(domain) 611 611 612 612 n = kv.n … … 658 658 v.set_boundary_values(2.0) 659 659 660 kv = Kinematic_ Viscosity_Operator(domain)660 kv = Kinematic_viscosity_operator(domain) 661 661 662 662 … … 752 752 v.set_boundary_values(2.0) 753 753 754 kv = Kinematic_ Viscosity_Operator(domain)754 kv = Kinematic_viscosity_operator(domain) 755 755 756 756 … … 818 818 domain.set_boundary( {'left': B, 'right': B, 'top': B, 'bottom': B}) 819 819 820 kv = Kinematic_ Viscosity_Operator(domain)820 kv = Kinematic_viscosity_operator(domain) 821 821 822 822 … … 872 872 873 873 if __name__ == "__main__": 874 suite = unittest.makeSuite(Test_ Kinematic_Viscosity, 'test')874 suite = unittest.makeSuite(Test_kinematic_viscosity, 'test') 875 875 runner = unittest.TextTestRunner() 876 876 runner.run(suite) -
trunk/anuga_core/source/anuga/shallow_water/shallow_water_domain.py
r8457 r8471 487 487 def set_use_kinematic_viscosity(self, flag=True): 488 488 489 from anuga.operators.kinematic_viscosity_operator import Kinematic_ Viscosity_Operator489 from anuga.operators.kinematic_viscosity_operator import Kinematic_viscosity_operator 490 490 491 491 if flag : 492 492 # Create Operator if necessary 493 493 if self.kv_operator is None: 494 self.kv_operator = Kinematic_ Viscosity_Operator(self)494 self.kv_operator = Kinematic_viscosity_operator(self) 495 495 else: 496 496 if self.kv_operator is None: -
trunk/anuga_core/source/anuga_parallel/parallel_inlet_operator.py
r8451 r8471 88 88 volume = 0 89 89 90 # Only the master proc calculates the volume 91 90 # Need to run global command on all processors 92 91 current_volume = self.inlet.get_global_total_water_volume() 93 92 93 # Only the master proc calculates the update 94 94 if self.myid == self.master_proc: 95 95 timestep = self.domain.get_timestep() … … 105 105 #print "Volume to be removed from Inlet = " + str(volume) 106 106 107 # Set stages evenly 107 # Set stages evenly on all processors 108 108 self.inlet.set_stages_evenly(volume) 109 109
Note: See TracChangeset
for help on using the changeset viewer.