- Timestamp:
- Nov 11, 2010, 11:55:52 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/anuga_core/source/anuga/abstract_2d_finite_volumes/test_gauge.py
r8063 r8068 245 245 246 246 domain = self.domain 247 domain.set_starttime(5) 248 self._create_sww() 247 domain.set_starttime(1) 248 249 self._create_sww(timestep=2) 249 250 250 251 # test the function … … 258 259 point2, 0.5, 2.0, 9.0\n") 259 260 file_id.close() 260 261 261 262 sww2csv_gauges(self.sww.filename, 262 263 points_file, … … 265 266 266 267 # point1_answers_array = [[0.0,1.0,-5.0,3.0,4.0], [2.0,10.0,-5.0,3.0,4.0]] 267 point1_answers_array = [[ 5.0,5.0/3600.,1.0,6.0,-5.0,3.0,4.0], [7.0,7.0/3600.,10.0,15.0,-5.0,3.0,4.0]]268 point1_answers_array = [[2.0,2.0/3600.,1.0,6.0,-5.0,3.0,4.0], [3.0,3.0/3600.,10.0,15.0,-5.0,3.0,4.0]] 268 269 point1_filename = 'gauge_point1.csv' 269 270 point1_handle = file(point1_filename) … … 279 280 assert num.allclose(line[i], point1_answers_array[i]) 280 281 281 point2_answers_array = [[ 5.0,5.0/3600.,1.0,1.5,-0.5,3.0,4.0], [7.0,7.0/3600.,10.0,10.5,-0.5,3.0,4.0]]282 point2_answers_array = [[2.0,2.0/3600.,1.0,1.5,-0.5,3.0,4.0], [3.0,3.0/3600.,10.0,10.5,-0.5,3.0,4.0]] 282 283 point2_filename = 'gauge_point2.csv' 283 284 point2_handle = file(point2_filename)
Note: See TracChangeset
for help on using the changeset viewer.