Index: /issm/trunk-jpl/src/c/classes/Elements/Penta.cpp
===================================================================
--- /issm/trunk-jpl/src/c/classes/Elements/Penta.cpp	(revision 15543)
+++ /issm/trunk-jpl/src/c/classes/Elements/Penta.cpp	(revision 15544)
@@ -8000,5 +8000,5 @@
 
 	GetVerticesCoordinates(&xyz_list[0][0],vertices,NUMVERTICES);
-	ElementVector* pe=new ElementVector(nodes,NUMVERTICES,this->parameters,PattynApproximationEnum);
+	ElementVector* pe=new ElementVector(nodes,numnodes,this->parameters,PattynApproximationEnum);
 	Input* surface_input=inputs->GetInput(SurfaceEnum); _assert_(surface_input);
 	rho_water=matpar->GetRhoWater();
@@ -8205,5 +8205,5 @@
 
 	GetVerticesCoordinates(&xyz_list[0][0],vertices,NUMVERTICES);
-	ElementVector* pe=new ElementVector(nodes,NUMVERTICES,this->parameters,StokesApproximationEnum);
+	ElementVector* pe=new ElementVector(nodes,numnodes,this->parameters,StokesApproximationEnum);
 	rho_water=matpar->GetRhoWater();
 	rho_ice  =matpar->GetRhoIce();
Index: /issm/trunk-jpl/src/c/classes/Elements/Tria.cpp
===================================================================
--- /issm/trunk-jpl/src/c/classes/Elements/Tria.cpp	(revision 15543)
+++ /issm/trunk-jpl/src/c/classes/Elements/Tria.cpp	(revision 15544)
@@ -3181,5 +3181,5 @@
 
 	GetVerticesCoordinates(&xyz_list[0][0],vertices,NUMVERTICES);
-	ElementVector* pe=new ElementVector(nodes,NUMVERTICES,this->parameters,MacAyealApproximationEnum);
+	ElementVector* pe=new ElementVector(nodes,numnodes,this->parameters,MacAyealApproximationEnum);
 	Input* thickness_input=inputs->GetInput(ThicknessEnum); _assert_(thickness_input);
 	Input* bed_input      =inputs->GetInput(BedEnum);       _assert_(bed_input);
