jonhrafe / MCDC_Simulator_public

The Monte Carlo Diffusion and Collision simulator (MC/DC), is a C++ open-source Diffusion-Weighted Magnetic Resonance Imaging (DW-MRI) Monte Carlo Simulator.
https://jonhrafe.github.io/MCDC_Simulator_public/
GNU Lesser General Public License v2.1
19 stars 12 forks source link

Misleading error message upon failed spin initialisation #4

Closed MariamAndersson closed 4 years ago

MariamAndersson commented 4 years ago

When automatic initialisation of spins within a substrate with "ini_walker_pos intra" fails, the error message is:

"Cannot initialize extra-cellular walkers win the given substrate".

However, the initialisation actually fails due to the fact that the substrate occupies a very small volume fraction of the specified voxel. It would be helpful if the error message reflected this.

jonhrafe commented 4 years ago

The system errors have been updated to indicate either if:

The number of tires was updated to 100,000 (which should work even if you have 1e-5 intra- or -extra axonal volume fractions)