IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 9731


Ignore:
Timestamp:
Oct 24, 2006, 1:56:32 PM (20 years ago)
Author:
Paul Price
Message:

psVectorAlloc now sets vector size to allocated size.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psastro/src/psastroLuminosityFunction.c

    r9627 r9731  
    4040    return NULL;
    4141  }
    42  
     42
    4343  // create a histogram of the magnitudes
    4444  // bin[0] = mMin : mMin + dMag
    4545  // bin[i] = mMin + i*dMag : mMin + (i+1)*dMag
    4646  psVector *nMags = psVectorAlloc (nBin, PS_TYPE_F32);
    47   nMags->n = nBin;
    4847  psVectorInit (nMags, 0);
    4948
     
    6362  }
    6463
    65   psVector *lnMag = psVectorAlloc (nBin, PS_TYPE_F32);
    66   psVector *Mag = psVectorAlloc (nBin, PS_TYPE_F32);
     64  psVector *lnMag = psVectorAllocEmpty (nBin, PS_TYPE_F32);
     65  psVector *Mag = psVectorAllocEmpty (nBin, PS_TYPE_F32);
    6766
    6867  // create 2 vectors represnting the dlogN/dlogS line
     
    8281
    8382  psVector *mask = psVectorAlloc (nBin, PS_TYPE_MASK);
    84   mask->n = Mag->n;
    8583  psVectorInit (mask, 0);
    8684
     
    120118}
    121119
    122  
     120
Note: See TracChangeset for help on using the changeset viewer.