source: issm/oecreview/Archive/16554-17801/ISSM-17622-17623.diff@ 17802

Last change on this file since 17802 was 17802, checked in by Mathieu Morlighem, 11 years ago

Added archives

File size: 673 bytes
RevLine 
[17802]1Index: ../trunk-jpl/src/c/classes/Elements/SegRef.cpp
2===================================================================
3--- ../trunk-jpl/src/c/classes/Elements/SegRef.cpp (revision 17622)
4+++ ../trunk-jpl/src/c/classes/Elements/SegRef.cpp (revision 17623)
5@@ -245,13 +245,9 @@
6 * J is assumed to have been allocated of size 1*/
7
8 IssmDouble x1=xyz_list[3*0+0];
9- IssmDouble y1=xyz_list[3*0+1];
10- IssmDouble z1=xyz_list[3*0+2];
11 IssmDouble x2=xyz_list[3*1+0];
12- IssmDouble y2=xyz_list[3*1+1];
13- IssmDouble z2=xyz_list[3*1+2];
14
15- *J=.5*sqrt(pow(x2-x1,2) + pow(y2-y1,2) + pow(z2-z1,2));
16+ *J=.5*fabs(x2-x1);
17 }
18 /*}}}*/
19 /*FUNCTION SegRef::GetJacobianDeterminant{{{*/
Note: See TracBrowser for help on using the repository browser.