Index: trunk/psLib/src/math/psMinimizeLMM.c
===================================================================
--- trunk/psLib/src/math/psMinimizeLMM.c	(revision 35767)
+++ trunk/psLib/src/math/psMinimizeLMM.c	(revision 35798)
@@ -501,4 +501,6 @@
         psTrace("psLib.math", 5, "Iteration number %d.  (max iterations is %d).\n", min->iter, min->maxIter);
         psTrace("psLib.math", 5, "Last delta is %f.  stop if < %f, accept if < %f\n", min->lastDelta, min->minTol, min->maxTol);
+        psTrace("psLib.math.dLinear", 5, "Iteration number %d.  (max iterations is %d).\n", min->iter, min->maxIter);
+        psTrace("psLib.math.dLinear", 5, "Last delta is %f.  stop if < %f, accept if < %f\n", min->lastDelta, min->minTol, min->maxTol);
 
         // set a new guess for Alpha, Beta, Params
@@ -519,4 +521,10 @@
             p_psVectorPrint(psTraceGetDestination(), Params, "params guess (1)");
         }
+	if (psTraceGetLevel("psLib.math.dLinear") >= 6) {
+	  p_psImagePrint(psTraceGetDestination(), Alpha, "alpha guess (1)");
+	  p_psVectorPrint(psTraceGetDestination(), Beta, "beta guess (1)");
+	  p_psVectorPrint(psTraceGetDestination(), Params, "params guess (1)");
+	  p_psVectorPrint(psTraceGetDestination(), params, "params guess (1)");
+	}	  
 
         // calculate Chisq for new guess, update Alpha & Beta
@@ -538,5 +546,9 @@
 
         psTrace("psLib.math.dLinear", 5, "last chisq: %f, new chisq %f, delta: %f, dLinear: %f, rho: %f, lambda: %g\n", min->value, Chisq, min->lastDelta, dLinear, rho, lambda);
-
+	if (psTraceGetLevel("psLib.math.dLinear") >= 6) {
+	  p_psImagePrint(psTraceGetDestination(), Alpha, "alpha guess (2)");
+	  p_psVectorPrint(psTraceGetDestination(), Beta, "beta guess (2)");
+	  p_psVectorPrint(psTraceGetDestination(), Params, "params guess (2)");
+	}	  
         // dump some useful info if trace is defined
         if (psTraceGetLevel("psLib.math") >= 6) {
