Changeset 13423 for trunk/psModules/src/objects/pmSourcePhotometry.c
- Timestamp:
- May 18, 2007, 4:02:48 AM (19 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/objects/pmSourcePhotometry.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/objects/pmSourcePhotometry.c
r13373 r13423 3 3 * @author EAM, IfA; GLG, MHPCC 4 4 * 5 * @version $Revision: 1.2 5$ $Name: not supported by cvs2svn $6 * @date $Date: 2007-05-1 4 13:39:40$5 * @version $Revision: 1.26 $ $Name: not supported by cvs2svn $ 6 * @date $Date: 2007-05-18 14:02:48 $ 7 7 * 8 8 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 18 18 #include <string.h> 19 19 #include <pslib.h> 20 #include "pmErrorCodes.h" 20 21 #include "pmHDU.h" 21 22 #include "pmFPA.h" … … 260 261 261 262 if (model == NULL) { 263 psError(PM_ERR_OBJECTS, true, "Model is NULL"); 262 264 return false; 263 265 } … … 280 282 } 281 283 } 282 if (apSum <= 0) 283 return false; 284 if (apSum <= 0) { 285 psError(PM_ERR_PHOTOM, true, "apSum is negative"); 286 return false; 287 } 284 288 285 289 *apMag = -2.5*log10(apSum);
Note:
See TracChangeset
for help on using the changeset viewer.
