Ignore:
Timestamp:
Sep 12, 2006, 2:54:29 PM (17 years ago)
Author:
ole
Message:

Renamed pyvolution to abstract_2d_finite_volumes. This is
one step towards pulling pyvolution apart. More to follow.
All unit tests pass and most examples fixed up.




Location:
anuga_core/source/anuga/abstract_2d_finite_volumes
Files:
1 edited
1 moved

Legend:

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

    r3532 r3560  
    1010from Scientific.IO.NetCDF import NetCDFFile
    1111
    12 from anuga.pyvolution.data_manager import *
    13 from anuga.pyvolution.shallow_water import *
     12from anuga.abstract_2d_finite_volumes.data_manager import *
     13from anuga.abstract_2d_finite_volumes.shallow_water import *
    1414from anuga.config import epsilon
    1515
    1616# This is needed to run the tests of local functions
    17 import anuga.pyvolution.data_manager
     17import anuga.abstract_2d_finite_volumes.data_manager
    1818
    1919from anuga.coordinate_transforms.geo_reference import Geo_reference
     
    27642764        #Import the example's file as a new domain
    27652765        ##########################################
    2766         from anuga.pyvolution.data_manager import sww2domain
     2766        from anuga.abstract_2d_finite_volumes.data_manager import sww2domain
    27672767        from Numeric import allclose
    27682768        import os
     
    29082908        #Import the file as a new domain
    29092909        ##################################
    2910         from anuga.pyvolution.data_manager import sww2domain
     2910        from anuga.abstract_2d_finite_volumes.data_manager import sww2domain
    29112911        from Numeric import allclose
    29122912        import os
     
    29462946
    29472947    #def test_weed(self):
    2948         from anuga.pyvolution.data_manager import weed
     2948        from anuga.abstract_2d_finite_volumes.data_manager import weed
    29492949
    29502950        coordinates1 = [[0.,0.],[1.,0.],[1.,1.],[1.,0.],[2.,0.],[1.,1.]]
     
    30193019        #Import the example's file as a new domain
    30203020        ##########################################
    3021         from anuga.pyvolution.data_manager import sww2domain
     3021        from anuga.abstract_2d_finite_volumes.data_manager import sww2domain
    30223022        from Numeric import allclose
    30233023        import os
     
    33203320        from Scientific.IO.NetCDF import NetCDFFile
    33213321
    3322         from anuga.pyvolution.data_manager import _read_asc
     3322        from anuga.abstract_2d_finite_volumes.data_manager import _read_asc
    33233323        #Write test asc file
    33243324        filename = tempfile.mktemp(".000")
     
    40354035        # k - lat
    40364036        # l - lon
    4037         kmin, kmax, lmin, lmax = anuga.pyvolution.data_manager._get_min_max_indexes(
     4037        kmin, kmax, lmin, lmax = anuga.abstract_2d_finite_volumes.data_manager._get_min_max_indexes(
    40384038            latitudes,longitudes,
    40394039            -10,4,-10,31)
     
    40504050
    40514051        ## 2nd test
    4052         kmin, kmax, lmin, lmax = anuga.pyvolution.data_manager._get_min_max_indexes(
     4052        kmin, kmax, lmin, lmax = anuga.abstract_2d_finite_volumes.data_manager._get_min_max_indexes(
    40534053            latitudes,longitudes,
    40544054            0.5,2.5,5,25)
     
    40654065
    40664066        ## 3rd test
    4067         kmin, kmax, lmin, lmax = anuga.pyvolution.data_manager._get_min_max_indexes(\
     4067        kmin, kmax, lmin, lmax = anuga.abstract_2d_finite_volumes.data_manager._get_min_max_indexes(\
    40684068            latitudes,
    40694069            longitudes,
     
    40824082
    40834083        ## 4th test
    4084         kmin, kmax, lmin, lmax = anuga.pyvolution.data_manager._get_min_max_indexes(
     4084        kmin, kmax, lmin, lmax = anuga.abstract_2d_finite_volumes.data_manager._get_min_max_indexes(
    40854085            latitudes,longitudes,
    40864086                                                      -0.1,1.9,-2,17)
     
    40964096                         'failed')
    40974097        ## 5th test
    4098         kmin, kmax, lmin, lmax = anuga.pyvolution.data_manager._get_min_max_indexes(
     4098        kmin, kmax, lmin, lmax = anuga.abstract_2d_finite_volumes.data_manager._get_min_max_indexes(
    40994099            latitudes,longitudes,
    41004100            0.1,1.9,2,17)
     
    41124112        ## 6th test
    41134113
    4114         kmin, kmax, lmin, lmax = anuga.pyvolution.data_manager._get_min_max_indexes(
     4114        kmin, kmax, lmin, lmax = anuga.abstract_2d_finite_volumes.data_manager._get_min_max_indexes(
    41154115            latitudes,longitudes,
    41164116            1.5,4,18,32)
     
    41294129        ## 7th test
    41304130        m2d = array([[0,1,2,3],[4,5,6,7],[8,9,10,11],[12,13,14,15]])
    4131         kmin, kmax, lmin, lmax = anuga.pyvolution.data_manager._get_min_max_indexes(
     4131        kmin, kmax, lmin, lmax = anuga.abstract_2d_finite_volumes.data_manager._get_min_max_indexes(
    41324132            latitudes,longitudes,
    41334133            1.5,1.5,15,15)
     
    41564156        # k - lat
    41574157        # l - lon
    4158         kmin, kmax, lmin, lmax = anuga.pyvolution.data_manager._get_min_max_indexes(
     4158        kmin, kmax, lmin, lmax = anuga.abstract_2d_finite_volumes.data_manager._get_min_max_indexes(
    41594159            latitudes,longitudes,
    41604160            -37,-27,147,149.5)
     
    41854185        # k - lat
    41864186        # l - lon
    4187         kmin, kmax, lmin, lmax = anuga.pyvolution.data_manager._get_min_max_indexes(
     4187        kmin, kmax, lmin, lmax = anuga.abstract_2d_finite_volumes.data_manager._get_min_max_indexes(
    41884188            latitudes,longitudes,
    41894189            -43,-37,148.5,149.5)
     
    42094209        # k - lat
    42104210        # l - lon
    4211         kmin, kmax, lmin, lmax = anuga.pyvolution.data_manager._get_min_max_indexes(
     4211        kmin, kmax, lmin, lmax = anuga.abstract_2d_finite_volumes.data_manager._get_min_max_indexes(
    42124212            latitudes,longitudes)
    42134213
Note: See TracChangeset for help on using the changeset viewer.