Changeset 6494 for anuga_core/source
- Timestamp:
- Mar 11, 2009, 5:01:21 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_core/source/anuga/shallow_water/test_shallow_water_domain.py
r6492 r6494 2 2 3 3 import unittest, os 4 from os.path import join 5 4 6 from math import pi, sqrt 5 7 import tempfile … … 14 16 from anuga.geospatial_data.geospatial_data import Geospatial_data 15 17 from anuga.abstract_2d_finite_volumes.mesh_factory import rectangular_cross 18 from anuga.utilities.system_tools import get_pathname_from_package 16 19 from shallow_water_domain import * 17 20 … … 6544 6547 from anuga.geospatial_data.geospatial_data import Geospatial_data 6545 6548 6546 6549 6550 # Get path where this test is run 6551 path = get_pathname_from_package('anuga.shallow_water') 6552 6553 6547 6554 #---------------------------------------------------------------------- 6548 6555 # Create domain … … 6589 6596 interior_regions.append( [polygon, 100] ) 6590 6597 6591 meshname = 'offending_mesh.msh'6598 meshname = join(path, 'offending_mesh.msh') 6592 6599 create_mesh_from_regions(bounding_polygon, 6593 6600 boundary_tags={'south': [0], 'east': [1], 'north': [2], 'west': [3]}, … … 6605 6612 #---------------------------------------------------------------------- 6606 6613 6607 points_file = 'offending_point.pts'6614 points_file = join(path, 'offending_point.pts') 6608 6615 6609 6616 # Offending point … … 6641 6648 6642 6649 6643 def Xtest_fitting_example_that_crashed_2(self):6650 def test_fitting_example_that_crashed_2(self): 6644 6651 """test_fitting_example_that_crashed_2 6645 6652 … … 6655 6662 verbose = False 6656 6663 6657 from os.path import join6658 6664 from anuga.shallow_water import Domain 6659 6665 from anuga.pmesh.mesh_interface import create_mesh_from_regions 6660 6666 from anuga.geospatial_data import Geospatial_data 6661 6662 meshname = 'test_mesh.msh' 6667 6668 # Get path where this test is run 6669 path = get_pathname_from_package('anuga.shallow_water') 6670 6671 6672 meshname = join(path, 'test_mesh.msh') 6663 6673 W=304180 6664 6674 S=6185270 … … 6683 6693 6684 6694 # Large test set revealed one problem 6685 points_file = 'test_points_large.csv'6695 points_file = join(path, 'test_points_large.csv') 6686 6696 try: 6687 6697 domain.set_quantity('elevation', … … 6699 6709 6700 6710 # Small test set revealed another problem 6701 points_file = 'test_points_small.csv'6711 points_file = join(path, 'test_points_small.csv') 6702 6712 try: 6703 6713 domain.set_quantity('elevation',
Note: See TracChangeset
for help on using the changeset viewer.