Ignore:
Timestamp:
Feb 5, 2010, 5:24:39 PM (14 years ago)
Author:
steve
Message:

Updating to relocated repository

File:
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_core/source/anuga/shallow_water_balanced/test_swb_balance.py

    r7573 r7616  
    6363
    6464        # Limit
    65         domain.tight_slope_limiters = 0
    6665        domain.distribute_to_vertices_and_edges()
    6766
     
    7271
    7372        # Now try with a non-flat bed - closely hugging initial stage in places
    74         # This will create alphas in the range [0, 0.478260, 1]
    7573        domain.set_quantity('stage', [[3,0,3], [2,2,6], [5,3,8], [8,3,5]])
    7674        domain.set_quantity('elevation', [[0,0,0],
     
    7977                                          [0,2,4]])
    8078        stage = domain.quantities['stage']
     79        elevation = domain.quantities['elevation']
     80        height = domain.quantities['height']
    8181
    8282        ref_centroid_values = copy.copy(stage.centroid_values[:])    # Copy
     
    8484
    8585        # Limit
    86         domain.tight_slope_limiters = 0
    8786        domain.distribute_to_vertices_and_edges()
    8887
     
    9897        # Check actual results
    9998        assert num.allclose(stage.vertex_values,
    100                             [[ 2.,          2.,          2.        ],
    101                              [ 1.93333333,  2.03333333,  6.03333333],
    102                              [ 8.4,         3.8,         3.8       ],
    103                              [ 3.33333333,  5.33333333,  7.33333333]]) or \
    104                num.allclose(stage.vertex_values,
    105                             [[ 1.06666667,  3.86666667,  1.06666667],
    106                              [ 1.93333333,  2.03333333,  6.03333333],
    107                              [ 5.46666667,  3.06666667,  7.46666667],
    108                              [ 6.53333333,  4.69333333,  4.77333333]])
     99                            [[ 2.66666667,  0.66666667,  2.66666667],
     100                             [ 3.33333333,  3.33333333,  3.33333333],
     101                             [ 3.73333333,  4.93333333,  7.33333333],
     102                             [ 7.33333333,  4.93333333,  3.73333333]])
    109103
    110104
Note: See TracChangeset for help on using the changeset viewer.