Index: /issm/trunk-jpl/src/c/Makefile.am
===================================================================
--- /issm/trunk-jpl/src/c/Makefile.am	(revision 16377)
+++ /issm/trunk-jpl/src/c/Makefile.am	(revision 16378)
@@ -25,4 +25,6 @@
 					./datastructures/datastructures.h\
 					./classes/classes.h\
+					./classes/gauss/GaussSeg.h\
+					./classes/gauss/GaussSeg.cpp\
 					./classes/gauss/GaussTria.h\
 					./classes/gauss/GaussTria.cpp\
Index: /issm/trunk-jpl/src/c/classes/Elements/SegRef.cpp
===================================================================
--- /issm/trunk-jpl/src/c/classes/Elements/SegRef.cpp	(revision 16377)
+++ /issm/trunk-jpl/src/c/classes/Elements/SegRef.cpp	(revision 16378)
@@ -76,6 +76,5 @@
 	IssmDouble z2=xyz_list[3*1+2];
 
-	*Jdet=.5*sqrt(pow(x2-x1,2) + pow(y2-y1,2) + pow(z2-z1,2));
-	if(*Jdet<0) _error_("negative jacobian determinant!");
+	*J=.5*sqrt(pow(x2-x1,2) + pow(y2-y1,2) + pow(z2-z1,2));
 }
 /*}}}*/
@@ -86,5 +85,6 @@
 
 	/*Call Jacobian routine to get the jacobian:*/
-	GetJacobian(&Jdet, xyz_list, gauss);
+	GetJacobian(Jdet, xyz_list, gauss);
+	if(*Jdet<0) _error_("negative jacobian determinant!");
 
 }
