Skip to content

Commit

Permalink
changed spectra
Browse files Browse the repository at this point in the history
  • Loading branch information
Higginbottom committed Aug 14, 2015
1 parent 216ceef commit c6e5f96
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion source/spectra.c
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,8 @@ spectrum_create (p, f1, f2, nangle, select_extract)
xxspec[5].nphot[i]++;
}

if (j > 0)
if (p[nphot].nscat > 0 || p[nphot].nrscat > 0)

{
xxspec[6].f[k] += p[nphot].w; /* j is the number of scatters so this constructs */
xxspec[6].lf[k1] += p[nphot].w; /* logarithmic j is the number of scatters so this constructs */
Expand Down

0 comments on commit c6e5f96

Please sign in to comment.