Changeset 3741


Ignore:
Timestamp:
Oct 11, 2006, 11:57:10 AM (18 years ago)
Author:
duncan
Message:

fix bugs

Location:
anuga_core/source/anuga
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • anuga_core/source/anuga/pmesh/test_mesh_interface.py

    r3734 r3741  
    66from anuga.pmesh.mesh import importMeshFromFile
    77from anuga.pmesh.mesh_interface import create_mesh_from_regions
    8 from anuga.pmesh.mesh_interface import _create_mesh_from_regions
     8
     9# This not work on DSG's desktop
     10#from anuga.pmesh.mesh_interface import _create_mesh_from_regions
     11#But this does.  maybe due to me using python 2.3?
     12from mesh_interface import _create_mesh_from_regions
    913from load_mesh.loadASCII import *
    1014from anuga.utilities.polygon import is_inside_polygon
  • anuga_core/source/anuga/shallow_water/data_manager.py

    r3720 r3741  
    42324232    msg = "Bad data in the mux file."
    42334233    if points_num < 0:
     4234        f.close()
    42344235        raise ANUGAError, msg
    42354236    if time_step_count < 0:
     4237        f.close()
    42364238        raise ANUGAError, msg
    42374239    if time_step < 0:
     4240        f.close()
    42384241        raise ANUGAError, msg
    42394242   
  • anuga_core/source/anuga/shallow_water/test_data_manager.py

    r3720 r3741  
    1111from struct import pack
    1212
    13 from anuga.shallow_water.data_manager import *
    1413from anuga.shallow_water import *
     14from data_manager import *
    1515from anuga.config import epsilon
     16from anuga.utilities.anuga_exceptions import ANUGAError
     17from anuga.utilities.numerical_tools import ensure_numeric
    1618
    1719# This is needed to run the tests of local functions
     
    50065008                quantities_init[1].append(n ) # UA
    50075009                quantities_init[2].append(e) # VA
    5008         #print "lonlatdeps",lonlatdeps 
    5009         base_name = str(id(self))
     5010        #print "lonlatdeps",lonlatdeps
     5011        _,base_name = tempfile.mkstemp("")
    50105012        files = []       
    50115013        for i,q in enumerate(quantities):
     
    50465048        time_step_count = 45
    50475049        time_step = -7
    5048         base_name = str(id(self))
     5050        _,base_name = tempfile.mkstemp("")
    50495051        files = []
    50505052        quantities = ['HA','UA','VA']
     
    50715073            raise msg
    50725074        sww_file = base_name + '.sww'
    5073        
    50745075        self.delete_mux(files)
    50755076       
     
    51935194#-------------------------------------------------------------
    51945195if __name__ == "__main__":
    5195     #suite = unittest.makeSuite(Test_Data_Manager,'test_sww_minimum_storable_height')
     5196    #suite = unittest.makeSuite(Test_Data_Manager,'test_urs2sww_test_fail')
     5197    #suite = unittest.makeSuite(Test_Data_Manager,'test_urs2sww')
    51965198    suite = unittest.makeSuite(Test_Data_Manager,'test')
    51975199    runner = unittest.TextTestRunner()
Note: See TracChangeset for help on using the changeset viewer.