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

    r3514 r3560  
    11#!/usr/bin/env python
    2 
    3 #FIXME (Ole): Maxe this test independent of anything that inherits from General_mesh (namely shallow_water)
    42
    53
     
    86
    97
    10 from quantity import *
    118from anuga.config import epsilon
    129from Numeric import allclose, array, ones, Float
     10from general_mesh import General_mesh
     11
    1312
    1413
     
    2120
    2221    def test_get_vertex_values(self):
    23         """
    24         get connectivity based on triangle lists.
     22        """Get connectivity based on triangle lists.
    2523        """
    2624        from mesh_factory import rectangular
    27         from shallow_water import Domain
    2825        from Numeric import zeros, Float
    2926
    3027        #Create basic mesh
    3128        points, vertices, boundary = rectangular(1, 3)
    32         domain = Domain(points, vertices, boundary)
     29        domain = General_mesh(points, vertices, boundary)
    3330
    3431        value = [7]
     
    4441        #Create basic mesh
    4542        points, vertices, boundary = rectangular(1, 3)
    46         domain = Domain(points, vertices, boundary)
     43        domain = General_mesh(points, vertices, boundary)       
    4744
    4845        assert domain.get_area() == 1.0
     
    5956        #Create basic mesh
    6057        points, vertices, boundary = rectangular(1, 3)
    61         domain = Domain(points, vertices, boundary)
     58        domain = General_mesh(points, vertices, boundary)               
    6259
    6360        assert  domain.get_unique_vertices() == [0,1,2,3,4,5,6,7]
Note: See TracChangeset for help on using the changeset viewer.