- Timestamp:
- Jul 11, 2010, 3:21:36 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20100621/psphot/src/psphotModelWithPSF.c
r21366 r28657 73 73 74 74 // iterate until the tolerance is reached, or give up 75 while ((min->iter < min->maxIter) && ((min->lastDelta > min-> tol) || !isfinite(min->lastDelta))) {75 while ((min->iter < min->maxIter) && ((min->lastDelta > min->minTol) || !isfinite(min->lastDelta))) { 76 76 psTrace("psphot", 5, "Iteration number %d. (max iterations is %d).\n", min->iter, min->maxIter); 77 psTrace("psphot", 5, "Last delta is %f. Min-> tol is %f.\n", min->lastDelta, min->tol);77 psTrace("psphot", 5, "Last delta is %f. Min->minTol is %f.\n", min->lastDelta, min->minTol); 78 78 79 79 … … 166 166 psFree(pcm); 167 167 168 if (min->iter == min->maxIter) {169 psTrace("psphot", 3, "---- end (false) ----\n");170 return(false);171 }172 173 psTrace("psphot", 3, "---- end (true) ----\n");174 return( true);168 // if the last improvement was at least as good as maxTol, accept the fit: 169 if (min->lastDelta <= min->maxTol) { 170 psTrace("psphot", 6, "---- end (true) ----\n"); 171 return(true); 172 } 173 psTrace("psphot", 6, "---- end (false) ----\n"); 174 return(false); 175 175 } 176 176
Note:
See TracChangeset
for help on using the changeset viewer.
