Index: /issm/trunk-jpl/src/c/classes/gauss/GaussSeg.cpp
===================================================================
--- /issm/trunk-jpl/src/c/classes/gauss/GaussSeg.cpp	(revision 16438)
+++ /issm/trunk-jpl/src/c/classes/gauss/GaussSeg.cpp	(revision 16439)
@@ -20,5 +20,18 @@
 	/*Get gauss points*/
 	this->numgauss = order;
-	GaussLegendreLinear(&coords1,&weights,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];
+	}
+
+	/*Free ressources: */
+	xDelete<IssmDouble>(pcoords1);
+	xDelete<IssmDouble>(pweights);
 
 	/*Initialize static fields as undefinite*/
