Ignore:
Timestamp:
Apr 3, 2009, 12:11:24 PM (16 years ago)
Author:
ole
Message:

Reverted (manually) changeset:6215 and thus reinstated storage of the _range information. It turned out the MIRONE relies on this. Apologies to all.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_core/source/anuga/shallow_water/test_data_manager.py

    r6595 r6711  
    251251
    252252        # Get the variables
    253         #range = fid.variables['stage_range'][:]
     253        range = fid.variables['stage_range'][:]
    254254        #print range
    255         #assert num.allclose(range,[-0.93519, 0.15]) or\
    256         #       num.allclose(range,[-0.9352743, 0.15]) or\
    257         #       num.allclose(range,[-0.93522203, 0.15000001]) # Old slope limiters
    258        
    259         #range = fid.variables['xmomentum_range'][:]
     255        assert num.allclose(range,[-0.93519, 0.15]) or\
     256               num.allclose(range,[-0.9352743, 0.15]) or\
     257               num.allclose(range,[-0.93522203, 0.15000001]) # Old slope limiters
     258       
     259        range = fid.variables['xmomentum_range'][:]
    260260        ##print range
    261         #assert num.allclose(range,[0,0.4695096]) or \
    262         #       num.allclose(range,[0,0.47790655]) or\
    263         #       num.allclose(range,[0,0.46941957]) or\
    264         #       num.allclose(range,[0,0.47769409])
    265 
    266        
    267         #range = fid.variables['ymomentum_range'][:]
     261        assert num.allclose(range,[0,0.4695096]) or \
     262               num.allclose(range,[0,0.47790655]) or\
     263               num.allclose(range,[0,0.46941957]) or\
     264               num.allclose(range,[0,0.47769409])
     265
     266       
     267        range = fid.variables['ymomentum_range'][:]
    268268        ##print range
    269         #assert num.allclose(range,[0,0.02174380]) or\
    270         #       num.allclose(range,[0,0.02174439]) or\
    271         #       num.allclose(range,[0,0.02283983]) or\
    272         #       num.allclose(range,[0,0.0217342]) or\
    273         #       num.allclose(range,[0,0.0227564]) # Old slope limiters
     269        assert num.allclose(range,[0,0.02174380]) or\
     270               num.allclose(range,[0,0.02174439]) or\
     271               num.allclose(range,[0,0.02283983]) or\
     272               num.allclose(range,[0,0.0217342]) or\
     273               num.allclose(range,[0,0.0227564]) # Old slope limiters
    274274       
    275275        fid.close()
Note: See TracChangeset for help on using the changeset viewer.