source: issm/oecreview/Archive/20496-20544/ISSM-20511-20512.diff@ 20545

Last change on this file since 20545 was 20545, checked in by Mathieu Morlighem, 9 years ago

CHG: new quick sync to fix examples in trunk

File size: 694 bytes
  • ../trunk-jpl/src/m/exp/flowlines.m

     
    8787        end
    8888
    8989        %velocity of the current triangle and norm it
    90         ut=u(tria); vt=v(tria); normv=sqrt(ut.^2+vt.^2);
     90        ut=u(tria); vt=v(tria); normv=max(eps,sqrt(ut.^2+vt.^2));
    9191        ut=ut./normv;vt=vt./normv;
    9292
    9393        %check counter
     
    137137        end
    138138
    139139        %velocity of the current triangle and norm it
    140         ut=-u(tria); vt=-v(tria); normv=sqrt(ut.^2+vt.^2);
     140        ut=-u(tria); vt=-v(tria); normv=max(eps,sqrt(ut.^2+vt.^2));
    141141        ut=ut./normv;vt=vt./normv;
    142142
    143143        %check counter
Note: See TracBrowser for help on using the repository browser.