Skip to content

Commit

Permalink
fix voxel [0 0 0] is always zero bug, regression since v2016.4
Browse files Browse the repository at this point in the history
  • Loading branch information
fangq committed Dec 21, 2016
1 parent 1848321 commit 63e5e23
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 @@ -727,7 +727,7 @@ kernel void mcx_main_loop(uchar media[],float field[],float genergy[],uint n_see

// saving fluence to the voxel when moving out

if(idx1d!=idx1dold && idx1dold>0 && mediaidold){
if(idx1d!=idx1dold && mediaidold){
// if t is within the time window, which spans cfg->maxgate*cfg->tstep.wide
if(gcfg->save2pt && f.t>=gcfg->twin0 && f.t<gcfg->twin1){
float weight=0.f;
Expand Down

0 comments on commit 63e5e23

Please sign in to comment.