Changeset 5878
- Timestamp:
- Oct 30, 2008, 12:20:50 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_core/source/anuga/shallow_water/test_system.py
r5847 r5878 60 60 for t in domain.evolve(yieldstep = 10, finaltime = 20.0): 61 61 pass 62 #print domain.boundary_statistics('stage') 63 q = Bd.evaluate() 64 65 # FIXME (Ole): This test would not have passed in 66 # changeset:5846. 67 msg = 'Time boundary not evaluated correctly' 68 assert allclose(t, q[0]), msg 69 70 #print domain.get_quantity('stage').get_values() 62 71 #domain.write_time() 63 72 #print "domain.time", domain.time 73 64 74 return boundary_filename 65 75 … … 150 160 for t in domain.evolve(yieldstep = 5, finaltime = 9.0): 151 161 pass 162 #print domain.boundary_statistics() 152 163 #domain.write_time() 153 164 #print "domain.time", domain.time … … 162 173 assert allclose(fid.starttime, new_starttime) 163 174 fid.close() 175 164 176 #print "stage[2,0]", stage[2,0] 165 177 msg = "This test is a bit hand crafted, based on the output file. " 166 178 msg += "Not logic. " 167 179 msg += "It's testing that starttime is working" 168 assert allclose(stage[2,0], 5.959411),msg180 assert allclose(stage[2,0], 11.9867153168),msg 169 181 170 182
Note: See TracChangeset
for help on using the changeset viewer.