Loop function error

Dear experts,
I run 13 simulations with varying energy from 70 to 200MeV. When I use the loop function, an error occurs.It seems that runs are generated correctly .

Abort called from LFLPRP reason DEFINE 4TH FIELD IS NOT A COMMENT Run stopped!
STOP DEFINE 4TH FIELD IS NOT A COMMENT

*** The 1th field - =-E of the following input card ***
BEAM - =-E -0.5 -0.5 PROTON
*** does not contain a valid formatted fortran real number ***
*** when one is expected ***

Thank you!

Dear @ye.jiaquan,

  • The second error:

    *** The 1th field - =-E of the following input card ***
    BEAM - =-E -0.5 -0.5 PROTON
    *** does not contain a valid formatted fortran real number ***
    *** when one is expected ***

It seems that the reason is the extra space that you added ’ = -E’. You could solve it removing that space or taking E: -$E
See this presentation for more info.

Could you send the files you are using for these simulations?
Just to check if that’s the reason of this error, and also to reproduce the 1st error that you reported.

Thanks,
André

Dear @adonadon
Sorry for not responding in time, the difficulties mentioned above have been resolved. I successfully generated the file, but the calculation result seems to be wrong.The result of 70MeV I run using the loop function is different from the result when I run it alone.
The inp and bnn file is attached.
https://drive.google.com/drive/folders/1buOxAnQCo6Qc-hZmAzY5DQda_Om90xcg?usp=sharing
Thank you for your reply!

Dear @ye.jiaquan,

  1. I have not been able to reproduce the first error that you reported.
    Could you explain me in more detail when/where do you get it?
  2. The loop function in Flair is a feature in the GUI that allows you to create multiple files, varying the value of a defined parameter (E in your case) then… there should not be any difference in the input that you generate and the one generated using the loop function.
    I show you below how the loop function works:

Select loop feature:


It opens the new windows to use the loop tool:

We choose from 70MeV to 200MeV with 10MeV step:

13 new input files are created:

We can do multiple runs selecting them and pressing in ‘Start’ button:

I hope it helps you,
cheers,

André

1 Like