 Timestamp:
 Sep 12, 2006, 2:54:29 PM (17 years ago)
 Location:
 anuga_core/source/anuga/abstract_2d_finite_volumes
 Files:

 1 edited
 1 moved
Legend:
 Unmodified
 Added
 Removed

anuga_core/source/anuga/abstract_2d_finite_volumes/test_shallow_water.py
r3535 r3560 145 145 146 146 def test_flux1(self): 147 #Use data from previous version of pyvolution147 #Use data from previous version of abstract_2d_finite_volumes 148 148 normal = array([1.,0]) 149 149 ql = array([0.2, 2, 3]) … … 157 157 158 158 def test_flux2(self): 159 #Use data from previous version of pyvolution159 #Use data from previous version of abstract_2d_finite_volumes 160 160 normal = array([0., 1.]) 161 161 ql = array([0.075, 2, 3]) … … 168 168 169 169 def test_flux3(self): 170 #Use data from previous version of pyvolution170 #Use data from previous version of abstract_2d_finite_volumes 171 171 normal = array([sqrt(2)/2, sqrt(2)/2]) 172 172 ql = array([0.075, 2, 3]) … … 179 179 180 180 def test_flux4(self): 181 #Use data from previous version of pyvolution181 #Use data from previous version of abstract_2d_finite_volumes 182 182 normal = array([sqrt(2)/2, sqrt(2)/2]) 183 183 ql = array([0.34319278, 0.10254161, 0.07273855]) … … 982 982 from math import pi, cos, sin, sqrt 983 983 from anuga.config import time_format 984 from anuga. pyvolution.util import file_function984 from anuga.abstract_2d_finite_volumes.util import file_function 985 985 import time 986 986 … … 1029 1029 1030 1030 #Convert ASCII file to NetCDF (Which is what we really like!) 1031 from anuga. pyvolution.data_manager import timefile2netcdf1031 from anuga.abstract_2d_finite_volumes.data_manager import timefile2netcdf 1032 1032 timefile2netcdf(filename) 1033 1033 os.remove(filename + '.txt') … … 1238 1238 ##################################################### 1239 1239 def test_distribute_basic(self): 1240 #Using test data generated by pyvolution21240 #Using test data generated by abstract_2d_finite_volumes2 1241 1241 #Assuming no friction and flat bed (0.0) 1242 1242 … … 1276 1276 1277 1277 def test_distribute_away_from_bed(self): 1278 #Using test data generated by pyvolution21278 #Using test data generated by abstract_2d_finite_volumes2 1279 1279 #Assuming no friction and flat bed (0.0) 1280 1280 … … 1313 1313 1314 1314 def test_distribute_away_from_bed1(self): 1315 #Using test data generated by pyvolution21315 #Using test data generated by abstract_2d_finite_volumes2 1316 1316 #Assuming no friction and flat bed (0.0) 1317 1317 … … 1351 1351 1352 1352 def test_distribute_near_bed(self): 1353 #Using test data generated by pyvolution21353 #Using test data generated by abstract_2d_finite_volumes2 1354 1354 #Assuming no friction and flat bed (0.0) 1355 1355 … … 1396 1396 1397 1397 def test_distribute_near_bed1(self): 1398 #Using test data generated by pyvolution21398 #Using test data generated by abstract_2d_finite_volumes2 1399 1399 #Assuming no friction and flat bed (0.0) 1400 1400 … … 1443 1443 1444 1444 def test_second_order_distribute_real_data(self): 1445 #Using test data generated by pyvolution21445 #Using test data generated by abstract_2d_finite_volumes2 1446 1446 #Assuming no friction and flat bed (0.0) 1447 1447 … … 1927 1927 1928 1928 import sys 1929 from os import sep; sys.path.append('..'+sep+' pyvolution')1929 from os import sep; sys.path.append('..'+sep+'abstract_2d_finite_volumes') 1930 1930 from mesh_factory import rectangular 1931 1931 from shallow_water import Domain, Reflective_boundary … … 2004 2004 pass# domain.write_time() 2005 2005 2006 #Data from earlier version of pyvolution2006 #Data from earlier version of abstract_2d_finite_volumes 2007 2007 assert allclose(domain.min_timestep, 0.0396825396825) 2008 2008 assert allclose(domain.max_timestep, 0.0396825396825) … … 2074 2074 pass 2075 2075 2076 #Data from earlier version of pyvolution2076 #Data from earlier version of abstract_2d_finite_volumes 2077 2077 #assert allclose(domain.min_timestep, 0.0396825396825) 2078 2078 #assert allclose(domain.max_timestep, 0.0396825396825) … … 2238 2238 2239 2239 def test_flatbed_second_order_distribute(self): 2240 #Use real data from anuga. pyvolution22240 #Use real data from anuga.abstract_2d_finite_volumes 2 2241 2241 #painfully setup and extracted. 2242 2242 from mesh_factory import rectangular … … 2459 2459 pass# domain.write_time() 2460 2460 2461 #Data from earlier version of pyvolution2461 #Data from earlier version of abstract_2d_finite_volumes 2462 2462 #print domain.quantities['stage'].centroid_values 2463 2463 … … 2642 2642 2643 2643 2644 #Data from earlier version of pyvolutionft=0.12644 #Data from earlier version of abstract_2d_finite_volumes ft=0.1 2645 2645 assert allclose(domain.min_timestep, 0.0376895634803) 2646 2646 assert allclose(domain.max_timestep, 0.0415635655309) … … 3341 3341 tags["3"] = b3 3342 3342 3343 #from anuga. pyvolution.pmesh2domain import pmesh_to_domain_instance3343 #from anuga.abstract_2d_finite_volumes.pmesh2domain import pmesh_to_domain_instance 3344 3344 #domain = pmesh_to_domain_instance(fileName, Domain) 3345 3345
Note: See TracChangeset
for help on using the changeset viewer.