Skip to content

Commit

Permalink
[bug] fix skewed nscat distribution, fix #222
Browse files Browse the repository at this point in the history
  • Loading branch information
fangq committed Jun 7, 2024
1 parent 654dff1 commit b41c915
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mcx_core.cu
Original file line number Diff line number Diff line change
Expand Up @@ -1085,7 +1085,7 @@ __device__ inline int launchnewphoton(MCXpos* p, MCXdir* v, Stokes* s, MCXtime*
/**
* First, let's terminate the current photon and perform detection calculations
*/
if (fabsf(p->w) > 0.f) {
if (fabsf(p->w) >= 0.f) {
ppath[gcfg->partialdata] += p->w; //< sum all the remaining energy

if (gcfg->debuglevel & (MCX_DEBUG_MOVE | MCX_DEBUG_MOVE_ONLY)) {
Expand Down

0 comments on commit b41c915

Please sign in to comment.