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_shallow_water.py

    r3535 r3560  
    145145
    146146    def test_flux1(self):
    147         #Use data from previous version of pyvolution
     147        #Use data from previous version of abstract_2d_finite_volumes
    148148        normal = array([1.,0])
    149149        ql = array([-0.2, 2, 3])
     
    157157
    158158    def test_flux2(self):
    159         #Use data from previous version of pyvolution
     159        #Use data from previous version of abstract_2d_finite_volumes
    160160        normal = array([0., -1.])
    161161        ql = array([-0.075, 2, 3])
     
    168168
    169169    def test_flux3(self):
    170         #Use data from previous version of pyvolution
     170        #Use data from previous version of abstract_2d_finite_volumes
    171171        normal = array([-sqrt(2)/2, sqrt(2)/2])
    172172        ql = array([-0.075, 2, 3])
     
    179179
    180180    def test_flux4(self):
    181         #Use data from previous version of pyvolution
     181        #Use data from previous version of abstract_2d_finite_volumes
    182182        normal = array([-sqrt(2)/2, sqrt(2)/2])
    183183        ql = array([-0.34319278, 0.10254161, 0.07273855])
     
    982982        from math import pi, cos, sin, sqrt
    983983        from anuga.config import time_format
    984         from anuga.pyvolution.util import file_function
     984        from anuga.abstract_2d_finite_volumes.util import file_function
    985985        import time
    986986
     
    10291029
    10301030        #Convert ASCII file to NetCDF (Which is what we really like!)
    1031         from anuga.pyvolution.data_manager import timefile2netcdf       
     1031        from anuga.abstract_2d_finite_volumes.data_manager import timefile2netcdf       
    10321032        timefile2netcdf(filename)
    10331033        os.remove(filename + '.txt')
     
    12381238    #####################################################
    12391239    def test_distribute_basic(self):
    1240         #Using test data generated by pyvolution-2
     1240        #Using test data generated by abstract_2d_finite_volumes-2
    12411241        #Assuming no friction and flat bed (0.0)
    12421242
     
    12761276
    12771277    def test_distribute_away_from_bed(self):
    1278         #Using test data generated by pyvolution-2
     1278        #Using test data generated by abstract_2d_finite_volumes-2
    12791279        #Assuming no friction and flat bed (0.0)
    12801280
     
    13131313
    13141314    def test_distribute_away_from_bed1(self):
    1315         #Using test data generated by pyvolution-2
     1315        #Using test data generated by abstract_2d_finite_volumes-2
    13161316        #Assuming no friction and flat bed (0.0)
    13171317
     
    13511351
    13521352    def test_distribute_near_bed(self):
    1353         #Using test data generated by pyvolution-2
     1353        #Using test data generated by abstract_2d_finite_volumes-2
    13541354        #Assuming no friction and flat bed (0.0)
    13551355
     
    13961396
    13971397    def test_distribute_near_bed1(self):
    1398         #Using test data generated by pyvolution-2
     1398        #Using test data generated by abstract_2d_finite_volumes-2
    13991399        #Assuming no friction and flat bed (0.0)
    14001400
     
    14431443
    14441444    def test_second_order_distribute_real_data(self):
    1445         #Using test data generated by pyvolution-2
     1445        #Using test data generated by abstract_2d_finite_volumes-2
    14461446        #Assuming no friction and flat bed (0.0)
    14471447
     
    19271927
    19281928        import sys
    1929         from os import sep; sys.path.append('..'+sep+'pyvolution')
     1929        from os import sep; sys.path.append('..'+sep+'abstract_2d_finite_volumes')
    19301930        from mesh_factory import rectangular
    19311931        from shallow_water import Domain, Reflective_boundary
     
    20042004            pass# domain.write_time()
    20052005
    2006         #Data from earlier version of pyvolution
     2006        #Data from earlier version of abstract_2d_finite_volumes
    20072007        assert allclose(domain.min_timestep, 0.0396825396825)
    20082008        assert allclose(domain.max_timestep, 0.0396825396825)
     
    20742074            pass
    20752075
    2076         #Data from earlier version of pyvolution
     2076        #Data from earlier version of abstract_2d_finite_volumes
    20772077        #assert allclose(domain.min_timestep, 0.0396825396825)
    20782078        #assert allclose(domain.max_timestep, 0.0396825396825)
     
    22382238
    22392239    def test_flatbed_second_order_distribute(self):
    2240         #Use real data from anuga.pyvolution 2
     2240        #Use real data from anuga.abstract_2d_finite_volumes 2
    22412241        #painfully setup and extracted.
    22422242        from mesh_factory import rectangular
     
    24592459            pass# domain.write_time()
    24602460
    2461         #Data from earlier version of pyvolution
     2461        #Data from earlier version of abstract_2d_finite_volumes
    24622462        #print domain.quantities['stage'].centroid_values
    24632463
     
    26422642
    26432643
    2644         #Data from earlier version of pyvolution ft=0.1
     2644        #Data from earlier version of abstract_2d_finite_volumes ft=0.1
    26452645        assert allclose(domain.min_timestep, 0.0376895634803)
    26462646        assert allclose(domain.max_timestep, 0.0415635655309)
     
    33413341         tags["3"] = b3
    33423342
    3343          #from anuga.pyvolution.pmesh2domain import pmesh_to_domain_instance
     3343         #from anuga.abstract_2d_finite_volumes.pmesh2domain import pmesh_to_domain_instance
    33443344         #domain = pmesh_to_domain_instance(fileName, Domain)
    33453345
Note: See TracChangeset for help on using the changeset viewer.