Index: /issm/trunk/src/c/InterpFromMesh2dx/InterpFromMesh2dx.cpp
===================================================================
--- /issm/trunk/src/c/InterpFromMesh2dx/InterpFromMesh2dx.cpp	(revision 1191)
+++ /issm/trunk/src/c/InterpFromMesh2dx/InterpFromMesh2dx.cpp	(revision 1192)
@@ -17,4 +17,5 @@
 	int i,j;
 	int interpolation_type;
+	bool debug;
 	double area;
 	double area_1,area_2,area_3;
@@ -27,4 +28,7 @@
 		throw ErrorException(__FUNCT__,"nothing to be done according to the mesh given in input");
 	}
+
+	/*Set debug to 1 if there are lots of elements*/
+	debug=(bool)((double)nels_data*(double)nods_prime >= pow(10,9));
 
 	/*figure out what kind of interpolation is needed*/
@@ -53,11 +57,9 @@
 
 	/*Loop over the elements*/
-	printf("\n      interpolation progress:   %5.2lf %%",0.0);
+	if (debug) printf("\n      interpolation progress:   %5.2lf %%",0.0);
 	for (i=0;i<nels_data;i++){
 
 		/*display current iteration*/
-		if (fmod(i,100)==0){
-			printf("\b\b\b\b\b\b\b%5.2lf %%",(double)i/nels_data*100);
-		}
+		if (debug && fmod(i,100)==0) printf("\b\b\b\b\b\b\b%5.2lf %%",(double)i/nels_data*100);
 
 		/*if there is no point inside the domain, go to next iteration*/
@@ -104,5 +106,5 @@
 		}
 	}
-	printf("\b\b\b\b\b\b\b%5.2lf %%\n",100.0);
+	 if (debug) printf("\b\b\b\b\b\b\b%5.2lf %%\n",100.0);
 
 	/*Assign output pointers:*/
Index: /issm/trunk/src/c/InterpFromMesh3dx/InterpFromMesh3dx.cpp
===================================================================
--- /issm/trunk/src/c/InterpFromMesh3dx/InterpFromMesh3dx.cpp	(revision 1191)
+++ /issm/trunk/src/c/InterpFromMesh3dx/InterpFromMesh3dx.cpp	(revision 1192)
@@ -17,4 +17,5 @@
 	int i,j;
 	int interpolation_type;
+	bool debug;
 	double area;
 	double area_1,area_2,area_3;
@@ -28,4 +29,7 @@
 		throw ErrorException(__FUNCT__,"nothing to be done according to the mesh given in input");
 	}
+
+	/*Set debug to 1 if there are lots of elements*/
+	debug=(bool)((double)nels_data*(double)nods_prime >= pow(10,9));
 
 	/*figure out what kind of interpolation is needed*/
@@ -54,11 +58,9 @@
 
 	/*Loop over the elements*/
-	printf("\n      interpolation progress:   %5.2lf %%",0.0);
+	if (debug) printf("\n      interpolation progress:   %5.2lf %%",0.0);
 	for (i=0;i<nels_data;i++){
 
 		/*display current iteration*/
-		if (fmod(i,100)==0){
-			printf("\b\b\b\b\b\b\b%5.2lf %%",(double)i/nels_data*100);
-		}
+		if (debug && fmod(i,100)==0) printf("\b\b\b\b\b\b\b%5.2lf %%",(double)i/nels_data*100);
 
 		/*if there is no point inside the domain, go to next iteration*/
@@ -114,5 +116,5 @@
 		}
 	}
-	printf("\b\b\b\b\b\b\b%5.2lf %%\n",100.0);
+	if (debug) printf("\b\b\b\b\b\b\b%5.2lf %%\n",100.0);
 
 	/*Assign output pointers:*/
