Changeset 6129


Ignore:
Timestamp:
10/03/10 22:54:40 (14 years ago)
Author:
Eric.Larour
Message:

better name

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 timesteps for the model in years
     1function maxtime=cfl_step(md,vx,vy);
     2%CFL_STEP - return the maximum time step for the model in years
    33%
    44%   Dt < c / ( u/Dx +v/Dy )
    55%
    66%   Usage:
    7 %      maxtime=timesteps(md,vx,vy);
     7%      maxtime=cfl_step(md,vx,vy);
    88%
    99%   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);
    1111
    1212%Check length of velocities
Note: See TracChangeset for help on using the changeset viewer.