Dear Dr. Fang,
I'm having trouble setting the maximum number of detected photon when running mmc from the command line.
If I don't set it at all:
mmc -f input.json -d 1
the simulation runs fine.
If I set the -H flag like this:
mmc -f input.json -d 1 -H 10000000
then the simulation doesn't run, and I get the following error:
MMC ERROR(-1):incomplete input in unit mmc_utils.c:2669
If I move the -H flag before the -d flag:
mmc -f input.json -H 10000000 -d 1
then the simulation runs, but it ignores both flags, so that no detected photon data is outputted.
Finally, if I move it as the first flag:
mmc -H 10000000 -f input.json -d 1
mmc interactively asks for the simulation parameters (total photon number, RNG seed, source position etc.), rather than reading the json.
I've also tried using --maxdetphoton instead of -H and changing the number, but the result is still the same. I'm using MMC v2024.2 on Ubuntu 24.04.
Thank you very much,
best,
Marco