Index: /issm/trunk-jpl/src/c/classes/Elements/PentaRef.cpp
===================================================================
--- /issm/trunk-jpl/src/c/classes/Elements/PentaRef.cpp	(revision 21714)
+++ /issm/trunk-jpl/src/c/classes/Elements/PentaRef.cpp	(revision 21715)
@@ -1033,11 +1033,11 @@
 
 	/*Output*/
-	int  numindices;
+	int  numseg;
 	int* indices = NULL;
 
 	switch(finiteelement){
 		case P1Enum: case P1DGEnum:
-			numindices = 3*2;
-			indices    = xNew<int>(numindices);
+			numseg = 3;
+			indices = xNew<int>(numseg*2);
 			indices[0*2 + 0] = 0; indices[0*2 + 1] = 3;
 			indices[1*2 + 0] = 1; indices[1*2 + 1] = 4;
@@ -1045,6 +1045,6 @@
 			break;
 		case P1bubbleEnum: case P1bubblecondensedEnum:
-			numindices = 3*2;
-			indices    = xNew<int>(numindices);
+			numseg = 3;
+			indices = xNew<int>(numseg*2);
 			indices[0*2 + 0] = 0; indices[0*2 + 1] = 3;
 			indices[1*2 + 0] = 1; indices[1*2 + 1] = 4;
@@ -1052,6 +1052,6 @@
 			break;
 		case P2xP1Enum:
-			numindices = 6*2;
-			indices    = xNew<int>(numindices);
+			numseg = 6;
+			indices = xNew<int>(numseg*2);
 			indices[0*2 + 0] = 0; indices[0*2 + 1] = 3;
 			indices[1*2 + 0] = 1; indices[1*2 + 1] = 4;
@@ -1062,6 +1062,6 @@
 			break;
 		case P1xP2Enum:
-			numindices = 3*2;
-			indices    = xNew<int>(numindices);
+			numseg = 3;
+			indices = xNew<int>(numseg*2);
 			indices[0*2 + 0] = 0; indices[0*2 + 1] = 6;
 			indices[1*2 + 0] = 1; indices[1*2 + 1] = 7;
@@ -1069,6 +1069,6 @@
 			break;
 		case P1xP3Enum:
-			numindices = 3*2;
-			indices    = xNew<int>(numindices);
+			numseg = 3;
+			indices = xNew<int>(numseg*2);
 			indices[0*2 + 0] = 0; indices[0*2 + 1] = 6;
 			indices[1*2 + 0] = 1; indices[1*2 + 1] = 7;
@@ -1076,6 +1076,6 @@
 			break;
 		case P2Enum:
-			numindices = 6*2;
-			indices    = xNew<int>(numindices);
+			numseg = 6;
+			indices = xNew<int>(numseg*2);
 			indices[0*2 + 0] = 0;  indices[0*2 + 1] = 6;
 			indices[1*2 + 0] = 1;  indices[1*2 + 1] = 7;
@@ -1086,6 +1086,6 @@
 			break;
 		case P2bubbleEnum:
-			numindices = 6*2;
-			indices    = xNew<int>(numindices);
+			numseg = 6;
+			indices = xNew<int>(numseg*2);
 			indices[0*2 + 0] = 0;  indices[0*2 + 1] = 6;
 			indices[1*2 + 0] = 1;  indices[1*2 + 1] = 7;
@@ -1096,6 +1096,6 @@
 			break;
 		case P2xP4Enum:
-			numindices = 6*2;
-			indices    = xNew<int>(numindices);
+			numseg = 6;
+			indices = xNew<int>(numseg*2);
 			indices[0*2 + 0] = 0;  indices[0*2 + 1] = 6;
 			indices[1*2 + 0] = 1;  indices[1*2 + 1] = 7;
@@ -1110,5 +1110,5 @@
 
 	/*Assign output pointer*/
-	*pnumseg   = numindices/2;
+	*pnumseg   = numseg;
 	*pindices  = indices;
 }
