Changeset 5089
- Timestamp:
- Feb 28, 2008, 1:48:19 PM (17 years ago)
- Location:
- anuga_core/source/anuga
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_core/source/anuga/shallow_water/shallow_water_domain.py
r5081 r5089 994 994 q = self.domain.get_conserved_quantities(vol_id, edge = edge_id) 995 995 996 # Roll boundary over if time exceeds 996 997 997 t = self.domain.time 998 while t > self.function.time[-1]: 999 msg = 'WARNING: domain time %.2f has exceeded' %t 1000 msg += 'time provided in ' 1001 msg += 'transmissive_momentum_set_stage boundary object.\n' 1002 msg += 'I will continue, reusing the object from t==0' 1003 print msg 1004 t -= self.function.time[-1] 998 999 if hasattr(self.function, 'time'): 1000 # Roll boundary over if time exceeds 1001 while t > self.function.time[-1]: 1002 msg = 'WARNING: domain time %.2f has exceeded' %t 1003 msg += 'time provided in ' 1004 msg += 'transmissive_momentum_set_stage boundary object.\n' 1005 msg += 'I will continue, reusing the object from t==0' 1006 print msg 1007 t -= self.function.time[-1] 1005 1008 1006 1009 -
anuga_core/source/anuga/utilities/polygon.py
r5086 r5089 401 401 ylabel('y') 402 402 title(label) 403 404 if minx <> 0: 405 axis([minx*0.9,maxx*1.1,miny*0.9,maxy*1.1]) 406 else: 407 if miny == 0: 408 axis([-maxx*.01,maxx*1.1,-maxy*0.01,maxy*1.1]) 409 else: 410 axis([-maxx*.01,maxx*1.1,miny*0.9,maxy*1.1]) 411 403 404 #raw_input('wait 1') 405 #FIXME(Ole): This makes for some strange scalings sometimes. 406 #if minx <> 0: 407 # axis([minx*0.9,maxx*1.1,miny*0.9,maxy*1.1]) 408 #else: 409 # if miny == 0: 410 # axis([-maxx*.01,maxx*1.1,-maxy*0.01,maxy*1.1]) 411 # else: 412 # axis([-maxx*.01,maxx*1.1,miny*0.9,maxy*1.1]) 413 412 414 if figname is not None: 413 415 savefig(figname)
Note: See TracChangeset
for help on using the changeset viewer.