Index: ../trunk-jpl/src/c/classes/FemModel.cpp
===================================================================
--- ../trunk-jpl/src/c/classes/FemModel.cpp	(revision 18779)
+++ ../trunk-jpl/src/c/classes/FemModel.cpp	(revision 18780)
@@ -1582,7 +1582,7 @@
 			element->JacobianDeterminant(&Jdet,xyz_list,gauss);
 
 			/*Get all parameters at gaussian point*/
-			weights_input->GetInputValue(&weight,gauss,ThicknessAbsMisfitEnum);
+			weights_input->GetInputValue(&weight,gauss,ThicknessAbsGradientEnum);
 			thickness_input->GetInputDerivativeValue(&dp[0],xyz_list,gauss);
 
 			/*Tikhonov regularization: J = 1/2 ((dp/dx)^2 + (dp/dy)^2) */ 
