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/test/imcombine/tst_pmReadoutCombine.c

    r5169 r6511  
    55 *  @author GLG, MHPCC
    66 *
    7  *  @version $Revision: 1.1 $ $Name: not supported by cvs2svn $
    8  *  @date $Date: 2005-09-28 20:42:52 $
     7 *  @version $Revision: 1.2 $ $Name: not supported by cvs2svn $
     8 *  @date $Date: 2006-03-04 01:01:34 $
    99 *
    1010 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    8383    psVector *zero = psVectorAlloc(NUM_READOUTS, PS_TYPE_F32);
    8484    psVector *scale = psVectorAlloc(NUM_READOUTS, PS_TYPE_F32);
     85    zero->n = zero->nalloc;
     86    scale->n = scale->nalloc;
    8587    printPositiveTestHeader(stdout, "pmReadoutCombine", "simpleCombineNoOverlap");
    8688
     
    207209    psVector *scaleBig = psVectorAlloc(NUM_READOUTS*2, PS_TYPE_F32);
    208210    psVector *scaleF64 = psVectorAlloc(NUM_READOUTS, PS_TYPE_F64);
     211    zero->n = zero->nalloc;
     212    zeroHalf->n = zeroHalf->nalloc;
     213    zeroBig->n = zeroBig->nalloc;
     214    zeroF64->n = zeroF64->nalloc;
     215    scale->n = scale->nalloc;
     216    scaleHalf->n = scaleHalf->nalloc;
     217    scaleBig->n = scaleBig->nalloc;
     218    scaleF64->n = scaleF64->nalloc;
    209219    for (i=0;i<NUM_READOUTS;i++) {
    210220        zero->data.F32[i] = 3.0;
Note: See TracChangeset for help on using the changeset viewer.