Print

Print


Why don't we just build f77 for CentOS7?  I do not think it should be hard.
From: [log in to unmask] <[log in to unmask]> on behalf of Bradley T Yale <[log in to unmask]>
Sent: Saturday, March 11, 2017 12:29:04 AM
To: Maruyama, Takashi; Rouven Essig
Cc: hps-software
Subject: Re: MadGraph4 compilation
 

I tracked down where those source files are located and put them where needed. I've built and linked the directories that each module seems to depend on as I've manually gone through each one, but it looks like p is still not getting assigned in 'Subprocesses/P1_e-n+_f+f-e-n+/cuts.f', or x in 'genps.f':


Working on subprocess:
    P1_e-n+_f+f-e-n+    cuts.f:21:28:

       pass_point = passcuts(p)
                                                 1
Warning: Rank mismatch in argument ‘p’ at (1) (rank-2 and scalar)
genps.f:54:53:

       call gen_mom(iconfig,mincfig,maxcfig,invar,wgt,x,p)
                                                                                              1
Warning: Actual argument contains too few elements for dummy argument ‘x’ (25/50) at (1)

I don't see how changing the compiler can cause so many problems.




From: [log in to unmask] <[log in to unmask]> on behalf of Maruyama, Takashi <[log in to unmask]>
Sent: Friday, March 10, 2017 1:11:30 PM
To: Bradley T Yale; Rouven Essig
Cc: hps-software
Subject: RE: MadGraph4 compilation
 
I think "nexternal.inc" can be linked to either Source/nexternal.inc or SubProcesses/P1_xxxxx/nexternal.inc.

Takashi

-----Original Message-----
From: [log in to unmask] [mailto:[log in to unmask]] On Behalf Of Bradley T Yale
Sent: Thursday, March 09, 2017 11:22 PM
To: Rouven Essig
Cc: hps-software
Subject: MadGraph4 compilation

Hi Rouven,

We still use MadGraph4 for a couple of things, and it's written in fortran, mainly using the f77/g77 compiler by default. However, we now only have gfortran at JLab after the centos7 upgrade, so the compiler had to be changed everywhere to get our existing generators to work.

Changing all the instances of g77 to gfortran in a MG4 generator, and trying to get everything to compile, I get a lot of "Warning: Character length of actual argument shorter than of dummy argument", and is probably related the following problem, when generating events:


Working on subprocess:
    P1_e-n+_f+f-e-n+    cuts.f:21.28:

      pass_point = passcuts(p)
                            1
Warning: Rank mismatch in argument 'p' at (1) (rank-2 and scalar)
genps.f:54.53:

      call gen_mom(iconfig,mincfig,maxcfig,invar,wgt,x,p)
                                                     1
Warning: Actual argument contains too few elements for dummy argument 'x'

So there is a tensor/scalar rank mismatch that creates a zero cross section, and I don't know what's causing it. Everything builds, except Subprocesses, where genps.f is located:
"No rule to make target `nexternal.inc', needed by `genps.inc'"

So variables in there may not be getting set.

This generator is in
/scratch/hps/byale/MG/ap/MG_mini
on ifarm1402, if you'd like to try running it.
Do you know what could be causing this?


-Bradley



________________________________

Use REPLY-ALL to reply to list

To unsubscribe from the HPS-SOFTWARE list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=HPS-SOFTWARE&A=1

########################################################################
Use REPLY-ALL to reply to list

To unsubscribe from the HPS-SOFTWARE list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=HPS-SOFTWARE&A=1


Use REPLY-ALL to reply to list

To unsubscribe from the HPS-SOFTWARE list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=HPS-SOFTWARE&A=1



Use REPLY-ALL to reply to list

To unsubscribe from the HPS-SOFTWARE list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=HPS-SOFTWARE&A=1