Index: /issm/trunk/src/c/objects/Tria.cpp
===================================================================
--- /issm/trunk/src/c/objects/Tria.cpp	(revision 334)
+++ /issm/trunk/src/c/objects/Tria.cpp	(revision 335)
@@ -2346,6 +2346,6 @@
 		/*Get bed slope: */
 		GetParameterDerivativeValue(&slope[0], &b[0],&xyz_list[0][0], gauss_l1l2l3);
-		dbdx=-slope[0];
-		dbdy=-slope[1];
+		dbdx=slope[0];
+		dbdy=slope[1];
 
 		/* Get Jacobian determinant: */
@@ -2358,5 +2358,5 @@
 		/*Build gaussian vector: */
 		for(i=0;i<numgrids;i++){
-			pe_g_gaussian[i]=Jdet*gauss_weight*(vx*dbdx+vy*dbdy-meltingvalue)*L[i];
+			pe_g_gaussian[i]=-Jdet*gauss_weight*(vx*dbdx+vy*dbdy-meltingvalue)*L[i];
 		}
 	
