IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 9, 2006, 1:26:04 PM (20 years ago)
Author:
drobbin
Message:

Added files for profiling reporting in astro/. Error checks for NAN inputs in Alloc added to psSphereOps.c

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/astro/psSphereOps.c

    r9538 r9932  
    88 *  @author Dave Robbins, MHPCC
    99 *
    10  *  @version $Revision: 1.16 $ $Name: not supported by cvs2svn $
    11  *  @date $Date: 2006-10-13 21:13:47 $
     10 *  @version $Revision: 1.17 $ $Name: not supported by cvs2svn $
     11 *  @date $Date: 2006-11-09 23:26:04 $
    1212 *
    1313 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    5050                              double phiP)
    5151{
     52    if (isnan(alphaP) || isnan(deltaP) || isnan(phiP) ) {
     53        psError(PS_ERR_BAD_PARAMETER_VALUE, true,
     54                "Input angles cannot be NaN in psSphereRotAlloc.");
     55        return NULL;
     56    }
    5257    psSphereRot *r = sphereRotAlloc();
    5358    psSphereRot *s = sphereRotAlloc();
     
    95100                             double q3)
    96101{
     102    if (isnan(q0) || isnan(q1) || isnan(q2) || isnan(q3) ) {
     103        psError(PS_ERR_BAD_PARAMETER_VALUE, true,
     104                "Input quaternions cannot be NaN in psSphereRotQuat.");
     105        return NULL;
     106    }
    97107    //allocate space for a new sphere rotation and set deallocator
    98108    psSphereRot* rot = sphereRotAlloc();
Note: See TracChangeset for help on using the changeset viewer.