Changeset 6494


Ignore:
Timestamp:
Mar 11, 2009, 5:01:21 PM (15 years ago)
Author:
ole
Message:

Fixed up tests.
Original problem in ticket:314 is still present, though.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_core/source/anuga/shallow_water/test_shallow_water_domain.py

    r6492 r6494  
    22
    33import unittest, os
     4from os.path import join
     5
    46from math import pi, sqrt
    57import tempfile
     
    1416from anuga.geospatial_data.geospatial_data import Geospatial_data
    1517from anuga.abstract_2d_finite_volumes.mesh_factory import rectangular_cross
     18from anuga.utilities.system_tools import get_pathname_from_package
    1619from shallow_water_domain import *
    1720
     
    65446547        from anuga.geospatial_data.geospatial_data import Geospatial_data
    65456548
    6546 
     6549       
     6550        # Get path where this test is run
     6551        path = get_pathname_from_package('anuga.shallow_water')       
     6552       
     6553       
    65476554        #----------------------------------------------------------------------
    65486555        # Create domain
     
    65896596            interior_regions.append( [polygon, 100] )
    65906597
    6591         meshname = 'offending_mesh.msh'
     6598        meshname = join(path, 'offending_mesh.msh')
    65926599        create_mesh_from_regions(bounding_polygon,
    65936600                                 boundary_tags={'south': [0], 'east': [1], 'north': [2], 'west': [3]},
     
    66056612        #----------------------------------------------------------------------
    66066613
    6607         points_file = 'offending_point.pts'
     6614        points_file = join(path, 'offending_point.pts')
    66086615
    66096616        # Offending point
     
    66416648       
    66426649       
    6643     def Xtest_fitting_example_that_crashed_2(self):
     6650    def test_fitting_example_that_crashed_2(self):
    66446651        """test_fitting_example_that_crashed_2
    66456652       
     
    66556662        verbose = False       
    66566663
    6657         from os.path import join
    66586664        from anuga.shallow_water import Domain
    66596665        from anuga.pmesh.mesh_interface import create_mesh_from_regions
    66606666        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')
    66636673        W=304180
    66646674        S=6185270
     
    66836693       
    66846694        # Large test set revealed one problem
    6685         points_file = 'test_points_large.csv'
     6695        points_file = join(path, 'test_points_large.csv')
    66866696        try:
    66876697            domain.set_quantity('elevation',
     
    66996709                           
    67006710        # Small test set revealed another problem
    6701         points_file = 'test_points_small.csv'   
     6711        points_file = join(path, 'test_points_small.csv')
    67026712        try:   
    67036713            domain.set_quantity('elevation',
Note: See TracChangeset for help on using the changeset viewer.