Extra indent in model_functions.f

Asked by teddym

Dear MG5 authors:

    I'm using a model file containing some effective vertex with form-factor functions which is put in the functions.f in Fortran folder in UFO. In previous version (I test in 2.7.3) it works perfectly. However, in 3.1.1, when the code copy the functions into model_functions.f, there are some extra indent there. Since in my functions.f, I have many breaking lines. The extra indent ruin the meaning of the line break indicator. It seems the generation procedure will preseve `&` but not other symbols.

Best
Ted

Question information

Language:
English Edit question
Status:
Solved
For:
MadGraph5_aMC@NLO Edit question
Assignee:
No assignee Edit question
Solved by:
Olivier Mattelaer
Solved:
Last query:
Last reply:
Revision history for this message
Best Olivier Mattelaer (olivier-mattelaer) said :
#1

Hi,

Yes indeed we do not copy-paste the code, but go trough our standard procedure of text-formatting for Fortran.
In our framework the line continuation are done by the formatter so it means that you do not even need to break the line.
If you do you indeed need to use the "&" symbol otherwise our parser will not identify the new line as a line continuation of the previous one and will indeed add as many space as needed to have it as a new line.

Cheers,

Olivier

> On 8 Aug 2021, at 18:35, teddym <email address hidden> wrote:
>
> New question #698290 on MadGraph5_aMC@NLO:
> https://answers.launchpad.net/mg5amcnlo/+question/698290
>
> Dear MG5 authors:
>
> I'm using a model file containing some effective vertex with form-factor functions which is put in the functions.f in Fortran folder in UFO. In previous version (I test in 2.7.3) it works perfectly. However, in 3.1.1, when the code copy the functions into model_functions.f, there are some extra indent there. Since in my functions.f, I have many breaking lines. The extra indent ruin the meaning of the line break indicator. It seems the generation procedure will preseve `&` but not other symbols.
>
>
> Best
> Ted
>
> --
> You received this question notification because you are an answer
> contact for MadGraph5_aMC@NLO.

Revision history for this message
teddym (niepanchongsheng) said :
#2

Thanks Olivier Mattelaer, that solved my question.