DIDSR / MCGPU

GPU-accelerated Monte Carlo x-ray transport code to simulate medical x-ray imaging devices.
56 stars 20 forks source link

Fix voxel dose storage for ROI > 2 GBytes. #10

Open z0gSh1u opened 8 months ago

z0gSh1u commented 8 months ago

For voxel dose tally, current code stores the # of bytes of Edep array in int type. It overflows and results in a negative number if the ROI requires > 2 GBytes memory to store the dose information.

Here I modified int to unsigned int so that it supports up to 4 GBytes, following existing voxel_mat_dens_bytes's definition.

pic1