wrong conversion of csc and sec in UFO

Bug #1494341 reported by Huaike Guo
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MadGraph5_aMC@NLO
Fix Released
Undecided
Unassigned

Bug Description

We found a wrong conversion csc=1/cos and sec=1/sin from UFO to fortran code and others
 in MadGraph when checking our model.
This conversion is identified to be in each class method p_expression_func in file
madgraph/iolibs/ufo_expression_parsers.py.

Revision history for this message
Olivier Mattelaer (olivier-mattelaer) wrote :

Dear Huaike,

Could you be more explicit in your finding?
Because here I have no idea of which kind of problem you are refering to?
Is the formula not correct in the UFO/Fortran level?
Is it a compilation problem?

Cheers,

Olivier

Huaike Guo (huaike-guo)
information type: Public → Public Security
information type: Public Security → Public
Revision history for this message
Huaike Guo (huaike-guo) wrote :

HI Olivier
The expressions in UFO are fine and the translations to fortran code are not correct when sec or csc are present.
This conversion is handled by python scripts so there is no compilation problem. It is directly written in the above
mentioned python script madgraph/iolibs/ufo_expression_parsers.py.
Is that clear ?

Thanks,
Huaike

Revision history for this message
Olivier Mattelaer (olivier-mattelaer) wrote : Re: [Bug 1494341] wrong conversion of csc and sec in UFO

Yes,

thanks,

I fixed it in our development version. Thanks a lot for your findings.

Olivier
On 10 Sep 2015, at 16:49, Huaike Guo <email address hidden> wrote:

> HI Olivier
> The expressions in UFO are fine and the translations to fortran code are not correct when sec or csc are present.
> This conversion is handled by python scripts so there is no compilation problem. It is directly written in the above
> mentioned python script madgraph/iolibs/ufo_expression_parsers.py.
> Is that clear ?
>
> Thanks,
> Huaike
>
> --
> You received this bug notification because you are subscribed to
> MadGraph5_aMC@NLO.
> https://bugs.launchpad.net/bugs/1494341
>
> Title:
> wrong conversion of csc and sec in UFO
>
> Status in MadGraph5_aMC@NLO:
> New
>
> Bug description:
> We found a wrong conversion csc=1/cos and sec=1/sin from UFO to fortran code and others
> in MadGraph when checking our model.
> This conversion is identified to be in each class method p_expression_func in file
> madgraph/iolibs/ufo_expression_parsers.py.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/mg5amcnlo/+bug/1494341/+subscriptions

Changed in mg5amcnlo:
status: New → Fix Committed
Changed in mg5amcnlo:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.