Changeset 2479
- Timestamp:
- 10/22/09 10:45:28 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/m/utils/Mesh/timesteps.m
r2465 r2479 15 15 end 16 16 17 areas=GetAreas(md.elements,md.x,md.y);18 Dx=averaging(md,sqrt(2*areas),0);19 Du=sqrt(vx.^2+vy.^2);20 maxtime=min(1/2*Dx./Du);17 edgex=max(md.x(md.elements),[],2)-min(md.x(md.elements),[],2); 18 edgey=max(md.y(md.elements),[],2)-min(md.y(md.elements),[],2); 19 vx=max(vx(md.elements),[],2); 20 vy=max(vy(md.elements),[],2); 21 21 22 22 maxtime=1/2*(edgex/vx+edgey/vy);
Note:
See TracChangeset
for help on using the changeset viewer.