Skip to content

Commit

Permalink
fix bug when reading from json input file
Browse files Browse the repository at this point in the history
  • Loading branch information
fangq committed Feb 19, 2017
1 parent 0e2906c commit a5815b6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/mcx_host.cpp
Expand Up @@ -575,7 +575,6 @@ is more than what your have specified (%d), please use the -H option to specify
if(cfg->isnormalized){
float scale=0.f;
fprintf(cfg->flog,"normalizing raw data ...\t");

if(cfg->outputtype==otFlux || cfg->outputtype==otFluence){
scale=1.f/(cfg->energytot*Vvox*cfg->tstep);
if(cfg->unitinmm!=1.f)
Expand Down
3 changes: 3 additions & 0 deletions src/mcx_utils.c
Expand Up @@ -59,6 +59,9 @@ void mcx_initcfg(Config *cfg){
cfg->dim.x=0;
cfg->dim.y=0;
cfg->dim.z=0;
cfg->steps.x=1.f;
cfg->steps.y=1.f;
cfg->steps.z=1.f;
cfg->nblocksize=64;
cfg->nphoton=0;
cfg->nthread=(1<<14);
Expand Down

0 comments on commit a5815b6

Please sign in to comment.