Index: ../trunk-jpl/src/c/analyses/AdjointBalancethickness2Analysis.cpp
===================================================================
--- ../trunk-jpl/src/c/analyses/AdjointBalancethickness2Analysis.cpp	(revision 18390)
+++ ../trunk-jpl/src/c/analyses/AdjointBalancethickness2Analysis.cpp	(revision 18391)
@@ -175,8 +175,8 @@
 	/*Deal with second term*/
 	switch(control_type){
 		case BalancethicknessApparentMassbalanceEnum: GradientJAdot(element,gradient,control_index); break;
-		case BalancethicknessNuxEnum: GradientJNux(element,gradient,control_index); break;
-		case BalancethicknessNuyEnum: GradientJNuy(element,gradient,control_index); break;
+		case BalancethicknessNuxEnum: GradientJNux(element,gradient,control_index); break;//should be in first part....
+		case BalancethicknessNuyEnum: GradientJNuy(element,gradient,control_index); break;//should be in first part....
 		default: _error_("control type not supported yet: " << EnumToStringx(control_type));
 	}
 
@@ -255,7 +255,6 @@
 	Input* nuy_input       = element->GetInput(BalancethicknessNuyEnum);   _assert_(nuy_input);
 	Input* potential_input = element->GetInput(PotentialEnum);             _assert_(potential_input);
 
-
 	Gauss* gauss=element->NewGauss(2);
 	for(int ig=gauss->begin();ig<gauss->end();ig++){
 		gauss->GaussPoint(ig);
@@ -275,6 +274,9 @@
 			_assert_(!xIsNan<IssmDouble>(ge[i]));
 		}
 	}
+	if(element->Id()==1){
+		printarray(ge,3);
+	}
 	gradient->SetValues(numvertices,vertexpidlist,ge,ADD_VAL);
 
 	/*Clean up and return*/
Index: ../trunk-jpl/src/c/classes/Elements/Element.cpp
===================================================================
--- ../trunk-jpl/src/c/classes/Elements/Element.cpp	(revision 18390)
+++ ../trunk-jpl/src/c/classes/Elements/Element.cpp	(revision 18391)
@@ -1053,6 +1053,8 @@
 				name==BedEnum ||
 				name==BalancethicknessThickeningRateEnum ||
 				name==BalancethicknessApparentMassbalanceEnum ||
+				name==BalancethicknessNuxEnum ||
+				name==BalancethicknessNuyEnum ||
 				name==SigmaNNEnum ||
 				name==SurfaceSlopeXEnum ||
 				name==SurfaceSlopeYEnum ||
