Changeset 7300
- Timestamp:
- Jun 2, 2006, 11:33:34 AM (20 years ago)
- Location:
- trunk/psLib
- Files:
-
- 13 edited
-
configure.ac (modified) (2 diffs)
-
src/astro/psTime.c (modified) (2 diffs)
-
src/fits/psFits.c (modified) (2 diffs)
-
src/fits/psFitsTable.c (modified) (2 diffs)
-
src/math/psMinimizeLMM.c (modified) (2 diffs)
-
src/psErrorCodes_en.dat (modified) (1 diff)
-
src/sys/psError.c (modified) (2 diffs)
-
src/sys/psError.h (modified) (2 diffs)
-
src/sys/psLogMsg.c (modified) (3 diffs)
-
src/sys/psString.h (modified) (2 diffs)
-
src/sys/psTrace.c (modified) (2 diffs)
-
src/types/psArguments.c (modified) (2 diffs)
-
src/types/psMetadataConfig.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/configure.ac
r6954 r7300 172 172 ) 173 173 dnl Now check if CFITSIO supports fits_open_diskfile, i.e., is at least version 2.501 174 AC_CHECK_LIB(cfitsio,ffdkop en,174 AC_CHECK_LIB(cfitsio,ffdkopn, 175 175 [CFITSIO_DISKFILE=1], 176 176 [AC_MSG_WARN([The CFITSIO library version is rather old. Suggested version is 2.501 or greater.]) … … 361 361 ]) 362 362 363 if test "$SWIG_REQ" == "yes"364 then365 AC_CONFIG_FILES([ swig/Makefile ])366 fi363 #if test "$SWIG_REQ" == "yes" 364 #then 365 # AC_CONFIG_FILES([ swig/Makefile ]) 366 #fi 367 367 368 368 AC_OUTPUT -
trunk/psLib/src/astro/psTime.c
r6536 r7300 10 10 * @author Ross Harman, MHPCC 11 11 * 12 * @version $Revision: 1.8 2$ $Name: not supported by cvs2svn $13 * @date $Date: 2006-0 3-07 04:20:10$12 * @version $Revision: 1.83 $ $Name: not supported by cvs2svn $ 13 * @date $Date: 2006-06-02 21:33:33 $ 14 14 * 15 15 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 1757 1757 static void psTimerFree () 1758 1758 { 1759 1760 psFree (timers);1761 1759 p_psTimeFinalize(); 1760 psFree(timers); 1761 timers = NULL; 1762 timerName[0] = '\0'; 1763 1762 1764 return; 1763 1765 } -
trunk/psLib/src/fits/psFits.c
r7222 r7300 7 7 * @author Robert DeSonia, MHPCC 8 8 * 9 * @version $Revision: 1.5 4$ $Name: not supported by cvs2svn $10 * @date $Date: 2006-0 5-25 23:53:07$9 * @version $Revision: 1.55 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2006-06-02 21:33:33 $ 11 11 * 12 12 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii 13 13 */ 14 14 #include "config.h" 15 15 #include <unistd.h> 16 16 … … 54 54 char fitsErr[MAX_STRING_LENGTH]; 55 55 fits_get_errstatus(status, fitsErr); 56 psError(PS_ERR_ IO, true,56 psError(PS_ERR_BAD_FITS, true, 57 57 "Error while closing psFits object. CFITSIO error: %s", 58 58 fitsErr); -
trunk/psLib/src/fits/psFitsTable.c
r7234 r7300 7 7 * @author Robert DeSonia, MHPCC 8 8 * 9 * @version $Revision: 1.1 0$ $Name: not supported by cvs2svn $10 * @date $Date: 2006-0 5-27 02:01:23$9 * @version $Revision: 1.11 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2006-06-02 21:33:34 $ 11 11 * 12 12 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 909 909 910 910 //create list of column names and types. 911 if (columns->n > 0) { // If we're going decrement columns->n (why?), at least free the memory 912 psFree(columns->data[columns->n - 1]); 913 } 911 914 columns->n--; 912 915 psArray* columnNames = psArrayAlloc(columns->n); -
trunk/psLib/src/math/psMinimizeLMM.c
r7102 r7300 10 10 * @author EAM, IfA 11 11 * 12 * @version $Revision: 1.1 4$ $Name: not supported by cvs2svn $13 * @date $Date: 2006-0 5-10 00:49:38$12 * @version $Revision: 1.15 $ $Name: not supported by cvs2svn $ 13 * @date $Date: 2006-06-02 21:33:34 $ 14 14 * 15 15 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 115 115 116 116 if (false == psMatrixGJSolve(Alpha, Beta)) { 117 psError(PS_ERR_UNKNOWN, false, "singular matrix in Guess ABP\n"); 117 118 psTrace (__func__, 4, "singular matrix in Guess ABP\n"); 118 119 return(false); -
trunk/psLib/src/psErrorCodes_en.dat
r4540 r7300 18 18 UNEXPECTED_NULL unexpected NULL found 19 19 OS_CALL_FAILED unexpected result from an OS standard library call. 20 BAD_FITS file doesn't obey FITS standard -
trunk/psLib/src/sys/psError.c
r7250 r7300 10 10 * @author Eric Van Alst, MHPCC 11 11 * 12 * @version $Revision: 1. 29$ $Name: not supported by cvs2svn $13 * @date $Date: 2006-0 5-31 19:53:36$12 * @version $Revision: 1.30 $ $Name: not supported by cvs2svn $ 13 * @date $Date: 2006-06-02 21:33:34 $ 14 14 * 15 15 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 167 167 { 168 168 return psErrorGet(0); 169 } 170 171 psErrorCode psErrorCodeLast(void) 172 { 173 const psErr *err = psErrorGet(0); 174 psErrorCode code = err->code; 175 psFree(err); 176 177 return code; 169 178 } 170 179 -
trunk/psLib/src/sys/psError.h
r4556 r7300 12 12 * @author Eric Van Alst, MHPCC 13 13 * 14 * @version $Revision: 1.2 5$ $Name: not supported by cvs2svn $15 * @date $Date: 200 5-07-15 02:33:54 $14 * @version $Revision: 1.26 $ $Name: not supported by cvs2svn $ 15 * @date $Date: 2006-06-02 21:33:34 $ 16 16 * 17 17 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 63 63 psErr* psErrorLast(void); 64 64 65 /** Get errorCode of last error put on the error stack 66 * 67 * @return psErrorCode last error code, or PS_ERR_NONE 68 */ 69 psErrorCode psErrorCodeLast(void); 70 65 71 /** Clears the error stack. 66 72 * -
trunk/psLib/src/sys/psLogMsg.c
r5072 r7300 12 12 * @author GLG, MHPCC 13 13 * 14 * @version $Revision: 1.5 2$ $Name: not supported by cvs2svn $15 * @date $Date: 200 5-09-20 02:43:53$14 * @version $Revision: 1.53 $ $Name: not supported by cvs2svn $ 15 * @date $Date: 2006-06-02 21:33:34 $ 16 16 * 17 17 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 310 310 logDest = stderr; 311 311 } 312 // If it's an abort, we always want to see the message 313 if (logDest == NULL && level == PS_LOG_ABORT) { 314 logDest = stderr; 315 } 312 316 // If logging is off, or if the level is too high, return immediately. 313 317 if ((level > globalLogLevel) || (logDest == NULL)) { … … 405 409 } else { 406 410 fputc('\n', logDest); 411 } 412 413 if (level == PS_LOG_ABORT) { 414 fflush(logDest); 407 415 } 408 416 } -
trunk/psLib/src/sys/psString.h
r7015 r7300 14 14 * @author David Robbins, MHPCC 15 15 * 16 * @version $Revision: 1.2 0$ $Name: not supported by cvs2svn $17 * @date $Date: 2006-0 5-01 00:57:07$16 * @version $Revision: 1.21 $ $Name: not supported by cvs2svn $ 17 * @date $Date: 2006-06-02 21:33:34 $ 18 18 * 19 19 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 29 29 /** This macro will convert the argument to a quoted string */ 30 30 #define PS_STRING(S) #S 31 32 /** This macro expands to "file:line" */ 33 #define PS_FILE_LINE __FILE__ ":" PS_STRING(__LINE__) 31 34 32 35 // Doxygen group tags -
trunk/psLib/src/sys/psTrace.c
r5118 r7300 9 9 * @author GLG, MHPCC 10 10 * 11 * @version $Revision: 1.6 1$ $Name: not supported by cvs2svn $12 * @date $Date: 200 5-09-24 01:33:12$11 * @version $Revision: 1.62 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2006-06-02 21:33:34 $ 13 13 * 14 14 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 598 598 vsprintf(line, format, ap); 599 599 write (traceFD, line, strlen(line)); 600 if (line[strlen(line) - 1] != '\n') { 601 write(traceFD, "\n", 1); 602 } 603 600 604 601 605 // vfprintf(traceFP, format, ap); -
trunk/psLib/src/types/psArguments.c
r7201 r7300 7 7 * @author David Robbins, MHPCC 8 8 * 9 * @version $Revision: 1. 6$ $Name: not supported by cvs2svn $10 * @date $Date: 2006-0 5-25 03:51:33$9 * @version $Revision: 1.7 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2006-06-02 21:33:34 $ 11 11 * 12 12 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 96 96 argv[i] = argv[i+1]; 97 97 } 98 argv[*argc] = NULL; 98 99 } else { 99 100 return false; -
trunk/psLib/src/types/psMetadataConfig.c
r7245 r7300 10 10 * @author Eric Van Alst, MHPCC 11 11 * 12 * @version $Revision: 1.5 7$ $Name: not supported by cvs2svn $13 * @date $Date: 2006-0 5-30 22:18:39$12 * @version $Revision: 1.58 $ $Name: not supported by cvs2svn $ 13 * @date $Date: 2006-06-02 21:33:34 $ 14 14 * 15 15 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 1110 1110 1111 1111 // While loop to parse the file 1112 psErrorClear(); // so we can call psError(..., false, ...) 1112 1113 while(fgets(line, MAX_STRING_LENGTH, fp) != NULL) { 1113 1114 … … 1116 1117 lineCount++; 1117 1118 1118 if(!parseLine(&nestingLevel,parseLevelInfoArray,linePtr,lineCount,(char*)filename,overwrite) && 1119 nFail) { 1120 (*nFail)++; 1119 if(!parseLine(&nestingLevel,parseLevelInfoArray,linePtr,lineCount,(char*)filename,overwrite)) { 1120 if (nFail != NULL) { 1121 (*nFail)++; 1122 } else { 1123 psError(PS_ERR_BAD_PARAMETER_VALUE, false, "Error parsing line: %s", linePtr); 1124 } 1121 1125 } 1122 1126 }
Note:
See TracChangeset
for help on using the changeset viewer.
