Changeset 6129
- Timestamp:
- 10/03/10 22:54:40 (14 years ago)
- Location:
- issm/trunk/src/m/utils/Numerics
- Files:
-
- 1 added
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/m/utils/Numerics/cfl_step.m
r6097 r6129 1 function maxtime= timesteps(md,vx,vy);2 % TIMESTEPS - return the maximum timestepsfor the model in years1 function maxtime=cfl_step(md,vx,vy); 2 %CFL_STEP - return the maximum time step for the model in years 3 3 % 4 4 % Dt < c / ( u/Dx +v/Dy ) 5 5 % 6 6 % Usage: 7 % maxtime= timesteps(md,vx,vy);7 % maxtime=cfl_step(md,vx,vy); 8 8 % 9 9 % Example: 10 % dt= timesteps(md,md.results.diagnostic.vx,md.results.diagnostic.vy);10 % dt=cfl_step(md,md.results.diagnostic.vx,md.results.diagnostic.vy); 11 11 12 12 %Check length of velocities
Note:
See TracChangeset
for help on using the changeset viewer.