Skip to content

Commit

Permalink
prevent mmclab from crashing if the source is not enclosed
Browse files Browse the repository at this point in the history
  • Loading branch information
fangq committed Mar 25, 2020
1 parent d6de33e commit 18fb6fc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/mcx_utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -1551,7 +1551,7 @@ void mcx_savedetphoton(float *ppath, void *seeds, int count, int doappend, mccon
*/

void mcx_version(mcconfig *cfg){
MMC_ERROR(MMC_INFO,"MMC $Rev::57e5d6$2019.4");
MMC_ERROR(MMC_INFO,"MMC $Rev:: $2019.4");
}

/**
Expand All @@ -1572,7 +1572,7 @@ void mcx_printheader(mcconfig *cfg){
# #\n\
# Research funded by NIH/NIGMS grant R01-GM114365 #\n\
###############################################################################\n\
$Rev::57e5d6$2019.10$Date::Qianqian Fang $ by $Author::Qianqian Fang $\n\
$Rev:: $2019.10$Date:: $ by $Author:: $\n\
###############################################################################\n"S_RESET);
}

Expand Down
2 changes: 1 addition & 1 deletion src/tettracing.c
Original file line number Diff line number Diff line change
Expand Up @@ -1647,8 +1647,8 @@ void launchphoton(mcconfig *cfg, ray *r, tetmesh *mesh, RandType *ran, RandType
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!");
}
}
}

Expand Down

0 comments on commit 18fb6fc

Please sign in to comment.