Changeset 6488
- Timestamp:
- Mar 11, 2009, 1:52:20 PM (16 years ago)
- Location:
- anuga_core/source/anuga
- Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_core/source/anuga/fit_interpolate/fit.py
r6405 r6488 372 372 self.build_fit_subset(points, z, verbose=verbose) 373 373 374 msg = 'Matrix AtA was not built' 375 assert self.AtA is not None, msg 374 # FIXME(Ole): I thought this test would make sense here 375 # See test_fitting_example_that_crashed_2 in test_shallow_water_domain.py 376 # Committed 11 March 2009 377 #msg = 'Matrix AtA was not built' 378 #assert self.AtA is not None, msg 376 379 377 380 #print 'Matrix was built OK' -
anuga_core/source/anuga/geospatial_data/test_geospatial_data.py
r6153 r6488 1458 1458 #print "data_points",data_points 1459 1459 new_points = ensure_absolute(data_points, 1460 1460 geo_reference=mesh_origin) 1461 1461 #print "new_points",new_points 1462 1462 #print "ab_points",ab_points … … 1468 1468 data_points = geo.change_points_geo_ref(ab_points) 1469 1469 new_points = ensure_absolute(data_points, 1470 1470 geo_reference=geo) 1471 1471 #print "new_points",new_points 1472 1472 #print "ab_points",ab_points -
anuga_core/source/anuga/shallow_water/test_shallow_water_domain.py
r6258 r6488 6527 6527 os.remove(ptsfile) 6528 6528 6529 def test_fitting_example_that_crashed (self):6530 """test_fitting_example_that_crashed 6529 def test_fitting_example_that_crashed_1(self): 6530 """test_fitting_example_that_crashed_1 6531 6531 6532 6532 This unit test has been derived from a real world example (the Towradgi '98 rainstorm simulation). … … 6640 6640 # os.remove(meshname) 6641 6641 # os.remove(points_file) 6642 6643 6644 def Xtest_fitting_example_that_crashed_2(self): 6645 """test_fitting_example_that_crashed_2 6646 6647 This unit test has been derived from a real world example 6648 (the JJKelly study, by Petar Milevski). 6649 6650 It shows a condition where set_quantity crashes due to AtA 6651 not being built properly 6652 6653 See ticket:314 6654 """ 6655 6656 verbose = False 6657 6658 from os.path import join 6659 from anuga.shallow_water import Domain 6660 from anuga.pmesh.mesh_interface import create_mesh_from_regions 6661 from anuga.geospatial_data import Geospatial_data 6662 6663 meshname = 'test_mesh.msh' 6664 W=304180 6665 S=6185270 6666 E=307650 6667 N=6189040 6668 maximum_triangle_area = 1000000 6669 6670 6671 bounding_polygon = [[W, S], [E, S], [E, N], [W, N]] 6672 6673 create_mesh_from_regions(bounding_polygon, 6674 boundary_tags={'south': [0], 6675 'east': [1], 6676 'north': [2], 6677 'west': [3]}, 6678 maximum_triangle_area=maximum_triangle_area, 6679 filename=meshname, 6680 use_cache=False, 6681 verbose=True) 6682 6683 domain = Domain(meshname, use_cache=True, verbose=True) 6684 6685 # Large test set revealed one problem 6686 domain.set_quantity('elevation', 6687 filename='test_points_large.csv', 6688 use_cache=False, 6689 verbose=True) 6690 6691 6692 # Small test set revealed another problem 6693 domain.set_quantity('elevation', 6694 filename='test_points_small.csv', 6695 use_cache=False, 6696 verbose=True) 6697 6698 6642 6699 6643 6700 … … 6647 6704 #suite = unittest.makeSuite(Test_Shallow_Water, 'test_rainfall_forcing_with_evolve') 6648 6705 #suite = unittest.makeSuite(Test_Shallow_Water,'test_get_energy_through_cross_section_with_g') 6649 suite = unittest.makeSuite(Test_Shallow_Water,'test_fitting_example_that_crashed ')6706 suite = unittest.makeSuite(Test_Shallow_Water,'test_fitting_example_that_crashed_2') 6650 6707 #suite = unittest.makeSuite(Test_Shallow_Water,'test_tight_slope_limiters') 6651 6708 #suite = unittest.makeSuite(Test_Shallow_Water,'test_inflow_outflow_conservation')
Note: See TracChangeset
for help on using the changeset viewer.