Changeset 10848 for trunk/psLib/src/astro/psCoord.c
- Timestamp:
- Dec 28, 2006, 6:38:42 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/astro/psCoord.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/astro/psCoord.c
r10823 r10848 10 10 * @author GLG, MHPCC 11 11 * 12 * @version $Revision: 1.12 8$ $Name: not supported by cvs2svn $13 * @date $Date: 2006-12-2 2 21:19:47$12 * @version $Revision: 1.129 $ $Name: not supported by cvs2svn $ 13 * @date $Date: 2006-12-29 04:38:42 $ 14 14 * 15 15 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 905 905 } 906 906 907 trans->x = psVectorFitPolynomial2D(trans->x, NULL, 0, xOut, NULL, xIn, yIn); 908 trans->y = psVectorFitPolynomial2D(trans->y, NULL, 0, yOut, NULL, xIn, yIn); 907 bool result = true; 908 result &= psVectorFitPolynomial2D(trans->x, NULL, 0, xOut, NULL, xIn, yIn); 909 result &= psVectorFitPolynomial2D(trans->y, NULL, 0, yOut, NULL, xIn, yIn); 909 910 psFree(xIn); 910 911 psFree(yIn); … … 912 913 psFree(yOut); 913 914 914 if ( (trans->x == NULL) || (trans->y == NULL)) {915 if (!result) { 915 916 psError( PS_ERR_UNKNOWN, true, "psVectorFitPolynomial2D() returned NULL: could not fit a 2-D polynomial to the data.\n"); 916 917 return(false); … … 997 998 } 998 999 999 myPT->x = psVectorFitPolynomial2D(myPT->x, NULL, 0, xOut, NULL, xIn, yIn); 1000 myPT->y = psVectorFitPolynomial2D(myPT->y, NULL, 0, yOut, NULL, xIn, yIn); 1000 bool result = true; 1001 result &= psVectorFitPolynomial2D(myPT->x, NULL, 0, xOut, NULL, xIn, yIn); 1002 result &= psVectorFitPolynomial2D(myPT->y, NULL, 0, yOut, NULL, xIn, yIn); 1001 1003 1002 1004 psFree(inCoord); … … 1007 1009 psFree(yOut); 1008 1010 1009 if ( (myPT->x == NULL) || (myPT->y == NULL)) {1011 if (!result) { 1010 1012 psError( PS_ERR_UNKNOWN, true, "psVectorFitPolynomial2D() returned NULL: could not fit a 2-D polynomial to the data.\n"); 1011 1013 psFree(out);
Note:
See TracChangeset
for help on using the changeset viewer.
