Index: ../trunk-jpl/src/c/cores/ad_core.cpp
===================================================================
--- ../trunk-jpl/src/c/cores/ad_core.cpp	(revision 18938)
+++ ../trunk-jpl/src/c/cores/ad_core.cpp	(revision 18939)
@@ -27,7 +27,7 @@
 	int     num_independents=0;
 	bool    isautodiff       = false;
 	char   *driver           = NULL;
-	size_t  tape_stats[11];
+	size_t  tape_stats[15];
 
 	/*state variables: */
 	IssmDouble *axp = NULL;
@@ -44,18 +44,6 @@
 
 			/*First, stop tracing: */
 			trace_off();
-		
-			/*retrieve parameters: */
-			femmodel->parameters->FindParam(&num_dependents,AutodiffNumDependentsEnum);
-			femmodel->parameters->FindParam(&num_independents,AutodiffNumIndependentsEnum);
-	
-			/*if no dependents, no point in running a driver: */
-			if(!(num_dependents*num_independents)) return;
-
-			/*for adolc to run in parallel, we 0 out on rank~=0:*/
-			if (my_rank!=0){
-				num_dependents=0; num_independents=0;
-			}
 			
 			/*Print tape statistics so that user can kill this run if something is off already:*/
 			if(VerboseAutodiff()){ /*{{{*/
@@ -100,6 +88,18 @@
 				delete [] sstats;
 			} /*}}}*/
 
+			/*retrieve parameters: */
+			femmodel->parameters->FindParam(&num_dependents,AutodiffNumDependentsEnum);
+			femmodel->parameters->FindParam(&num_independents,AutodiffNumIndependentsEnum);
+	
+			/*if no dependents, no point in running a driver: */
+			if(!(num_dependents*num_independents)) return;
+
+			/*for adolc to run in parallel, we 0 out on rank~=0:*/
+			if (my_rank!=0){
+				num_dependents=0; num_independents=0;
+			}
+			
 			/*retrieve state variable: */
 			femmodel->parameters->FindParam(&axp,&dummy,AutodiffXpEnum);
 
