Skip to content

Commit

Permalink
resolve some compiling issues,e.g. missing argument in functions; mis…
Browse files Browse the repository at this point in the history
…sing fields in data struct
  • Loading branch information
ShijieYan committed Oct 7, 2019
1 parent 261fe69 commit 3262326
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/mcx_utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,9 @@ typedef struct MMC_history{
unsigned int seedbyte; /**< how many bytes per RNG seed */
float normalizer; /**< what is the normalization factor */
unsigned int srcnum; /**< number of sources in the simulation*/
int reserved[4]; /**< reserved fields for future extension */
int respin; /**< if positive, repeat count so total photon=totalphoton*respin; if negative, total number is processed in respin subset */
unsigned int savedetflag; /**< */
int reserved[2]; /**< reserved fields for future extension */
} history;


Expand Down
1 change: 1 addition & 0 deletions src/mmclab.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[]){
cl_uint workdev;

const char *outputtag[]={"data"};
const char *datastruct[]={"data","dref"};
const char *gpuinfotag[]={"name","id","devcount","major","minor","globalmem",
"constmem","sharedmem","regcount","clock","sm","core",
"autoblock","autothread","maxgate"};
Expand Down
2 changes: 1 addition & 1 deletion src/simpmesh.c
Original file line number Diff line number Diff line change
Expand Up @@ -932,7 +932,7 @@ void mesh_saveweight(tetmesh *mesh,mcconfig *cfg,int isref){
cfg->dim.y=cfg->maxgate;
cfg->dim.z=datalen;
}
mcx_savedata(mesh->weight,datalen*cfg->maxgate*cfg->srcnum,cfg);
mcx_savedata(mesh->weight,datalen*cfg->maxgate*cfg->srcnum,cfg,isref);
cfg->dim=dim0;
return;
}
Expand Down

0 comments on commit 3262326

Please sign in to comment.