IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 21, 2006, 11:28:31 AM (20 years ago)
Author:
magnier
Message:

vector length initialization

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/objects/pmSourceContour.c

    r6872 r6943  
    66 *  @author EAM, IfA: significant modifications.
    77 *
    8  *  @version $Revision: 1.2 $ $Name: not supported by cvs2svn $
    9  *  @date $Date: 2006-04-17 18:01:05 $
     8 *  @version $Revision: 1.3 $ $Name: not supported by cvs2svn $
     9 *  @date $Date: 2006-04-21 21:27:04 $
    1010 *
    1111 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    323323    // fprintf (stderr, "done\n");
    324324    psArray *tmpArray = psArrayAlloc(2);
     325    tmpArray->n = 2;
     326
    325327    tmpArray->data[0] = (psPtr *) xVec;
    326328    tmpArray->data[1] = (psPtr *) yVec;
     
    360362    psVector *xVec = psVectorAlloc(2 * source->pixels->numRows, PS_TYPE_F32);
    361363    psVector *yVec = psVectorAlloc(2 * source->pixels->numRows, PS_TYPE_F32);
     364    xVec->n = yVec->n = 2 * source->pixels->numRows;
    362365
    363366    //
     
    440443    //
    441444    psArray *tmpArray = psArrayAlloc(2);
     445    tmpArray->n = 2;
     446
    442447    tmpArray->data[0] = (psPtr *) yVec;
    443448    tmpArray->data[1] = (psPtr *) xVec;
Note: See TracChangeset for help on using the changeset viewer.