IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 3, 2006, 3:01:34 PM (20 years ago)
Author:
drobbin
Message:

Updated files to reflect psArray, psVector, & psPixels changes in psLib that set n=0 upon allocation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/astrom/pmAstrometryObjects.c

    r5674 r6511  
    88*  @author EAM, IfA
    99*
    10 *  @version $Revision: 1.1 $ $Name: not supported by cvs2svn $
    11 *  @date $Date: 2005-12-05 20:49:30 $
     10*  @version $Revision: 1.2 $ $Name: not supported by cvs2svn $
     11*  @date $Date: 2006-03-04 01:01:33 $
    1212*
    1313*  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    201201    psVector *y = psVectorAlloc (match->n, PS_TYPE_F32);
    202202    psVector *wt = psVectorAlloc (match->n, PS_TYPE_F32);
    203 
     203    X->n = X->nalloc;
     204    Y->n = Y->nalloc;
     205    x->n = x->nalloc;
     206    y->n = y->nalloc;
     207    wt->n = wt->nalloc;
    204208    // take the matched stars, first fit
    205209    for (int i = 0; i < match->n; i++) {
     
    249253
    250254    psArray *new = psArrayAlloc (old->n);
    251 
     255    new->n = new->nalloc;
    252256    double cs = cos(angle);
    253257    double sn = sin(angle);
Note: See TracChangeset for help on using the changeset viewer.