Too many compound cards!

Dear FLUKA experts,

I’m recently doing research on the uncertainty of materials caused by different elemental decomposition methods on ICRP110 phantom. For this purpose I split the original ICRP phantom materials into four pieces and got about 550+ materials, each composed of about 10 elements.
image

When I ran the program, an error occurred:

*** Too many compound cards. Increase the Icomax (and maybe Mxxmdf) ***
*** parameters inside include DIMPAR ***

So I checked fluka/include/dimpar.h & dimpar.inc and revised them:
I changed MXXMDF from 710 to 3000, and ICOMAX from 4000 to 15000, and then I re-compiled the whole FLUKA code.
cd pathtofluka/src
sudo make clean
sudo make

However the problem still exists, and I was wondering if there is something I haven’t noticed.

Dear Huimin,

Thank you for your question.

Indeed the error relates to the number of compound cards exceeding the limits defined by ICOMAX and MXXMDF.
Modifying these values in dimpar.h and dimpar.inc and recompiling, however, will not change the result: for binary distributions of the FLUKA code it’s not possible to regenerate the FLUKA libraries (libfluka), and so the changes you made have no effect.

Regarding your setup, it’s not entirely clear to me what you mean when you mention splitting the ICRP phantom materials into four parts. I wonder whether all 550+ material definitions are actually required in a single simulation, or if the decomposition could be modularized.
You could consider breaking down the simulation to only include a subsets of materials as needed to avoid the ICOMAX and/or MXXMDF limit.

Best,
Davide