Index: /branches/eam_branches/ipp-20110213/psModules/src/objects/pmSource.c
===================================================================
--- /branches/eam_branches/ipp-20110213/psModules/src/objects/pmSource.c	(revision 30934)
+++ /branches/eam_branches/ipp-20110213/psModules/src/objects/pmSource.c	(revision 30935)
@@ -1162,4 +1162,25 @@
     }
     return NULL;
+}
+
+// this function decides if the source position should be based on the peak or the moments.
+// this is only used if we know we should not use a model fit position (eg, no model, or no
+// model yet)
+bool pmSourcePositionUseMoments(pmSource *source) {
+
+    if (!source->moments) return false;		 // can't if there are no moments
+    if (!source->moments->nPixels) return false; // can't if the moments were not measured
+    if (source->mode && PM_SOURCE_MODE_MOMENTS_FAILURE) return false; // can't if the moments failed...
+
+    if (source->mode & PM_SOURCE_MODE_SATSTAR) return true; // moments are best for SATSTARs
+
+    float dX = source->moments->Mx - source->peak->xf;
+    float dY = source->moments->My - source->peak->yf;
+    float dR = hypot(dX, dY);
+    
+    // only use the moments position if the moment-peak offset is small or the star is saturated
+    if (dR > 1.5) return false;
+
+    return true;
 }
 
Index: /branches/eam_branches/ipp-20110213/psModules/src/objects/pmSource.h
===================================================================
--- /branches/eam_branches/ipp-20110213/psModules/src/objects/pmSource.h	(revision 30934)
+++ /branches/eam_branches/ipp-20110213/psModules/src/objects/pmSource.h	(revision 30935)
@@ -287,4 +287,6 @@
 bool pmSourceCachePSF (pmSource *source, psImageMaskType maskVal);
 
+bool pmSourcePositionUseMoments(pmSource *source);
+
 int  pmSourceSortByY (const void **a, const void **b);
 int  pmSourceSortByX (const void **a, const void **b);
Index: /branches/eam_branches/ipp-20110213/psModules/src/objects/pmSourceOutputs.c
===================================================================
--- /branches/eam_branches/ipp-20110213/psModules/src/objects/pmSourceOutputs.c	(revision 30934)
+++ /branches/eam_branches/ipp-20110213/psModules/src/objects/pmSourceOutputs.c	(revision 30935)
@@ -180,23 +180,2 @@
     return true;
 }
-
-// this function decides if the source position should be based on the peak or the moments.
-// this is only used if we know we should not use a model fit position (eg, no model, or no
-// model yet)
-bool pmSourcePositionUseMoments(pmSource *source) {
-
-    if (!source->moments) return false;		 // can't if there are no moments
-    if (!source->moments->nPixels) return false; // can't if the moments were not measured
-    if (source->mode && PM_SOURCE_MODE_MOMENTS_FAILURE) return false; // can't if the moments failed...
-
-    if (source->mode & PM_SOURCE_MODE_SATSTAR) return true; // moments are best for SATSTARs
-
-    float dX = source->moments->Mx - source->peak->xf;
-    float dY = source->moments->My - source->peak->yf;
-    float dR = hypot(dX, dY);
-    
-    // only use the moments position if the moment-peak offset is small or the star is saturated
-    if (dR > 1.5) return false
-
-    return true;
-}
Index: /branches/eam_branches/ipp-20110213/psModules/src/objects/pmSourceOutputs.h
===================================================================
--- /branches/eam_branches/ipp-20110213/psModules/src/objects/pmSourceOutputs.h	(revision 30934)
+++ /branches/eam_branches/ipp-20110213/psModules/src/objects/pmSourceOutputs.h	(revision 30935)
@@ -60,5 +60,3 @@
 bool pmSourceOutputsSetMoments (pmSourceOutputsMoments *moments, pmSource *source);
 
-bool pmSourcePositionUseMoments(pmSource *source);
-
 # endif
