Changeset 11269 for trunk/psastro/src/psastroLuminosityFunction.c
- Timestamp:
- Jan 24, 2007, 12:24:44 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/psastro/src/psastroLuminosityFunction.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psastro/src/psastroLuminosityFunction.c
r10880 r11269 49 49 for (int i = 0; i < stars->n; i++) { 50 50 star = stars->data[i]; 51 if (!isfinite(star->Mag)) continue; 51 52 int bin = (star->Mag - mMin) / dMag; 53 if (bin < 0) psAbort ("psastro", "bin cannot be negative!"); 54 if (bin >= nBin) psAbort ("psastro", "bin cannot be > %d!", nBin); 52 55 nMags->data.F32[bin] += 1.0; 53 56 }
Note:
See TracChangeset
for help on using the changeset viewer.
