Changeset 783
- Timestamp:
- 06/04/09 16:38:11 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified issm/trunk/src/m/solutions/cielo/transient2d.m ΒΆ
r769 r783 48 48 49 49 %first time step is given by model. 50 dt=m d.dt;51 finaltime=m d.ndt;50 dt=m_p.parameters.dt; 51 finaltime=m_p.parameters.ndt; 52 52 time=dt; 53 yts=m_p.parameters.yts; 53 54 n=1; %counter 54 55 55 56 while time<finaltime+dt, %make sure we run up to finaltime. 56 57 57 disp(sprintf('\n%s%g%s%g%s%g\n','time [yr]: ',time/ md.yts,' iteration number: ',n,'/',floor(finaltime/dt)));58 disp(sprintf('\n%s%g%s%g%s%g\n','time [yr]: ',time/yts,' iteration number: ',n,'/',floor(finaltime/dt))); 58 59 59 60 solution(n+1).step=n+1;
Note:
See TracChangeset
for help on using the changeset viewer.