Compiling Code in Subprocesses directory

Asked by Jory Sonneveld

For Madgraph 1.5.1, I made a change in cuts.f and cuts.inc in the Subprocesses directory of my process. I would like to compile the code using the makefile, but I receive this error:
 % make
make: *** No rule to make target `nexternal.inc', needed by `qmass.inc'. Stop.
It seemed that the address of other directories was ../../[directory], which should have been ../[directory]. However, after changing this, I obtain the exact same error.

After copying nexternal.inc from ../Source/nexternal.inc to the Subprocesses directory, I get
 % make
touch qmass.inc
gfortran -O -w -ffixed-line-length-132 -w -c -o driver.o driver.f
driver.f:99: Error: Can't open included file 'pmass.inc'
make: *** [driver.o] Error 1

Trying to run make in a Subprocesses directory with an unchanged cuts.f and cuts.inc file gives me the same error:
% make
make: *** No rule to make target `nexternal.inc', needed by `qmass.inc'. Stop.

How can I compile my adjusted cuts.f (with cuts.inc) file?

Question information

Language:
English Edit question
Status:
Solved
For:
MadGraph5_aMC@NLO Edit question
Assignee:
No assignee Edit question
Solved by:
Olivier Mattelaer
Solved:
Last query:
Last reply:
Revision history for this message
Best Olivier Mattelaer (olivier-mattelaer) said :
#1

Hi Jory,

You don't need any compilation at the SubProcess level. The compilation of those files occur for each
P0_XXXX directory separately and those files are copied (symlink to be precise) in each of those.

That's the reason for this additional ../ that you found in those files and about the missing files.

Cheers,

Olivier

On Oct 16, 2012, at 5:56 AM, Jory Sonneveld <email address hidden> wrote:

> New question #211363 on MadGraph5:
> https://answers.launchpad.net/madgraph5/+question/211363
>
> For Madgraph 1.5.1, I made a change in cuts.f and cuts.inc in the Subprocesses directory of my process. I would like to compile the code using the makefile, but I receive this error:
> % make
> make: *** No rule to make target `nexternal.inc', needed by `qmass.inc'. Stop.
> It seemed that the address of other directories was ../../[directory], which should have been ../[directory]. However, after changing this, I obtain the exact same error.
>
> After copying nexternal.inc from ../Source/nexternal.inc to the Subprocesses directory, I get
> % make
> touch qmass.inc
> gfortran -O -w -ffixed-line-length-132 -w -c -o driver.o driver.f
> driver.f:99: Error: Can't open included file 'pmass.inc'
> make: *** [driver.o] Error 1
>
> Trying to run make in a Subprocesses directory with an unchanged cuts.f and cuts.inc file gives me the same error:
> % make
> make: *** No rule to make target `nexternal.inc', needed by `qmass.inc'. Stop.
>
> How can I compile my adjusted cuts.f (with cuts.inc) file?
>
> --
> You received this question notification because you are a member of
> MadTeam, which is an answer contact for MadGraph5.

Revision history for this message
Jory Sonneveld (jory) said :
#2

Thanks Olivier Mattelaer, that solved my question.