Index: /issm/trunk-jpl/src/c/classes/gauss/GaussSeg.cpp
===================================================================
--- /issm/trunk-jpl/src/c/classes/gauss/GaussSeg.cpp	(revision 16435)
+++ /issm/trunk-jpl/src/c/classes/gauss/GaussSeg.cpp	(revision 16436)
@@ -20,14 +20,5 @@
 	/*Get gauss points*/
 	this->numgauss = order;
-	GaussLegendreLinear(&pcoords1,&pweights,order);
-	
-	this->coords1=xNew<IssmDouble>(numgauss);
-	this->weights=xNew<IssmDouble>(numgauss);
-
-	/*cast : */
-	for(int i=0;i<numgauss;i++){
-		this->coords1[i]=pcoords1[i];
-		this->weights[i]=pweights[i];
-	}
+	GaussLegendreLinear(&coords1,&weights,order);
 
 	/*Initialize static fields as undefinite*/
