IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 1, 2005, 3:07:25 PM (21 years ago)
Author:
drobbin
Message:

updated tests, function spec's and verified files. resolved some existing issues.

File:
1 edited

Legend:

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

    r5450 r5455  
    11/** @file  tst_psSphereOps.c
    22*
    3 *  @brief The code will ..... Work ....
    4 *
     3*  @brief The code will perform sphere rotations and transformations.
    54*
    65*  @author d-Rob, MHPCC
    76*
    8 *  @version $Revision: 1.11 $ $Name: not supported by cvs2svn $
    9 *  @date $Date: 2005-10-28 02:25:22 $
     7*  @version $Revision: 1.12 $ $Name: not supported by cvs2svn $
     8*  @date $Date: 2005-11-02 01:07:25 $
    109*
    1110*  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    1413#include "psTest.h"
    1514#include "pslib_strict.h"
     15
    1616static psS32 testSphereRotAlloc(void);
    1717static psS32 testSphereRotQuat(void);
     
    275275                    RAD_TO_DEG(galactic->r),RAD_TO_DEG(galactic->d),
    276276                    l[x], b[x]);
    277             printf("togal- %lf,%lf,%lf,%lf   fromgal- %lf,%lf,%lf,%lf\n",
    278                    toGalactic->q0, toGalactic->q1, toGalactic->q2, toGalactic->q3,
    279                    fromGalactic->q0, fromGalactic->q1, fromGalactic->q2, fromGalactic->q3);
    280277            return 3;
    281278        }
    282         if (fabs(RAD_TO_DEG(icrsFromGalactic->r) - alpha[x]) > TOLERANCE ||
     279        if ( (fabs(RAD_TO_DEG(icrsFromGalactic->r) - alpha[x]) > TOLERANCE &&
     280                fabs(RAD_TO_DEG(icrsFromGalactic->d) - 90.0) > TOLERANCE ) ||
    283281                fabs(RAD_TO_DEG(icrsFromGalactic->d) - delta[x]) > TOLERANCE) {
    284282            psError(PS_ERR_UNKNOWN, false,
Note: See TracChangeset for help on using the changeset viewer.