Skip to content

Commit

Permalink
Merge branch 'master' into mmcx
Browse files Browse the repository at this point in the history
  • Loading branch information
fangq committed Jul 15, 2019
2 parents afcfda1 + 61bdd10 commit c8c1cb9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/tettracing.c
Original file line number Diff line number Diff line change
Expand Up @@ -1038,11 +1038,11 @@ float branchless_badouel_raytet(ray *r, raytracer *tracer, mcconfig *cfg, visito
if(newidx!=r->oldidx){
if(cfg->isatomic)
#pragma omp atomic
tracer->mesh->weight[r->oldidx]+=ww;
tracer->mesh->weight[r->oldidx]+=r->oldweight;
else
tracer->mesh->weight[eid+tshift]+=ww;
tracer->mesh->weight[r->oldidx]+=r->oldweight;
r->oldidx=newidx;
r->oldweight=0.0;
r->oldweight=ww;
}else
r->oldweight+=ww;
}else{
Expand Down

0 comments on commit c8c1cb9

Please sign in to comment.