Index: /issm/trunk/src/c/objects/Elements/Penta.cpp
===================================================================
--- /issm/trunk/src/c/objects/Elements/Penta.cpp	(revision 4265)
+++ /issm/trunk/src/c/objects/Elements/Penta.cpp	(revision 4266)
@@ -49,5 +49,4 @@
 	int penta_matpar_id;
 	int penta_elements_ids[2];
-	bool collapse;
 
 	/*id: */
@@ -1718,5 +1717,5 @@
 	//elements of type 3 are macayeal type penta. we collapse the formulation on their base.
 	if(iomodel->elements_type){
-		if (*(iomodel->elements_type+2*i+0)==MacAyealFormulationEnum){ 
+		if (*(iomodel->elements_type+2*index+0)==MacAyealFormulationEnum){ 
 			collapse[analysis_counter]=true;
 		}
