A strange error message for EMFCUT

The FLAIR Warning message & interface :the code in the inp file are:

@Output

w> Warning: Invalid what(s)=[0]
EMFCUT , -1.0E-5 1.0E-6, RFiltT1 @LASTREG 1
@Input

@.inp file
EMFCUT -1E-05 1E-6 HYDROGEN @LASTMAT 1PROD-CUT
EMFCUT -1.0E-5 1.0E-6 RFiltT1 @LASTREG 1

flair 3.4-0
FLUKA 4-5.0
Ubuntu 22.04

Hello Yining Liu,

thank you for reaching out. It would be easier for us to diagnose and solve the issue if you provide the entire .flair file.

Looking at it, the issue could be the blank entry for “Fudgem” in the PROD-CUT card. Try using 1.0e-5 instead, and let me know if it resolves the issue. If it works, I encourage you to look at this documentation page to set a physically meaningful value for this parameter. If adding this parameter does not work, feel free to attach your entire input file here.

Thank you,

Stefano

Dear Stefano,

Thank you very much for your valuable suggestions. As requested, I have attached the complete .flair and .inp files here, hoping to provide more context for troubleshooting the issue.
OptimSpectro38_16.flair (22.6 KB)
OptimSpectro38_16.inp (29.1 KB)

I carefully reviewed the documentation and used FLAIR’s Edit Card function to set the corresponding parameter in the .inp file to -1.0e-5 (as specified in the manual, including the negative sign). However, two issues remain:

  1. The parameter change is not reflected in FLAIR’s card interface, despite being correctly updated in the .inp file.
    1746539888572

  2. The error persists, and the program continues to report the same issue.
    1746540524114

Given this, I wonder: Could there be minor discrepancies in FLAIR’s parsing of this card that do not interfere with FLUKA’s core functionality but cause inconsistencies in the interface or parameter handling?

Your further insights or guidance on this matter would be greatly appreciated. Please let me know if additional information or steps are needed on my end.

Thank you again for your assistance!

Best regards

Hello Yining Liu,

thank you for the files. Unfortunately I am not able to reproduce your error, when I open your file I don’t see the warning from the line you sent, and the script runs normally…

Regarding the two issues:

  • the negative sign simply means to use the kinetic energy rather than the total electron energy (mass + kinetic), and it is reflected in the Flair interface.
  • since I cannot reproduce the Flair warning, is it possible you are using an older version of Flair? If so, try updating and trying again. Another solution would be to completely delete the card and write it again, all from within Flair (looks like it is still thinking it is a PROD-CUT, rather than a transport)

I hope this resolves some of the issues,

Stefano

thanks,this bug has been fixed in flair3.4-1