From 1926ea02d38ff6441aa37c8fd5d503ead01fed54 Mon Sep 17 00:00:00 2001 From: andreafarina Date: Tue, 10 Sep 2024 12:59:00 +0200 Subject: [PATCH] [bug] fix WL calculation with mua>0 --- src/mmc_core.cl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mmc_core.cl b/src/mmc_core.cl index 1a50341..ef8d641 100644 --- a/src/mmc_core.cl +++ b/src/mmc_core.cl @@ -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; } }