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/objects/pmPSFtry.c

    r5844 r6511  
    55 *  @author EAM, IfA
    66 *
    7  *  @version $Revision: 1.4 $ $Name: not supported by cvs2svn $
    8  *  @date $Date: 2005-12-24 01:24:32 $
     7 *  @version $Revision: 1.5 $ $Name: not supported by cvs2svn $
     8 *  @date $Date: 2006-03-04 01:01:33 $
    99 *
    1010 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    5959    test->mask     = psVectorAlloc (sources->n, PS_TYPE_U8);
    6060
     61    test->modelFLT->n = test->modelFLT->nalloc;
     62    test->modelPSF->n = test->modelPSF->nalloc;
     63    test->metric->n   = test->metric->nalloc;
     64    test->fitMag->n   = test->fitMag->nalloc;
     65    test->mask->n     = test->mask->nalloc;
     66
    6167    for (int i = 0; i < test->modelFLT->n; i++) {
    6268        test->mask->data.U8[i]  = 0;
     
    204210    // rflux = ten(0.4*fitMag);
    205211    psVector *rflux = psVectorAlloc (psfTry->sources->n, PS_TYPE_F64);
     212    rflux->n = rflux->nalloc;
    206213    for (int i = 0; i < psfTry->sources->n; i++) {
    207214        if (psfTry->mask->data.U8[i] & PSFTRY_MASK_ALL)
     
    219226    psVector *daBin = psVectorAlloc (rfBin->n, PS_TYPE_F64);
    220227    psVector *maskB = psVectorAlloc (rfBin->n, PS_TYPE_U8);
     228    daBin->n = daBin->nalloc;
     229    maskB->n = maskB->nalloc;
    221230    psFree (stats);
    222231
     
    272281
    273282        psVector *tmp2 = psVectorAlloc (nKeep, PS_TYPE_F64);
     283        tmp2->n = tmp2->nalloc;
    274284        for (int j = 0; j < tmp2->n; j++) {
    275285            tmp2->data.F64[j] = tmp->data.F64[j + nSkip];
     
    337347    psVector *rflux = psVectorAlloc (try
    338348                                     ->sources->n, PS_TYPE_F64);
     349    rflux->n = rflux->nalloc;
    339350    for (int i = 0; i < try
    340351                ->sources->n; i++) {
Note: See TracChangeset for help on using the changeset viewer.