cant compile vertex code erorr wihle running ./main_22

Asked by amirreza ojaghi

Dear CalcHEP team
first thank to all of you for this amazing package .
i compile main_22.c successfully but when i ran executable file by ./main_22 command
i receive some error like below
"VERTEX: T t h
Segmentation fault (core dumped)
Can not compile codes for vertex [ T t h]" .
i found out that those error is for some function like "calcMainFunc()" or "slhaDecayPrint" and etc.
but i dont know how can i fix them .
please tell me your idea .
excuse me for my weak english speaking.

sincerely yours
amirreza

Question information

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

Thank you for bug report.

For temporal solution, please,  replace  model 2 on model 1  in main_22.c

   // setModel("models" ,2 );

     setModel("models" ,1 );

Problem is caused by automatic calculation of  {h,G,G} and {h,A,A}
vertexes  in CalCHEP.

We did not check  this option in main_22.c.   May be some addition
environment settings are needed for it.    I'll check soon and write you.

Best

    Alexander Pukhov

On 20.04.2019 15:42, amirreza ojaghi wrote:
> New question #680347 on CalcHEP:
> https://answers.launchpad.net/calchep/+question/680347
>
> Dear CalcHEP team
> first thank to all of for this amazing package .
> i compile main_22.c successfully but when i ran executable file by ./main_22 command
> i receive some error like below
> "VERTEX: T t h
> Segmentation fault (core dumped)
> Can not compile codes for vertex [ T t h]" .
> i found out that those error is for some function like "calcMainFunc()" or "slhaDecayPrint" and etc.
> but i dont know how can i fix them .
> please tell me your idea .
> excuse me for my weak english speaking.
>
> sincerely yours
> amirreza
>

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

One simple correction needs.

In file c_sources/dynamicME/dynamic_cs.c  lines 405,406  we have:

         sprintf(command,"cd %s; %s/sbin/newVertex models  %d  %s %s %s",
                        compDir, calchepDir,  modelNum, lib, libDir,
vert_txt);

Improved code:

         sprintf(command,"cd %s; %s/sbin/newVertex models  1 %s %s %s",
                        compDir, calchepDir, lib, libDir, vert_txt);

So, command line  has to contain 1 instead of modelNum. Here modelNum
presents numeration  of original  model. CalcHEP creates new working
space (aux/)  to generate dynamically codes for matrix elements and
vertices.   Inside aux  the  model has number 1.

I'll improve code on WEB as well.

Thanks

    Alexander Pukhov

On 21.04.2019 10:33, Alexander Pukhov wrote:
> Thank you for bug report.
>
> For temporal solution, please,  replace  model 2 on model 1  in main_22.c
>
>   // setModel("models" ,2 );
>
>     setModel("models" ,1 );
>
> Problem is caused by automatic calculation of  {h,G,G} and {h,A,A}
> vertexes  in CalCHEP.
>
> We did not check  this option in main_22.c.   May be some addition
> environment settings are needed for it.    I'll check soon and write you.
>
> Best
>
>    Alexander Pukhov
>
>
>
> On 20.04.2019 15:42, amirreza ojaghi wrote:
>> New question #680347 on CalcHEP:
>> https://answers.launchpad.net/calchep/+question/680347
>>
>> Dear CalcHEP team
>> first thank to all of for this amazing package .
>> i compile main_22.c successfully but when i ran executable file by
>> ./main_22 command
>> i receive some error like below
>> "VERTEX: T t h
>> Segmentation fault (core dumped)
>> Can not compile codes for vertex  [ T t h]" .
>> i found out that those error is for some function like
>> "calcMainFunc()" or "slhaDecayPrint" and etc.
>> but i dont know how can i fix them .
>> please tell me your idea .
>> excuse me for my weak english speaking.
>>
>> sincerely yours
>> amirreza
>>

Revision history for this message
amirreza ojaghi (amirreza1996) said :
#3

Thanks Alexander Pukhov, that solved my question.