Ignore:
Timestamp:
Apr 21, 2008, 5:11:58 PM (15 years ago)
Author:
ole
Message:

Work done during Water Down Under 2008.
Hardwired the three conserved quantities from sww into file_function as it was getting messy trying to exclude irrelevant quantities. Also did some formatting and commenting.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_core/source/anuga/abstract_2d_finite_volumes/test_util.py

    r5182 r5221  
    951951        domain = Domain(points, vertices)
    952952
    953         #Check that domain.starttime is updated if non-existing
    954         F = file_function(filename + '.tms', domain)
    955        
     953        # Check that domain.starttime is updated if non-existing
     954        F = file_function(filename + '.tms',
     955                          domain,
     956                          quantities = ['Attribute0', 'Attribute1', 'Attribute2']) 
    956957        assert allclose(domain.starttime, start)
    957958
    958         #Check that domain.starttime is updated if too early
     959        # Check that domain.starttime is updated if too early
    959960        domain.starttime = start - 1
    960         F = file_function(filename + '.tms', domain)
     961        F = file_function(filename + '.tms',
     962                          domain,
     963                          quantities = ['Attribute0', 'Attribute1', 'Attribute2'])
    961964        assert allclose(domain.starttime, start)
    962965
    963         #Check that domain.starttime isn't updated if later
     966        # Check that domain.starttime isn't updated if later
    964967        domain.starttime = start + 1
    965         F = file_function(filename + '.tms', domain)       
     968        F = file_function(filename + '.tms',
     969                          domain,
     970                          quantities = ['Attribute0', 'Attribute1', 'Attribute2'])
    966971        assert allclose(domain.starttime, start+1)
    967972
    968973        domain.starttime = start
    969         F = file_function(filename + '.tms', domain,
     974        F = file_function(filename + '.tms',
     975                          domain,
    970976                          quantities = ['Attribute0', 'Attribute1', 'Attribute2'],
    971977                          use_cache=True)
Note: See TracChangeset for help on using the changeset viewer.