Index: /issm/trunk/src/c/objects/Elements/Tria.cpp
===================================================================
--- /issm/trunk/src/c/objects/Elements/Tria.cpp	(revision 5287)
+++ /issm/trunk/src/c/objects/Elements/Tria.cpp	(revision 5288)
@@ -630,5 +630,5 @@
 		}
 		else if (control_type==DhDtEnum){
-			matice->inputs->GetParameterDerivativeValue(&dB[0], &xyz_list[0][0], &gauss_l1l2l3[0],DhDtEnum);
+			this->inputs->GetParameterDerivativeValue(&dB[0], &xyz_list[0][0], &gauss_l1l2l3[0],DhDtEnum);
 			Jelem+=cm_noisedmp*1/2*(pow(dB[0],2)+pow(dB[1],2))*Jdet*gauss_weight;
 		}
@@ -4428,5 +4428,5 @@
 		GetJacobianDeterminant2d(&Jdettria, &xyz_list[0][0],gauss_l1l2l3);
 
-		/*Get L matrix: *
+		/*Get L matrix: */
 		GetL(&L[0], &xyz_list[0][0], gauss_l1l2l3,numberofdofspernode);
 
@@ -6569,6 +6569,6 @@
 
 	/*Ok, we have vx and vy in values, fill in vx and vy arrays: */
-	for(i=0;i<numvertices;i++){
-		lambda[i]=values[i*numdofpervertex+0];
+	for(i=0;i<numdof;i++){
+		lambda[i]=values[i];
 	}
 
