FORTRAN runtime error when using OPT-PROD/OPT-PROP

Dear experts,

I am trying to model the response of a scintillator using the OPT-PROD and OPT-PROP cards. The input file I have works on the older version of fluka (2020.0) however when I try to run it on fluka_4.0.0 using the latest flair version and gfortran 10, I get the following error:
<< At line 4 of file cascade/mgcsnr.f
Fortran runtime error: Actual string length is shorter than the declared one for dummy argument ‘chmsg2’ (4/8) >>
Would anyone happen to know why this error message occurs on the newer version of fluka but not the older? I’ve also attached my flair file and log file if that helps.

Thanks and best regards,
Kyle

LUXE_Spectroscopy_W10.flair (10.9 KB)
LUXE_Spectroscopy_W10001.log (738 Bytes)

Dear Kyle,

there is a bug in Fluka 4-0.0 with the optical photons. The fixed package should available quite soon.

Cheers,
David

Dear David,

Thank you very much for your quick response.

Regards,
Kyle

Dear Kyle,

the issue with optical photons has been fixen in FLUKA 4-0.1. Please download it from https://fluka.cern/

Cheers,
David