qnumber function problem

Asked by reza fard

in version 3.7.5 i try to use qnumber function as below:

  int i;
  int qNumbers(char pName[12],int spin2,int charge3,int cdim);
  i= qNumbers("e" ,1 ,3 ,3 );

but after using makefile command and then run the program i get an error :

Segmentation fault (core dumped)

this error comes from the command: i= qNumbers("e" ,1 ,3 ,3 );

how can i solve it?

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
Best Alexander Pukhov (pukhov) said :
#1

int spin2, charge3, cdim,pdg;

pdg=qNumbers("e" ,&spin2 ,&charge3 ,&cdim );

Function prototype is presented in c_source/dynamicME/include/vp.h

Best
   Alexander Pukhov

On 19.07.2019 0:22, reza fard wrote:
> New question #682157 on CalcHEP:
> https://answers.launchpad.net/calchep/+question/682157
>
> in version 3.7.5 i try to use qnumber function as below:
>
> int i;
> int qNumbers(char pName[12],int spin2,int charge3,int cdim);
> i= qNumbers("e" ,1 ,3 ,3 );
>
> but after using makefile command and then run the program i get an error :
>
> Segmentation fault (core dumped)
>
> this error comes from the command: i= qNumbers("e" ,1 ,3 ,3 );
>
> how can i solve it?
>
>
>
>

Revision history for this message
reza fard (rezafardipour) said :
#2

Thanks Alexander Pukhov, that solved my question.