Changeset 324


Ignore:
Timestamp:
05/08/09 14:56:47 (16 years ago)
Author:
Mathieu Morlighem
Message:

Fixed indexing in control methods

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/m/classes/public/loadresultsfromdisk.m

    r209 r324  
    4747
    4848        %Used to recover velocities
    49         indx=part(1:2:end);
    50         indy=part(2:2:end);
     49        indx=1:2:gsize;
     50        indy=2:2:gsize;
     51        indx=indx(part);
     52        indy=indy(part);
    5153
    5254        %Recover velocity
    5355        md.cont_vx=u_g(indx)*md.yts;
    5456        md.cont_vy=u_g(indy)*md.yts;
    55         md.cont_vel=sqrt(md.vx.^2+md.vy.^2);
     57        md.cont_vel=sqrt(md.cont_vx.^2+md.cont_vy.^2);
    5658       
    5759        %recover parameter
Note: See TracChangeset for help on using the changeset viewer.