Skip to content

Commit

Permalink
Edited loop in photon_gen.c to use NPHOT, see #114
Browse files Browse the repository at this point in the history
  • Loading branch information
jhmatthews committed Sep 15, 2014
1 parent 74364c5 commit eeab8ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions photon_gen.c
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,8 @@ define_phot (p, f1, f2, nphot_tot, ioniz_or_final, iwind, freq_sampling)
}


for (n=0;n<nphot_tot;n++){
p[n].w_orig=p[n].w;
for (n = 0; n < NPHOT; n++){
p[n].w_orig = p[n].w;
}
return (0);

Expand Down

0 comments on commit eeab8ca

Please sign in to comment.