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

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

CHG: new quick sync to fix examples in trunk

File size: 694 bytes
RevLine 
[20545]1Index: ../trunk-jpl/src/m/exp/flowlines.m
2===================================================================
3--- ../trunk-jpl/src/m/exp/flowlines.m (revision 20511)
4+++ ../trunk-jpl/src/m/exp/flowlines.m (revision 20512)
5@@ -87,7 +87,7 @@
6 end
7
8 %velocity of the current triangle and norm it
9- ut=u(tria); vt=v(tria); normv=sqrt(ut.^2+vt.^2);
10+ ut=u(tria); vt=v(tria); normv=max(eps,sqrt(ut.^2+vt.^2));
11 ut=ut./normv;vt=vt./normv;
12
13 %check counter
14@@ -137,7 +137,7 @@
15 end
16
17 %velocity of the current triangle and norm it
18- ut=-u(tria); vt=-v(tria); normv=sqrt(ut.^2+vt.^2);
19+ ut=-u(tria); vt=-v(tria); normv=max(eps,sqrt(ut.^2+vt.^2));
20 ut=ut./normv;vt=vt./normv;
21
22 %check counter
Note: See TracBrowser for help on using the repository browser.