Compilation problem with "import model_v4"

Asked by James Beacham

Hello:

I'm using MG5v1.4.4 and trying to import a custom heft model via "import model_v4", using Mac OSX 10.6.8. When I run generate_events I get the error:

make[1]: *** No rule to make target `couplings_test.o', needed by `../../lib/libmodel.a'. Stop.
make: *** [../lib/libmodel.a] Error 2

If I follow the advice in https://answers.launchpad.net/madgraph5/+question/169739 and run "change_compiler.py gfortran", I get the same error. If I go to the Source directory and rm all .o files and run make, everything compiles fine until it gets to the MODEL directory:

{. . . . .}
gfortran -O -w -ffixed-line-length-132 -c -o pdf.o pdf.f
gfortran -O -w -ffixed-line-length-132 -c -o PhotonFlux.o PhotonFlux.f
gfortran -O -w -ffixed-line-length-132 -c -o pdg2pdf.o pdg2pdf.f
ar cru ../../lib/libpdf.a Ctq4Fn.o Ctq5Par.o Ctq5Pdf.o Partonx5.o Ctq6Pdf.o cteq3.o mrs98.o mrs98lo.o mrs98ht.o mrs99.o mrst2001.o mrst2002.o jeppe02.o pdfwrap.o opendata.o pdf.o PhotonFlux.o pdg2pdf.o
ranlib ../../lib/libpdf.a
cd MODEL; make
make[1]: *** No rule to make target `couplings_test.o', needed by `../../lib/libmodel.a'. Stop.
make: *** [../lib/libmodel.a] Error 2

The same error occurs when I use g77 instead of gfortran, whether via change_compiler.py or by manually changing the makefile. Can someone perhaps point me in the right direction?

Thanks in advance for any help you can offer.

--James

Question information

Language:
English Edit question
Status:
Solved
For:
MadGraph5_aMC@NLO Edit question
Assignee:
No assignee Edit question
Solved by:
Johan Alwall
Solved:
Last query:
Last reply:
Revision history for this message
Best Johan Alwall (johan-alwall) said :
#1

Hello James,

In your case, the problem is that the file couplings_test.f is missing. This file is created by the ConversionScript in later versions of the usrmod, and is necessary to compile the model. I would suggest that you reuse the particles.dat, interactions.dat, and VariableName.dat files to recreate the model using the usrmod_v4 in MG5, and simply copy the relevant parts of the couplings.f file (and param_card.dat, if you change this by default) from your previous model. Hopefully, this should not be difficult or take too much time.

Sorry for the trouble, all the best,
Johan

Revision history for this message
James Beacham (jamesbeacham) said :
#2

Thanks Johan Alwall, that solved my question.