Index: branches/eam_branches/ipp-20110404/psphot/src/psphotEfficiency.c
===================================================================
--- branches/eam_branches/ipp-20110404/psphot/src/psphotEfficiency.c	(revision 31364)
+++ branches/eam_branches/ipp-20110404/psphot/src/psphotEfficiency.c	(revision 31381)
@@ -400,4 +400,7 @@
                 source->type = PM_SOURCE_TYPE_STAR;
 
+		source->modelPSF->fitRadius = sourceRadius;
+		source->apRadius = sourceRadius;
+
                 numFound++;
                 psArrayAdd(sources, sources->n, source);
Index: branches/eam_branches/ipp-20110404/psphot/src/psphotFitSourcesLinear.c
===================================================================
--- branches/eam_branches/ipp-20110404/psphot/src/psphotFitSourcesLinear.c	(revision 31364)
+++ branches/eam_branches/ipp-20110404/psphot/src/psphotFitSourcesLinear.c	(revision 31381)
@@ -267,4 +267,33 @@
         }
     }
+
+# if (0)
+    static int npass = 0;
+    char name[128];
+    FILE *f1 = NULL;
+    int fd = -1;
+
+    snprintf (name, 128, "sparse.Aij.%02d.dat", npass);
+    f1 = fopen (name, "w");
+    psAssert (f1, "failed to open file\n");
+    fd = fileno (f1);
+    p_psVectorPrint (fd, sparse->Aij, "Aij");
+    fclose (f1);
+
+    snprintf (name, 128, "sparse.Bfj.%02d.dat", npass);
+    f1 = fopen (name, "w");
+    psAssert (f1, "failed to open file\n");
+    fd = fileno (f1);
+    p_psVectorPrint (fd, sparse->Bfj, "Bfj");
+    fclose (f1);
+
+    snprintf (name, 128, "sparse.Qii.%02d.dat", npass);
+    f1 = fopen (name, "w");
+    psAssert (f1, "failed to open file\n");
+    fd = fileno (f1);
+    p_psVectorPrint (fd, sparse->Qii, "Qii");
+    fclose (f1);
+    npass ++;
+# endif
 
     psSparseResort (sparse);
Index: branches/eam_branches/ipp-20110404/psphot/src/psphotMagnitudes.c
===================================================================
--- branches/eam_branches/ipp-20110404/psphot/src/psphotMagnitudes.c	(revision 31364)
+++ branches/eam_branches/ipp-20110404/psphot/src/psphotMagnitudes.c	(revision 31381)
@@ -210,5 +210,5 @@
 
         status = pmSourceMagnitudes (source, psf, photMode, maskVal, markVal, source->apRadius);
-        if (status && isfinite(source->apMag)) {
+        if (status && isfinite(source->apFlux)) {
 	    Nap ++;
 	} else {
