Ignore:
Timestamp:
Mar 31, 2008, 4:39:49 PM (17 years ago)
Author:
ole
Message:

Made tight_slope_limiters = True the default.
Fixed a few tests
Did some cosmetics as per style guide.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_core/source/anuga/fit_interpolate/test_interpolate.py

    r4820 r5181  
    15821582            return -x
    15831583       
    1584         # create mesh
     1584        # Create mesh
    15851585        mesh_file = tempfile.mktemp(".tsh")   
    15861586        points = [[0.0,0.0],[6.0,0.0],[6.0,6.0],[0.0,6.0]]
     
    15911591        m.export_mesh_file(mesh_file)
    15921592       
    1593         #Create shallow water domain
     1593        # Create shallow water domain
    15941594        domain = Domain(mesh_file)
    15951595        os.remove(mesh_file)
    15961596       
    1597         domain.default_order=2
     1597        domain.default_order = 2
    15981598        domain.beta_h = 0
    15991599
    1600         #Set some field values
     1600        # This test was made before tight_slope_limiters were introduced
     1601        # Since were are testing interpolation values this is OK
     1602        domain.tight_slope_limiters = 0
     1603
     1604        # Set some field values
    16011605        domain.set_quantity('elevation', elevation_function)
    16021606        domain.set_quantity('friction', 0.03)
     
    16221626        sww.store_connectivity()
    16231627        sww.store_timestep(['stage', 'xmomentum', 'ymomentum'])
    1624         domain.set_quantity('stage', 10.0) # This is automatically limmited
    1625         # so it will not be less than the elevation
     1628        domain.set_quantity('stage', 10.0) # This is automatically limited
     1629        # So it will not be less than the elevation
    16261630        domain.time = 2.
    16271631        sww.store_timestep(['stage', 'xmomentum', 'ymomentum'])
    16281632
    1629         # test the function
     1633        # Test the function
    16301634        points = [[5.0,1.],[0.5,2.]]
    16311635        depth_file = tempfile.mktemp(".csv")
Note: See TracChangeset for help on using the changeset viewer.