Skip to content

Commit

Permalink
remove unnecessary summations
Browse files Browse the repository at this point in the history
  • Loading branch information
MennoVeerman committed Sep 30, 2024
1 parent 57f5254 commit dea778f
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src_cuda_rt/Raytracer.cu
Original file line number Diff line number Diff line change
Expand Up @@ -124,11 +124,9 @@ namespace
Float tau_tot_sum = Float(0.);
Float tausca_tot_sum = Float(0.);

Float tau_cld_sum = Float(0.);
Float tausca_cld_sum = Float(0.);
Float tauscag_cld_sum = Float(0.);

Float tau_aer_sum = Float(0.);
Float tausca_aer_sum = Float(0.);
Float tauscag_aer_sum = Float(0.);

Expand All @@ -138,11 +136,9 @@ namespace
tau_tot_sum += tau_tot[idx];
tausca_tot_sum += tau_tot[idx] * ssa_tot[idx];

tau_cld_sum += tau_cld[idx];
tausca_cld_sum += tau_cld[idx] * ssa_cld[idx];
tauscag_cld_sum += tau_cld[idx] * ssa_cld[idx] * asy_cld[idx];

tau_aer_sum += tau_aer[idx];
tausca_aer_sum += tau_aer[idx] * ssa_aer[idx];
tauscag_aer_sum += tau_aer[idx] * ssa_aer[idx] * asy_aer[idx];
}
Expand Down

0 comments on commit dea778f

Please sign in to comment.