Page 1 of 1

CalcOmega_with_DDetection.cpp and CalcOmega_with_DDetection_old.cpp files

Posted: 5. Oct 2017, 18:32
by MailQuestion
Hello Florian

Sorry for the question which is probably trivial.

I am interested in relic Density in micrOMEGAs and I have a problem about DirectDetection files. I want to use your MSSM files for relic density calculation in micrOMEGAs To use direct Detection and I type "make main=CalcOmega_with_DDetection.cpp" but I get

Code: Select all

../sources/micromegas.h: In function ‘int main(int, char**)’:
../sources/micromegas.h:350: error: too many arguments to function ‘int nucleonAmplitudes(char*, double*, double*, double*, double*)’
CalcOmega_with_DDetection.cpp:59: error: at this point in file
CalcOmega_with_DDetection.cpp:68: error: ‘FeScLoop’ was not declared in this scope
CalcOmega_with_DDetection.cpp:98: error: ‘FeScLoop’ was not declared in this scope
make: *** [all] Error 1
I got the same error messages also for CalcOmega_with_DDetection_old.ccp. How can I get over this problem and run "CalcOmega_with_DDetection.ccp" or "CalcOmega_with_DDetection_old.ccp" files without errors.

Thanks in advance.

Re: CalcOmega_with_DDetection.cpp and CalcOmega_with_DDetection_old.cpp files

Posted: 5. Oct 2017, 18:38
by FStaub
Hi,

at the end, it depends on your micromegas version because the syntax of these commands has changed from time to time. If I remember correctly, the SARAH file is compatible with version 4.2.5.

You can check the main.cpp file delivered with your micromegas version how the syntax for this specific version is and adjust the SARAH generated files accordingly.

Cheers,
Florian

Re: CalcOmega_with_DDetection.cpp and CalcOmega_with_DDetection_old.cpp files

Posted: 28. Nov 2017, 17:28
by felipeagf
Hi Florian

Sometimes when I run the command "make" in micromegas_4.2.5 folder and follow all the usual steps to make it work with a newProject model it cannot read the SLHA files correctly. When I run the command "make main=CalcOmega_with_DDetection_MOv4.2.cpp" in the model directory it shows the error message that I attached here.


This did not happen last times when I followed the same steps using the same CalcOmega_with_DDetection_MOv4.2.cpp script written by SARAH, so maybe some things changed with time. If you have any idea of how to solve this strange problem many thanks. If not, OK no problem and ignore this message.




Cheers
Felipe

Re: CalcOmega_with_DDetection.cpp and CalcOmega_with_DDetection_old.cpp files

Posted: 30. Nov 2017, 09:59
by FStaub
No, I don't have any idea what goes on.