- Timestamp:
- Apr 21, 2008, 5:11:58 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_core/source/anuga/abstract_2d_finite_volumes/test_util.py
r5182 r5221 951 951 domain = Domain(points, vertices) 952 952 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']) 956 957 assert allclose(domain.starttime, start) 957 958 958 # Check that domain.starttime is updated if too early959 # Check that domain.starttime is updated if too early 959 960 domain.starttime = start - 1 960 F = file_function(filename + '.tms', domain) 961 F = file_function(filename + '.tms', 962 domain, 963 quantities = ['Attribute0', 'Attribute1', 'Attribute2']) 961 964 assert allclose(domain.starttime, start) 962 965 963 # Check that domain.starttime isn't updated if later966 # Check that domain.starttime isn't updated if later 964 967 domain.starttime = start + 1 965 F = file_function(filename + '.tms', domain) 968 F = file_function(filename + '.tms', 969 domain, 970 quantities = ['Attribute0', 'Attribute1', 'Attribute2']) 966 971 assert allclose(domain.starttime, start+1) 967 972 968 973 domain.starttime = start 969 F = file_function(filename + '.tms', domain, 974 F = file_function(filename + '.tms', 975 domain, 970 976 quantities = ['Attribute0', 'Attribute1', 'Attribute2'], 971 977 use_cache=True)
Note: See TracChangeset
for help on using the changeset viewer.