ankrh / MCmatlab

Numerical simulation tool for Monte Carlo propagation of light in turbid media
GNU General Public License v3.0
52 stars 13 forks source link

I get no progress of MC simulation for monochromatic light #26

Open ProjectEli opened 3 weeks ago

ProjectEli commented 3 weeks ago

Previously, I got fixed version from issue #22. It works like a charm for broadband wavelengths. To isolate the wavelength-specific depth traces, I attempted to simulate monochromatic light. However, changing from an array of wavelength to a scalar value caused siulation to freeze at 0%. Reverting to broadband wavelengths restored normal operation as usual.

Memory trace for broadband simulation: memory increases as progress increases model.MC.wavelength=350:850; image

Memory trace for monochromatic simulation: progress stuck at 0% and no memory increase and no GPU load but somehow CPU has some loads. (CPU <10% when idle) model.MC.wavelength=550; image

What I got from broadband simulation (refined NormalizedFluenceRate data) image

I want to produce same data for monochromatic light source. What are causes and solutions?

ankrh commented 2 weeks ago

That's unexpected and must be some sort of bug. Can you share with me a model file that has this problem, so I can try to diagnose it?