Changeset 134
- Timestamp:
- 04/29/09 15:12:25 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/m/solutions/cielo/diagnostic.m
r129 r134 22 22 disp(sprintf('\n%s',['computing horizontal velocities...'])); 23 23 24 u_g=diagnostic_core_nonlinear(m_dh,{}); 24 %plug existing velocity in inputs 25 if ~isnan(md.vx) & ~isnan(md.vy), 26 indx=m_dh.part(1:2:end); 27 indy=m_dh.part(2:2:end); 28 velocity=zeros(m_dh.nodesets.gsize,1); 29 velocity(indx)=md.vx/md.yts; 30 velocity(indy)=md.vy/md.yts; 31 inputs=struct('velocity',velocity); 32 else 33 inputs={}; 34 end 35 36 u_g=diagnostic_core_nonlinear(m_dh,inputs); 25 37 26 38 if strcmpi(md.type,'3d'),
Note:
See TracChangeset
for help on using the changeset viewer.