Problem with STRSIZ

Asked by Maria Olea on 2021-03-17

Dear Alexander,

I am trying to export a model from FeynRules to MicrOmegas but I get this error in FeynRules:

Warning! MaxExpressionLength is longer than the CalcHEP gui can handle. This can be fixed by opening the file c_source/chep_crt/include/syst.h and change '#define STRSIZ 2048' to '#define STRSIZ 3311' and recompile CH (make clean and then make).

In the file syst.h that comes by default with the version of CalcHEP currently installed in my computer it says:
#define STRSIZ 4096
I try to change it to #define STRSIZ 3311 but when I do 'make clean' and 'clean', I keep having the same problem with exporting the file from FeynRules. What could I do?

Thank you for your attention,

Best wishes,

María

Question information

Language:
English Edit question
Status:
Solved
For:
CalcHEP Edit question
Assignee:
No assignee Edit question
Solved by:
Maria Olea
Solved:
Last query:
Last reply:
Revision history for this message
Alexander Pukhov (pukhov) said :
#1

More likely there is in error in the format string  of one of the models
files.

Format is defined by the third line. For  example :

SM
  Variables
  Name   | Value       |> Comment                                   <|

*                                       ^*

*                                    This one *

Check that this symbol is not lost in all model files.

You also can send me your model files: <email address hidden>

Best

         Alexander Pukhov

On 3/17/21 3:15 PM, Maria Olea wrote:
> New question #696109 on CalcHEP:
> https://answers.launchpad.net/calchep/+question/696109
>
> Dear Alexander,
>
> I am trying to export a model from FeynRules to MicrOmegas but I get this error in FeynRules:
>
> Warning! MaxExpressionLength is longer than the CalcHEP gui can handle. This can be fixed by opening the file c_source/chep_crt/include/syst.h and change '#define STRSIZ 2048' to '#define STRSIZ 3311' and recompile CH (make clean and then make).
>
> In the file syst.h that comes by default with the version of CalcHEP currently installed in my computer it says:
> #define STRSIZ 4096
> I try to change it to #define STRSIZ 3311 but when I do 'make clean' and 'clean', I keep having the same problem with exporting the file from FeynRules. What could I do?
>
> Thank you for your attention,
>
> Best wishes,
>
> María
>

Revision history for this message
Alexander Belyaev (alexander.belyaev) said :
#2

Just one comment from my side:
looks like FeynRules does not egenrte the width of the field correctly.
So the origin of the problem comes from feynRules.
Please send us the model, so we can confirm this.
Our e-mails:
<email address hidden>
<email address hidden>

We could also try to solve the problem at the CalcHEP level -- so even if FeynRUles does not generate the width correctly, we could try to make CalcHEP to "digsest" the model

Regards
Alexander

Revision history for this message
Maria Olea (olaolea) said :
#3

Dear AlexanderS,

thanks a lot for your kind answers. I think I managed to solve the error. In the interface that FeynRules provides to CalcHEP (file CalcHepInterface.m) there was a condition
CH$MaxExpressionLength>1100 that was raising an error. I changed the condition and then the program was able to proceed successfully. Thanks again.

Best regards,

María.

Revision history for this message
Alexander Pukhov (pukhov) said :
#4

Thanks  a lot. We'll  make  your solution public for CalcHEP users. It
is an important point.

Nevertheless, send me please wrongly generated model files for debugging
corresponding  error message.

<email address hidden>

Best

    Alexander Pukhov

On 3/18/21 11:25 AM, Maria Olea wrote:
> Question #696109 on CalcHEP changed:
> https://answers.launchpad.net/calchep/+question/696109
>
> Status: Answered => Solved
>
> Maria Olea confirmed that the question is solved:
> Dear AlexanderS,
>
> thanks a lot for your kind answers. I think I managed to solve the error. In the interface that FeynRules provides to CalcHEP (file CalcHepInterface.m) there was a condition
> CH$MaxExpressionLength>1100 that was raising an error. I changed the condition and then the program was able to proceed successfully. Thanks again.
>
> Best regards,
>
> María.
>