hi everyone,
My student Rahul Ragunathan found a bug in mcx's diffuse reflectance output when using a pattern or pattern3d source. I was able to fix this bug yesterday
https://github.com/fangq/mcx/commit/c04bff5d9a81c76fde688746fbbdae1ab4be9d7a
What versions are affected:
- mcx and mcxcl released since March 2019 (v2019.3, v2019.4 and nightly-build)
- earlier releases are not affected
What features are affected:
- this bug affects all diffuse reflectance outputs (fluence.dref) with a single pattern/pattern3d source with non-binary pattern data
- this bug does not affect other output and source types
What happened:
- as part of the new feature - "photon sharing" - for simultaneous simulations of multiple pattern sources (detailed in
this OL paper), we changed the way in handling initial weights of a photon when multiple patterns are used. However, when a single pattern is used, a detected photon's weight is mistakenly multiplied by its initial weight (needed for photon sharing) before
saving to the dref output. This means that a photon's initial weight is double counted (once at launch, once at detection), resulting in lower dref intensities.
What to do:
- if anyone is running simulations using the combination of a single pattern and dref output, you MUST rerun your simulations using the updated nightly build binaries to avoid incorrect results.
- for other users, I strongly recommend you to also update your mcx/mcxcl to the latest version - I am working on creating a new release (v2020) and hopefully make an announcement shortly.
Feature preview: MCX speed contest (standalone)
- you might have seen http://mcx.space/gpubench and http://mcx.space/computebench/ for benchmarking your GPUs/CPUs using mcx and mcxcl. Previously, to share your benchmark results, you need to run matlab and the mcx_gpu_contest.m script. In the past week, I wrote a new script to allow one to run/compare/submit your benchmark results in a command line without needing matlab. Please download the nightly build and run the speedcontest/mcxcontest.pl script. Should work out-of-box on Linux and Mac. On Windows, you need to install either Cygwin64 or MSYS2 where perl/curl commands are supported.
Please let me know if you see any issue running this script.
cheers
Qianqian