Index: /issm/trunk-jpl/src/c/classes/IndependentObject.cpp
===================================================================
--- /issm/trunk-jpl/src/c/classes/IndependentObject.cpp	(revision 18935)
+++ /issm/trunk-jpl/src/c/classes/IndependentObject.cpp	(revision 18936)
@@ -74,5 +74,5 @@
 	int my_rank;
 	FILE* fid=NULL;
-	int Xcount;
+	int Xcount=0;
 
 	/*recover my_rank:*/
@@ -166,8 +166,8 @@
 				 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];
 				}
 			}
@@ -204,6 +204,4 @@
 void IndependentObject::FillIndependents(IssmDouble** data, IssmDouble* xp){/*{{{*/
 
-	int i;
-
 	/*Branch according to the type of variable: */
 	if(type==0){ /*scalar:*/
@@ -212,7 +210,5 @@
 	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);
