Changeset 4541 for anuga_core


Ignore:
Timestamp:
Jun 12, 2007, 5:18:26 PM (18 years ago)
Author:
duncan
Message:

fixed ticket:171

Location:
anuga_core/source/anuga
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • anuga_core/source/anuga/abstract_2d_finite_volumes/quantity.py

    r4536 r4541  
    14771477    #Replace python version with c implementations
    14781478
     1479    from quantity_ext import average_vertex_values
     1480
    14791481    from quantity_ext import compute_gradients, limit,\
    1480     extrapolate_second_order, interpolate_from_vertices_to_edges, update,\
    1481     average_vertex_values
     1482    extrapolate_second_order, interpolate_from_vertices_to_edges, update
  • anuga_core/source/anuga/abstract_2d_finite_volumes/util.py

    r4517 r4541  
    14461446    # initialise the array to easily find the index of the first loner
    14471447    loners=arange(2*N, N, -1) # if N=3 [6,5,4]
    1448    
    14491448    for t in triangles:
    14501449        for vert in t:
  • anuga_core/source/anuga/shallow_water/data_manager.py

    r4535 r4541  
    47154715            number_of_times = 0
    47164716            starttime = times
    4717         #print "times",times
    4718         #print "starttime", starttime
     4717            #times = ensure_numeric([])
    47194718        outfile.starttime = starttime
    47204719        # dimension definitions
     
    47664765            outfile.variables[q+Write_sww.RANGE][1] = \
    47674766                -outfile.variables[q+Write_sww.RANGE][1]
    4768         outfile.variables['time'][:] = times    #Store time relative
     4767           
     4768        if type(times) is list or type(times) is ArrayType: 
     4769            outfile.variables['time'][:] = times    #Store time relative
    47694770           
    47704771        if verbose:
  • anuga_core/source/anuga/shallow_water/test_data_manager.py

    r4526 r4541  
    11081108
    11091109    def test_sww2dem_asc_elevation_depth(self):
    1110         """Test that sww information can be converted correctly to asc/prj
     1110        """
     1111        test_sww2dem_asc_elevation_depth(self):
     1112        Test that sww information can be converted correctly to asc/prj
    11111113        format readable by e.g. ArcView
    11121114        """
     
    12961298
    12971299    def test_export_grid(self):
    1298         """Test that sww information can be converted correctly to asc/prj
     1300        """
     1301        test_export_grid(self):
     1302        Test that sww information can be converted correctly to asc/prj
    12991303        format readable by e.g. ArcView
    13001304        """
     
    13781382
    13791383    def test_export_gridII(self):
    1380         """Test that sww information can be converted correctly to asc/prj
     1384        """
     1385        test_export_gridII(self):
     1386        Test that sww information can be converted correctly to asc/prj
    13811387        format readable by e.g. ArcView
    13821388        """
     
    15061512
    15071513    def test_export_gridIII(self):
    1508         """Test that sww information can be converted correctly to asc/prj
     1514        """
     1515        test_export_gridIII
     1516        Test that sww information can be converted correctly to asc/prj
    15091517        format readable by e.g. ArcView
    15101518        """
     
    15201528
    15211529        #Setup
     1530       
    15221531        self.domain.set_name('tegIII')
    15231532
     
    15311540
    15321541        self.domain.geo_reference = Geo_reference(56,308500,6189000)
    1533 
     1542       
    15341543        sww = get_dataobject(self.domain)
    15351544        sww.store_connectivity()
     
    69386947    #suite = unittest.makeSuite(Test_Data_Manager,'test_sww_header')
    69396948    #suite = unittest.makeSuite(Test_Data_Manager,'test_export_grid_parallel')
    6940     #suite = unittest.makeSuite(Test_Data_Manager,'test_store_parameters')
     6949    #suite = unittest.makeSuite(Test_Data_Manager,'test_export_gridIII')
     6950    suite = unittest.makeSuite(Test_Data_Manager,'test')
    69416951    if len(sys.argv) > 1 and sys.argv[1][0].upper() == 'V':
    69426952        Test_Data_Manager.verbose=True
     
    69476957    else:
    69486958        pass
    6949     suite = unittest.makeSuite(Test_Data_Manager,'test')
    6950     runner = unittest.TextTestRunner()#(verbosity=2)
     6959    runner = unittest.TextTestRunner() #verbosity=2)
    69516960    runner.run(suite)
    69526961
Note: See TracChangeset for help on using the changeset viewer.