- Timestamp:
- Apr 6, 2010, 8:23:54 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_core/source/anuga/abstract_2d_finite_volumes/gauge.py
r7673 r7675 190 190 quake_time = time + quake_offset_time 191 191 points_list = [quake_time, quake_time/3600.]# fudge around SWW time bug 192 point_quantities = callable_sww(time, point_i) # __call__ is overridden193 192 point_quantities = callable_sww(time, point_i) # __call__ is overridden 193 194 194 for quantity in quantities: 195 195 if quantity == NAN: … … 197 197 % callable_sww.get_name) 198 198 else: 199 #core quantities that are exported from the interpolator 199 200 if quantity == 'stage': 200 201 points_list.append(point_quantities[0]) … … 208 209 if quantity == 'ymomentum': 209 210 points_list.append(point_quantities[3]) 210 211 212 #derived quantities that are calculated from the core ones 211 213 if quantity == 'depth': 212 214 points_list.append(point_quantities[0] … … 237 239 points_list.append(calc_bearing(point_quantities[2], 238 240 point_quantities[3])) 239 241 if quantity == 'xcentroid': 242 points_list.append(callable_sww.centroids[point_i][0]) 243 244 if quantity == 'ycentroid': 245 points_list.append(callable_sww.centroids[point_i][1]) 246 240 247 points_writer[point_i].writerow(points_list) 241 248
Note: See TracChangeset
for help on using the changeset viewer.