Skip to content

Commit

Permalink
Merge pull request #94 from andreafarina/WL-Jacobian
Browse files Browse the repository at this point in the history
[bug] fix WL calculation with mua>0
  • Loading branch information
fangq authored Sep 15, 2024
2 parents 97330d1 + 1926ea0 commit fef5207
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mmc_core.cl
Original file line number Diff line number Diff line change
Expand Up @@ -702,7 +702,7 @@ __device__ float branchless_badouel_raytet(ray* r, __constant MCXParam* gcfg, __
#ifndef MCX_SKIP_VOLUME

if (prop.mua > 0.f) {
if (GPU_PARAM(gcfg, outputtype) != otEnergy && GPU_PARAM(gcfg, outputtype) != otWP) {
if (GPU_PARAM(gcfg, outputtype) != otEnergy && GPU_PARAM(gcfg, outputtype) != otWP && GPU_PARAM(gcfg, outputtype) != otWL) {
ww /= prop.mua;
}
}
Expand Down

0 comments on commit fef5207

Please sign in to comment.