Index: branches/eam_branches/ipp-20130904/psphot/src/psphotExtendedSourceFits.c
===================================================================
--- branches/eam_branches/ipp-20130904/psphot/src/psphotExtendedSourceFits.c	(revision 36257)
+++ branches/eam_branches/ipp-20130904/psphot/src/psphotExtendedSourceFits.c	(revision 36258)
@@ -479,4 +479,5 @@
         }
 
+# ifdef TEST_OBJECT
 	bool testObject = false;
 	// testObject |= ((fabs(source->peak->xf -  179) < 5) && (fabs(source->peak->yf - 1138) < 5));
@@ -490,4 +491,5 @@
 	    psTraceSetLevel ("psphot.psphotExtendedSourceFits_Threaded", 5);
 	}
+# endif 
 
         // loop here over the models chosen for each source (exclude by S/N)
@@ -659,8 +661,10 @@
         psTrace ("psphot", 5, "extended source model for source at %7.1f, %7.1f", source->moments->Mx, source->moments->My);
 
+# ifdef TEST_OBJECT
 	if (testObject) {
 	    psTraceSetLevel ("psModules.objects.pmPCM_MinimizeChisq", 0);
 	    psTraceSetLevel ("psphot.psphotExtendedSourceFits_Threaded", 0);
 	}
+# endif
     }
 
