Changeset 9189
- Timestamp:
- Jun 18, 2014, 5:27:56 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/anuga_core/source/anuga/utilities/plot_utils.py
r9163 r9189 953 953 if(type(myTS)==int): 954 954 if(output_quantity=='stage'): 955 if verbose: print 'calculating stage' 955 956 gridq=p2.stage[myTS,:][gridqInd] 956 957 if(output_quantity=='depth'): 958 if verbose: print 'calculating depth' 957 959 gridq=p2.height[myTS,:][gridqInd] 958 960 gridq=gridq*(gridq>=0.) # Force positive depth (tsunami alg) 959 961 if(output_quantity=='velocity'): 962 if verbose: print 'calculating velocity' 960 963 gridq=p2.vel[myTS,:][gridqInd] 961 964 if(output_quantity=='friction'): 965 if verbose: print 'calculating friction' 962 966 gridq=p2.friction[gridqInd] 963 967 if(output_quantity=='depthIntegratedVelocity'): 968 if verbose: print 'calculating depthIntegratedVelocity' 964 969 swwDIVel=(p2.xmom[myTS,:]**2+p2.ymom[myTS,:]**2)**0.5 965 970 gridq=swwDIVel[gridqInd] 966 971 if(output_quantity=='elevation'): 972 if verbose: print 'calculating elevation' 967 973 gridq=p2.elev[gridqInd] 968 974
Note: See TracChangeset
for help on using the changeset viewer.