Index: ../trunk-jpl/src/c/analyses/AdjointHorizAnalysis.cpp
===================================================================
--- ../trunk-jpl/src/c/analyses/AdjointHorizAnalysis.cpp	(revision 18836)
+++ ../trunk-jpl/src/c/analyses/AdjointHorizAnalysis.cpp	(revision 18837)
@@ -367,11 +367,11 @@
 	Input* weights_input = element->GetInput(InversionCostFunctionsCoefficientsEnum); _assert_(weights_input);
 	Input* vx_input      = element->GetInput(VxEnum);                                 _assert_(vx_input);
 	Input* vxobs_input   = element->GetInput(InversionVxObsEnum);                     _assert_(vxobs_input);
-	Input* vy_input=NULL;
-	Input* vyobs_input=NULL;
-	if (domaintype!=Domain2DverticalEnum) {
-		Input* vy_input      = element->GetInput(VyEnum);                                 _assert_(vy_input);
-		Input* vyobs_input   = element->GetInput(InversionVyObsEnum);                     _assert_(vyobs_input);
+	Input* vy_input    = NULL;
+	Input* vyobs_input = NULL;
+	if(domaintype!=Domain2DverticalEnum){
+		vy_input      = element->GetInput(VyEnum);                                 _assert_(vy_input);
+		vyobs_input   = element->GetInput(InversionVyObsEnum);                     _assert_(vyobs_input);
 	}
 	IssmDouble epsvel  = 2.220446049250313e-16;
 	IssmDouble meanvel = 3.170979198376458e-05; /*1000 m/yr*/
@@ -393,7 +393,7 @@
 
 		vx_input->GetInputValue(&vx,gauss);
 		vxobs_input->GetInputValue(&vxobs,gauss);
-		if (domaintype!=Domain2DverticalEnum) {
+		if(domaintype!=Domain2DverticalEnum) {
 			vy_input->GetInputValue(&vy,gauss);
 			vyobs_input->GetInputValue(&vyobs,gauss);
 		}
