Changeset 9731 for trunk/psastro/src/psastroLuminosityFunction.c
- Timestamp:
- Oct 24, 2006, 1:56:32 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/psastro/src/psastroLuminosityFunction.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psastro/src/psastroLuminosityFunction.c
r9627 r9731 40 40 return NULL; 41 41 } 42 42 43 43 // create a histogram of the magnitudes 44 44 // bin[0] = mMin : mMin + dMag 45 45 // bin[i] = mMin + i*dMag : mMin + (i+1)*dMag 46 46 psVector *nMags = psVectorAlloc (nBin, PS_TYPE_F32); 47 nMags->n = nBin;48 47 psVectorInit (nMags, 0); 49 48 … … 63 62 } 64 63 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); 67 66 68 67 // create 2 vectors represnting the dlogN/dlogS line … … 82 81 83 82 psVector *mask = psVectorAlloc (nBin, PS_TYPE_MASK); 84 mask->n = Mag->n;85 83 psVectorInit (mask, 0); 86 84 … … 120 118 } 121 119 122 120
Note:
See TracChangeset
for help on using the changeset viewer.
