Last change
on this file was 20545, checked in by Mathieu Morlighem, 9 years ago |
CHG: new quick sync to fix examples in trunk
|
File size:
694 bytes
|
Rev | Line | |
---|
[20545] | 1 | Index: ../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.