Changeset 7788


Ignore:
Timestamp:
Jun 5, 2010, 7:06:44 PM (12 years ago)
Author:
steve
Message:

cleaning up pipeflow directory

Location:
anuga_work/development/pipeflow
Files:
3 deleted
3 moved

Legend:

Unmodified
Added
Removed
  • anuga_work/development/pipeflow/generic_domain.py

    r7780 r7788  
    1212
    1313
    14 class Domain:
     14class Generic_Domain:
    1515
    1616    def __init__(self,
  • anuga_work/development/pipeflow/test_sww_domain.py

    r7780 r7788  
    55
    66
    7 from shallow_water_domain import *
    8 from shallow_water_domain import flux_function as domain_flux_function
    9 
     7from sww_domain import *
     8import sww_python
    109
    1110
     
    3736        domain.set_boundary({'exterior' : Reflective_boundary(domain)})
    3837
    39         stage_ud, xmom_ud = local_compute_fluxes(domain)
     38        stage_ud, xmom_ud = sww_python.compute_fluxes(domain)
    4039
    4140        domain.distribute_to_vertices_and_edges()
     
    8180        assert numpy.allclose(5.1305, maxspeed, rtol=1.0e-005)
    8281
    83     def test_domain_flux_function(self):
    84         normal = 1.0
    85         ql = numpy.array([1.0, 2.0],numpy.float)
    86         qr = numpy.array([1.0, 2.0],numpy.float)
    87         zl = 0.0
    88         zr = 0.0
    89 
    90         edgeflux, maxspeed = local_flux_function(normal, ql,qr,zl,zr)
    91 
    92         #print edgeflux
    93 
    94 
    95 
    96         domainedgeflux, domainmaxspeed = domain_flux_function(normal, ql,qr,zl,zr)
    97 
    98         #print domainedgeflux
    99 
    100         assert numpy.allclose(domainedgeflux, edgeflux)
    101         assert numpy.allclose(domainmaxspeed, maxspeed)
     82
    10283
    10384    def test_gravity(self):
Note: See TracChangeset for help on using the changeset viewer.