Index: trunk/psModules/src/astrom/pmAstrometryObjects.c
===================================================================
--- trunk/psModules/src/astrom/pmAstrometryObjects.c	(revision 20036)
+++ trunk/psModules/src/astrom/pmAstrometryObjects.c	(revision 20039)
@@ -8,6 +8,6 @@
 *  @author EAM, IfA
 *
-*  @version $Revision: 1.40 $ $Name: not supported by cvs2svn $
-*  @date $Date: 2008-10-10 01:07:38 $
+*  @version $Revision: 1.41 $ $Name: not supported by cvs2svn $
+*  @date $Date: 2008-10-10 02:33:35 $
 *
 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
@@ -564,8 +564,10 @@
     psF32 **D2 = gridD2->data.F32;
 
+#ifdef PLOTS
     // vectors to hold dX and dY
     int nplot = raw->n * ref->n;
     float dXplot[nplot];
     float dYplot[nplot];
+#endif
 
     // accumulate grids for focal plane (L,M) matches
@@ -577,7 +579,9 @@
             dY = ob1->FP->y - ob2->FP->y;
 
+#ifdef PLOTS
             dXplot[(i * ref->n) + j] = dX;
             dYplot[(i * ref->n) + j] = dY;
             // fprintf (f, "dX,dY: %8.2f %8.2f : %8.2f %8.2f : %8.2f %8.2f\n", dX, dY, ob1->FP->x, ob2->FP->x, ob1->FP->y, ob2->FP->y);
+#endif
             // find bin coordinates for this delta-delta
             if (!AstromGridBin (&iX, &iY, dX, dY)) {
@@ -685,4 +689,5 @@
     // fprintf (stderr, "sigma: nMatch: %d, nTest: %d, nTen: %d\n", stats->nMatch, stats->nTest, sort->data.U32[sort->n - 10]);
 
+#ifdef PLOTS
     /*** plot DXs and DYs ***/
     KapaSection section = {"s1", 0.00, 0.00, 1.0, 1.0};
@@ -738,4 +743,5 @@
     fscanf(stdin, "%c", &c);
     /*** end ***/
+#endif
 
   psFree (sort);
