Changeset 18840 for trunk/psModules/src/objects/pmSourceIO_OBJ.c
- Timestamp:
- Jul 31, 2008, 2:46:04 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/objects/pmSourceIO_OBJ.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/objects/pmSourceIO_OBJ.c
r15562 r18840 3 3 * @author EAM, IfA 4 4 * 5 * @version $Revision: 1.1 6$ $Name: not supported by cvs2svn $6 * @date $Date: 200 7-11-10 01:09:20$5 * @version $Revision: 1.17 $ $Name: not supported by cvs2svn $ 6 * @date $Date: 2008-08-01 00:46:04 $ 7 7 * 8 8 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 64 64 pmSource *source = (pmSource *) sources->data[i]; 65 65 66 // no difference between PSF and non-PSF model66 // no difference between PSF and non-PSF model 67 67 pmModel *model = pmSourceGetModel (NULL, source); 68 68 if (model == NULL) … … 95 95 psLineAdd (line, "%8.3f", source->apMag); 96 96 psLineAdd (line, "%8.2f\n", apResid); 97 fwrite (line->line, 1, line->Nline, f); 97 if (fwrite (line->line, 1, line->Nline, f) < line->Nline) { 98 psError(PS_ERR_IO, true, "Unable to write OBJ sources file (%s)", filename); 99 close(f); 100 psFree(line); 101 return false; 102 } 98 103 } 99 104 fclose (f);
Note:
See TracChangeset
for help on using the changeset viewer.
