- Timestamp:
- Jun 4, 2010, 10:03:48 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/anuga_core/source/anuga/file_conversion/test_urs2sts.py
r7770 r7778 13 13 from anuga.file.csv_file import load_csv_as_dict, load_csv_as_array 14 14 15 from anuga.shallow_water.shallow_water_domain import Domain 16 15 17 # boundary functions 16 18 from anuga.shallow_water.boundaries import Reflective_boundary, \ … … 20 22 import Transmissive_boundary, Dirichlet_boundary, \ 21 23 Time_boundary, File_boundary, AWI_boundary 24 25 from anuga.pmesh.mesh_interface import create_mesh_from_regions 22 26 23 27 from urs2sts import urs2sts … … 1316 1320 """ 1317 1321 1318 # FIXME (Ole): These tests should really move to1319 # test_generic_boundaries.py1320 1321 from anuga.shallow_water import Domain1322 from anuga.shallow_water import Reflective_boundary1323 from anuga.shallow_water import Dirichlet_boundary1324 from anuga.shallow_water import File_boundary1325 from anuga.pmesh.mesh_interface import create_mesh_from_regions1326 1327 1322 bounding_polygon=[[6.0,97.0],[6.01,97.0],[6.02,97.0],[6.02,97.02],[6.00,97.02]] 1328 1323 tide = 0.37 … … 1458 1453 import warnings 1459 1454 warnings.simplefilter('ignore') 1460 1461 from anuga.shallow_water import Domain1462 from anuga.shallow_water import Reflective_boundary1463 from anuga.shallow_water import Dirichlet_boundary1464 from anuga.shallow_water import File_boundary1465 from anuga.pmesh.mesh_interface import create_mesh_from_regions1466 1455 1467 1456 bounding_polygon=[[6.0,97.0],[6.01,97.0],[6.02,97.0], … … 1605 1594 import warnings 1606 1595 warnings.simplefilter('ignore') 1607 1608 from anuga.shallow_water import Domain1609 from anuga.shallow_water import Reflective_boundary1610 from anuga.shallow_water import Dirichlet_boundary1611 from anuga.shallow_water import File_boundary1612 from anuga.pmesh.mesh_interface import create_mesh_from_regions1613 1596 1614 1597 bounding_polygon=[[6.0,97.0],[6.01,97.0],[6.02,97.0], … … 1723 1706 the correct order). 1724 1707 """ 1725 1726 from anuga.shallow_water import Domain1727 from anuga.shallow_water import Reflective_boundary1728 from anuga.shallow_water import Dirichlet_boundary1729 from anuga.shallow_water import File_boundary1730 from anuga.pmesh.mesh_interface import create_mesh_from_regions1731 1708 1732 1709 bounding_polygon=[[6.01,97.0],[6.02,97.0],[6.02,97.02],[6.00,97.02],[6.0,97.0]] … … 1831 1808 Read correct points from ordering file and apply sts to boundary 1832 1809 """ 1833 from anuga.shallow_water import Domain1834 from anuga.shallow_water import Reflective_boundary1835 from anuga.shallow_water import Dirichlet_boundary1836 from anuga.shallow_water import File_boundary1837 from anuga.pmesh.mesh_interface import create_mesh_from_regions1838 1810 1839 1811 lat_long_points=[[6.01,97.0],[6.02,97.0],[6.05,96.9],[6.0,97.0]] … … 1859 1831 ua=ua, 1860 1832 va=va) 1833 # base name will not exist, but 3 other files are created 1861 1834 1862 1835 # Write order file … … 1886 1859 self.delete_mux(files) 1887 1860 1888 assert(os.access( base_name, os.R_OK))1861 assert(os.access(sts_file+'.sts', os.F_OK)) 1889 1862 1890 1863 boundary_polygon = create_sts_boundary(base_name) … … 1979 1952 #assert allclose(domain_drchlt.quantities['stage'].vertex_values[6], 2) 1980 1953 #assert allclose(domain_fbound.quantities['stage'].vertex_values[6], 2) 1981 1982 1983 1954 1984 1955 try: 1985 1956 os.remove(sts_file+'.sts') 1986 except :1957 except IOError: 1987 1958 # Windoze can't remove this file for some reason 1988 1959 pass
Note: See TracChangeset
for help on using the changeset viewer.