IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 14, 2005, 2:04:30 PM (21 years ago)
Author:
drobbin
Message:

fixed pole test (x, 90) for ecliptic trans. (was only failing on server)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/test/astro/tst_psSphereOps.c

    r5455 r5514  
    55*  @author d-Rob, MHPCC
    66*
    7 *  @version $Revision: 1.12 $ $Name: not supported by cvs2svn $
    8 *  @date $Date: 2005-11-02 01:07:25 $
     7*  @version $Revision: 1.13 $ $Name: not supported by cvs2svn $
     8*  @date $Date: 2005-11-15 00:04:30 $
    99*
    1010*  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    247247            return 1;
    248248        }
    249         if (fabs(RAD_TO_DEG(icrsFromEcliptic->r) - alpha[x]) > TOLERANCE ||
     249        if ( (fabs(RAD_TO_DEG(icrsFromEcliptic->r) - alpha[x]) > TOLERANCE &&
     250                fabs(RAD_TO_DEG(icrsFromEcliptic->d) - 90.0) > TOLERANCE ) ||
    250251                fabs(RAD_TO_DEG(icrsFromEcliptic->d) - delta[x]) > TOLERANCE) {
    251252            psError(PS_ERR_UNKNOWN, false,
Note: See TracChangeset for help on using the changeset viewer.