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.
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
tounsigned int
so that it supports up to 4 GBytes, following existingvoxel_mat_dens_bytes
's definition.