Skip to content

Commit

Permalink
remove commented lines
Browse files Browse the repository at this point in the history
  • Loading branch information
ShijieYan committed Oct 12, 2019
1 parent e321340 commit 373459a
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions src/mmc_core.cl
Original file line number Diff line number Diff line change
Expand Up @@ -913,33 +913,13 @@ void launchphoton(__constant MCXParam *gcfg, ray *r, __global float3 *node,__con
r->eid=srcelem[is];
float s=0.f;
for(i=0;i<4;i++){s+=bary[i];}
// r->bary0.x=bary[0]/s;
// r->bary0.y=bary[1]/s;
// r->bary0.z=bary[2]/s;
// r->bary0.w=bary[3]/s;
for(i=0;i<4;i++){
if((bary[i]/s)<1e-4f)
r->faceid=ifacemap[i]+1;
}
break;
}
}
// if(is==mesh->srcelemlen){
// #pragma omp critical
// {
// MMC_FPRINTF(cfg->flog,"all tetrahedra (%d) labeled with -1 do not enclose the source!\n",mesh->srcelemlen);
// if(mesh->srcelemlen){
// int *elems=(int *)(mesh->elem+(mesh->srcelem[0]-1)*mesh->elemlen);
// MMC_FPRINTF(cfg->flog,"elem %d %d [%f %f %f] \n",mesh->srcelem[0],elems[0],mesh->node[elems[0]-1].x,mesh->node[elems[0]-1].y,mesh->node[elems[0]-1].z);
// MMC_FPRINTF(cfg->flog,"elem %d %d [%f %f %f] \n",mesh->srcelem[0],elems[1],mesh->node[elems[1]-1].x,mesh->node[elems[1]-1].y,mesh->node[elems[1]-1].z);
// MMC_FPRINTF(cfg->flog,"elem %d %d [%f %f %f] \n",mesh->srcelem[0],elems[2],mesh->node[elems[2]-1].x,mesh->node[elems[2]-1].y,mesh->node[elems[2]-1].z);
// MMC_FPRINTF(cfg->flog,"elem %d %d [%f %f %f] \n",mesh->srcelem[0],elems[3],mesh->node[elems[3]-1].x,mesh->node[elems[3]-1].y,mesh->node[elems[3]-1].z);
// MMC_FPRINTF(cfg->flog,"source position [%e %e %e] \n",r->p0.x,r->p0.y,r->p0.z);
// MMC_FPRINTF(cfg->flog,"bary centric volume [%e %e %e %e] \n",bary[0],bary[1],bary[2],bary[3]);
// }
// }
// MESH_ERROR("initial element does not enclose the source!");
// }
#endif
}

Expand Down

0 comments on commit 373459a

Please sign in to comment.