Index: ../trunk-jpl/src/c/classes/IndependentObject.cpp
===================================================================
--- ../trunk-jpl/src/c/classes/IndependentObject.cpp	(revision 18935)
+++ ../trunk-jpl/src/c/classes/IndependentObject.cpp	(revision 18936)
@@ -73,7 +73,7 @@
 
 	int my_rank;
 	FILE* fid=NULL;
-	int Xcount;
+	int Xcount=0;
 
 	/*recover my_rank:*/
 	my_rank=IssmComm::GetRank();
@@ -165,10 +165,10 @@
 				/*Now, before we even broadcast this to other nodes, declare the whole matrix as a independent variable!
 				 If we have been supplied an X vector, use it instead of what we just read: */
 				if(X){
-					for (int i=0;i<M*N;++i) matrix[i]<<=X[Xcount+i];  /*we use the <<= ADOLC overloaded operator to declare the independency*/
+					for (int i=0;i<M*N;i++) matrix[i]<<=X[Xcount+i];  /*<<= ADOLC overloaded operator to declare independent*/
 				}
 				else{
-					for (int i=0;i<M*N;++i) matrix[i]<<=buffer[i];  /*we use the <<= ADOLC overloaded operator to declare the independency*/
+					for (int i=0;i<M*N;i++) matrix[i]<<=buffer[i];
 				}
 			}
 			ISSM_MPI_Bcast(matrix,M*N,ISSM_MPI_DOUBLE,0,IssmComm::GetComm()); 
@@ -203,17 +203,13 @@
 /*}}}*/
 void IndependentObject::FillIndependents(IssmDouble** data, IssmDouble* xp){/*{{{*/
 
-	int i;
-
 	/*Branch according to the type of variable: */
 	if(type==0){ /*scalar:*/
 		xp[0]=*(data[name]);
 	}
 	else if(type==1){ /* vector:*/
 		IssmDouble* values=data[name];
-		for(i=0;i<this->numberofindependents;i++){
-			xp[i]=values[i];
-		}
+		for(int i=0;i<this->numberofindependents;i++) xp[i]=values[i];
 	}
 	else _error_("should not have a type of " << type);
 }
