Form Factor in Method 2

Asked by Shao-Feng Ge on 2019-05-23

I exactly followed the Method 2 on

https://cp3.irmp.ucl.ac.be/projects/madgraph/wiki/FormFactors

Basically 3 modifications:

1) Modify vertices.py

========================================================================
V_43 = Vertex(name = 'V_43',
              particles = [ P.Nt__tilde__, P.Nt, P.a ],
              color = [ '1' ],
              lorentz = [ L.FFV0 ],
              couplings = {(0,0):C.GC_139})
========================================================================

by changing "L.FFV1" to "L.FFV0" since FFV1 is also used at other places but I just want to modify the vertex V_43.

2) Modify lorentz.py

========================================================================
FFV0 = Lorentz(name = 'FFV0',
               spins = [ 2, 2, 3 ],
               structure = 'FormFactor(P(-1,3)*P(-1,3)) * Gamma(3,2,1)')
========================================================================

by defining FFV0.

3) create functions.f in model directory

================================================
       double complex function FormFactor(t)

          double complex t, me, a, d
          include input.inc ! include all model parameter

          me = 0.000511
          a = 111d0 / (Ztgt**(1d0/3d0)) / me
          d = 0.164d0 / (Atgt*(2d0/3d0))

          FormFactor = (a*a*t / (1d0 + a*a*t) / (1d0 + t/d))**2
          return
       end
================================================

After doing these, I run MG5 to do simulation and get the error messages:

========================================================================
Error detected in "generate_events "
write debug file /home/gesf/document/Study/Manuscript/Experiments/Beam_Dump/code/MG5_darkphoton/run_01_tag_1_debug.log
If you need help with this issue please contact us on https://answers.launchpad.net/mg5amcnlo
MadGraph5Error : A compilation Error occurs when trying to compile /home/gesf/document/Study/Manuscript/Experiments/Beam_Dump/code/MG5_darkphoton/SubProcesses/P1_emnt_emdpnt.
        The compilation fails with the following output message:
            gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -w -c driver.f -I../../Source/
            gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -w -c myamp.f -I../../Source/
            gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -w -c genps.f -I../../Source/
            gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -w -c unwgt.f -I../../Source/
            gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -w -c setcuts.f -I../../Source/
            gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -w -c get_color.f -I../../Source/
            gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -w -c cuts.f -I../../Source/
            gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -w -c cluster.f -I../../Source/
            gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -w -c reweight.f -I../../Source/
            gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -w -c initcluster.f -I../../Source/
            gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -w -c addmothers.f -I../../Source/
            gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -w -c setscales.f -I../../Source/
            gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -w -c dummy_fct.f -I../../Source/
            gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -w -c auto_dsig.f -I../../Source/
            gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -w -c auto_dsig1.f -I../../Source/
            gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -w -c matrix1.f -I../../Source/
            gfortran -o madevent driver.o myamp.o genps.o unwgt.o setcuts.o get_color.o cuts.o cluster.o reweight.o initcluster.o addmothers.o setscales.o idenparts.o dummy_fct.o auto_dsig.o auto_dsig1.o matrix1.o -L../../lib/ -ldhelas -ldsample -lmodel -lgeneric -lpdf -lcernlib -lbias -lstdc++
            /usr/bin/ld: ../../lib//libdhelas.a(FFV0P0_3.o): in function `ffv0p0_3_':
            FFV0P0_3.f:(.text+0x9e): undefined reference to `formfactor_'
            collect2: error: ld returned 1 exit status
            make: *** [makefile:44: madevent] Error 1

        Please try to fix this compilations issue and retry.
        Help might be found at https://answers.launchpad.net/mg5amcnlo.
        If you think that this is a bug, you can report this at https://bugs.launchpad.net/mg5amcnlo
========================================================================

I did notice in this section of Method 2, "AAA" appeared. But I have not idea why it would appear here since it didn't appear in other places of this section.

See if you can give me a quick solution. Thanks.

Best, Shao-Feng

Question information

Language:
English Edit question
Status:
Answered
For:
MadGraph5_aMC@NLO Edit question
Assignee:
No assignee Edit question
Last query:
2019-05-23
Last reply:
2019-05-23

Where did you put the file functions.f ?
this should be in a Fortran directory (within the UFO model)

Cheers,

Olivier

> On 23 May 2019, at 10:37, Shao-Feng Ge <email address hidden> wrote:
>
> New question #681018 on MadGraph5_aMC@NLO:
> https://answers.launchpad.net/mg5amcnlo/+question/681018
>
> I exactly followed the Method 2 on
>
> https://cp3.irmp.ucl.ac.be/projects/madgraph/wiki/FormFactors
>
> Basically 3 modifications:
>
> 1) Modify vertices.py
>
> ========================================================================
> V_43 = Vertex(name = 'V_43',
> particles = [ P.Nt__tilde__, P.Nt, P.a ],
> color = [ '1' ],
> lorentz = [ L.FFV0 ],
> couplings = {(0,0):C.GC_139})
> ========================================================================
>
> by changing "L.FFV1" to "L.FFV0" since FFV1 is also used at other places but I just want to modify the vertex V_43.
>
> 2) Modify lorentz.py
>
> ========================================================================
> FFV0 = Lorentz(name = 'FFV0',
> spins = [ 2, 2, 3 ],
> structure = 'FormFactor(P(-1,3)*P(-1,3)) * Gamma(3,2,1)')
> ========================================================================
>
> by defining FFV0.
>
> 3) create functions.f in model directory
>
> ================================================
> double complex function FormFactor(t)
>
> double complex t, me, a, d
> include input.inc ! include all model parameter
>
> me = 0.000511
> a = 111d0 / (Ztgt**(1d0/3d0)) / me
> d = 0.164d0 / (Atgt*(2d0/3d0))
>
> FormFactor = (a*a*t / (1d0 + a*a*t) / (1d0 + t/d))**2
> return
> end
> ================================================
>
> After doing these, I run MG5 to do simulation and get the error messages:
>
> ========================================================================
> Error detected in "generate_events "
> write debug file /home/gesf/document/Study/Manuscript/Experiments/Beam_Dump/code/MG5_darkphoton/run_01_tag_1_debug.log
> If you need help with this issue please contact us on https://answers.launchpad.net/mg5amcnlo
> MadGraph5Error : A compilation Error occurs when trying to compile /home/gesf/document/Study/Manuscript/Experiments/Beam_Dump/code/MG5_darkphoton/SubProcesses/P1_emnt_emdpnt.
> The compilation fails with the following output message:
> gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -w -c driver.f -I../../Source/
> gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -w -c myamp.f -I../../Source/
> gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -w -c genps.f -I../../Source/
> gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -w -c unwgt.f -I../../Source/
> gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -w -c setcuts.f -I../../Source/
> gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -w -c get_color.f -I../../Source/
> gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -w -c cuts.f -I../../Source/
> gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -w -c cluster.f -I../../Source/
> gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -w -c reweight.f -I../../Source/
> gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -w -c initcluster.f -I../../Source/
> gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -w -c addmothers.f -I../../Source/
> gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -w -c setscales.f -I../../Source/
> gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -w -c dummy_fct.f -I../../Source/
> gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -w -c auto_dsig.f -I../../Source/
> gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -w -c auto_dsig1.f -I../../Source/
> gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -w -c matrix1.f -I../../Source/
> gfortran -o madevent driver.o myamp.o genps.o unwgt.o setcuts.o get_color.o cuts.o cluster.o reweight.o initcluster.o addmothers.o setscales.o idenparts.o dummy_fct.o auto_dsig.o auto_dsig1.o matrix1.o -L../../lib/ -ldhelas -ldsample -lmodel -lgeneric -lpdf -lcernlib -lbias -lstdc++
> /usr/bin/ld: ../../lib//libdhelas.a(FFV0P0_3.o): in function `ffv0p0_3_':
> FFV0P0_3.f:(.text+0x9e): undefined reference to `formfactor_'
> collect2: error: ld returned 1 exit status
> make: *** [makefile:44: madevent] Error 1
>
> Please try to fix this compilations issue and retry.
> Help might be found at https://answers.launchpad.net/mg5amcnlo.
> If you think that this is a bug, you can report this at https://bugs.launchpad.net/mg5amcnlo
> ========================================================================
>
> I did notice in this section of Method 2, "AAA" appeared. But I have not idea why it would appear here since it didn't appear in other places of this section.
>
> See if you can give me a quick solution. Thanks.
>
> Best, Shao-Feng
>
> --
> You received this question notification because you are an answer
> contact for MadGraph5_aMC@NLO.

Shao-Feng Ge (gesf02-9) said : #2

Thanks. I did miss that. But after moving it to a Fortran sub-folder, the error message becomes even longer:

============================================
Error detected in "generate_events "
write debug file /home/gesf/document/Study/Manuscript/Experiments/Beam_Dump/code/MG5_darkphoton/run_01_tag_1_debug.log
If you need help with this issue please contact us on https://answers.launchpad.net/mg5amcnlo
MadGraph5Error : A compilation Error occurs when trying to compile /home/gesf/document/Study/Manuscript/Experiments/Beam_Dump/code/MG5_darkphoton/Source.
        The compilation fails with the following output message:
            gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -c -o StringCast.o StringCast.f
            gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -c -o ranmar.o ranmar.f
            gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -c -o alfas_functions.o alfas_functions.f
            gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -c -o transpole.o transpole.f
            gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -c -o invarients.o invarients.f
            gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -c -o hfill.o hfill.f
            gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -c -o pawgraphs.o pawgraphs.f
            gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -c -o ran1.o ran1.f
            gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -c -o rw_events.o rw_events.f
            gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -c -o rw_routines.o rw_routines.f
            gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -c -o kin_functions.o kin_functions.f
            gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -c -o open_file.o open_file.f
            gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -c -o basecode.o basecode.f
            gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -c -o setrun.o setrun.f
            gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -c -o run_printout.o run_printout.f
            gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -c -o dgauss.o dgauss.f
            gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -c -o readgrid.o readgrid.f
            gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -c -o getissud.o getissud.f
            cd DHELAS; make
            make[1]: warning: jobserver unavailable: using -j1. Add '+' to parent make rule.
            make[1]: Entering directory '/home/gesf/document/Study/Manuscript/Experiments/Beam_Dump/code/MG5_darkphoton/Source/DHELAS'
            cd PDF; make
            gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -c -o aloha_functions.o aloha_functions.f
            make[1]: warning: jobserver unavailable: using -j1. Add '+' to parent make rule.
            make[1]: Entering directory '/home/gesf/document/Study/Manuscript/Experiments/Beam_Dump/code/MG5_darkphoton/Source/PDF'
            cd MODEL; make
            cd CERNLIB; make
            make[1]: warning: jobserver unavailable: using -j1. Add '+' to parent make rule.
            make[1]: Entering directory '/home/gesf/document/Study/Manuscript/Experiments/Beam_Dump/code/MG5_darkphoton/Source/MODEL'
            make[1]: warning: jobserver unavailable: using -j1. Add '+' to parent make rule.
            gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -c -o Ctq6Pdf.o Ctq6Pdf.f
            make[1]: Entering directory '/home/gesf/document/Study/Manuscript/Experiments/Beam_Dump/code/MG5_darkphoton/Source/CERNLIB'
            gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -c -o couplings.o couplings.f
            gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -c -o abend.o abend.f
            gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -c -o dlsqp2.o dlsqp2.f
            gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -c -o lha_read.o lha_read.f
            gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -c -o lenocc.o lenocc.f
            gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -c -o pdfwrap.o pdfwrap.f
            gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -c -o opendata.o opendata.f
            gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -c -o mtlprt.o mtlprt.f
            gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -c -o pdf.o pdf.f
            gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -c -o printout.o printout.f
            gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -c -o mtlset.o mtlset.f
            gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -c -o PhotonFlux.o PhotonFlux.f
            gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -c -o radmul.o radmul.f
            gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -c -o pdg2pdf.o pdg2pdf.f
            gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -c -o rw_para.o rw_para.f
            ar cru ../../lib/libcernlib.a abend.o dlsqp2.o lenocc.o mtlprt.o mtlset.o radmul.o
            ranlib ../../lib/libcernlib.a
            make[1]: Leaving directory '/home/gesf/document/Study/Manuscript/Experiments/Beam_Dump/code/MG5_darkphoton/Source/CERNLIB'
            cd BIAS/dummy; make
            gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -c -o model_functions.o model_functions.f
            make[1]: warning: jobserver unavailable: using -j1. Add '+' to parent make rule.
            make[1]: Entering directory '/home/gesf/document/Study/Manuscript/Experiments/Beam_Dump/code/MG5_darkphoton/Source/BIAS/dummy'
            gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -c -o NNPDFDriver.o NNPDFDriver.f
            gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -c -o dummy.o dummy.f
            model_functions.f:157:10:

                       include input.inc ! include all model parameter
                      1
            Error: Unclassifiable statement at (1)
            make[1]: *** [<builtin>: model_functions.o] Error 1
            make[1]: Leaving directory '/home/gesf/document/Study/Manuscript/Experiments/Beam_Dump/code/MG5_darkphoton/Source/MODEL'
            make: *** [makefile:54: ../lib/libmodel.a] Error 2
            make: *** Waiting for unfinished jobs....
            gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -c -o FFV1_2.o FFV1_2.f
            ar cru ../../../lib/libbias.a dummy.o
            ranlib ../../../lib/libbias.a
            make[1]: Leaving directory '/home/gesf/document/Study/Manuscript/Experiments/Beam_Dump/code/MG5_darkphoton/Source/BIAS/dummy'
            gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -c -o FFV1_1.o FFV1_1.f
            ar cru ../../lib/libpdf.a Ctq6Pdf.o pdfwrap.o opendata.o pdf.o PhotonFlux.o pdg2pdf.o NNPDFDriver.o
            gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -c -o FFV1_0.o FFV1_0.f
            ranlib ../../lib/libpdf.a
            make[1]: Leaving directory '/home/gesf/document/Study/Manuscript/Experiments/Beam_Dump/code/MG5_darkphoton/Source/PDF'
            gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -c -o FFV0P0_3.o FFV0P0_3.f
            ar cru ../../lib/libdhelas.a aloha_functions.o FFV1_2.o FFV1_1.o FFV1_0.o FFV0P0_3.o
            ranlib ../../lib/libdhelas.a
            make[1]: Leaving directory '/home/gesf/document/Study/Manuscript/Experiments/Beam_Dump/code/MG5_darkphoton/Source/DHELAS'

        Please try to fix this compilations issue and retry.
        Help might be found at https://answers.launchpad.net/mg5amcnlo.
        If you think that this is a bug, you can report this at https://bugs.launchpad.net/mg5amcnlo
============================================

This is a compilation error related to your fortran function.
You should be able to debug that alone.

Cheers,

Olivier

> On 23 May 2019, at 13:33, Shao-Feng Ge <email address hidden> wrote:
>
> Question #681018 on MadGraph5_aMC@NLO changed:
> https://answers.launchpad.net/mg5amcnlo/+question/681018
>
> Status: Answered => Open
>
> Shao-Feng Ge is still having a problem:
> Thanks. I did miss that. But after moving it to a Fortran sub-folder,
> the error message becomes even longer:
>
> ============================================
> Error detected in "generate_events "
> write debug file /home/gesf/document/Study/Manuscript/Experiments/Beam_Dump/code/MG5_darkphoton/run_01_tag_1_debug.log
> If you need help with this issue please contact us on https://answers.launchpad.net/mg5amcnlo
> MadGraph5Error : A compilation Error occurs when trying to compile /home/gesf/document/Study/Manuscript/Experiments/Beam_Dump/code/MG5_darkphoton/Source.
> The compilation fails with the following output message:
> gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -c -o StringCast.o StringCast.f
> gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -c -o ranmar.o ranmar.f
> gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -c -o alfas_functions.o alfas_functions.f
> gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -c -o transpole.o transpole.f
> gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -c -o invarients.o invarients.f
> gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -c -o hfill.o hfill.f
> gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -c -o pawgraphs.o pawgraphs.f
> gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -c -o ran1.o ran1.f
> gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -c -o rw_events.o rw_events.f
> gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -c -o rw_routines.o rw_routines.f
> gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -c -o kin_functions.o kin_functions.f
> gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -c -o open_file.o open_file.f
> gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -c -o basecode.o basecode.f
> gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -c -o setrun.o setrun.f
> gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -c -o run_printout.o run_printout.f
> gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -c -o dgauss.o dgauss.f
> gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -c -o readgrid.o readgrid.f
> gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -c -o getissud.o getissud.f
> cd DHELAS; make
> make[1]: warning: jobserver unavailable: using -j1. Add '+' to parent make rule.
> make[1]: Entering directory '/home/gesf/document/Study/Manuscript/Experiments/Beam_Dump/code/MG5_darkphoton/Source/DHELAS'
> cd PDF; make
> gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -c -o aloha_functions.o aloha_functions.f
> make[1]: warning: jobserver unavailable: using -j1. Add '+' to parent make rule.
> make[1]: Entering directory '/home/gesf/document/Study/Manuscript/Experiments/Beam_Dump/code/MG5_darkphoton/Source/PDF'
> cd MODEL; make
> cd CERNLIB; make
> make[1]: warning: jobserver unavailable: using -j1. Add '+' to parent make rule.
> make[1]: Entering directory '/home/gesf/document/Study/Manuscript/Experiments/Beam_Dump/code/MG5_darkphoton/Source/MODEL'
> make[1]: warning: jobserver unavailable: using -j1. Add '+' to parent make rule.
> gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -c -o Ctq6Pdf.o Ctq6Pdf.f
> make[1]: Entering directory '/home/gesf/document/Study/Manuscript/Experiments/Beam_Dump/code/MG5_darkphoton/Source/CERNLIB'
> gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -c -o couplings.o couplings.f
> gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -c -o abend.o abend.f
> gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -c -o dlsqp2.o dlsqp2.f
> gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -c -o lha_read.o lha_read.f
> gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -c -o lenocc.o lenocc.f
> gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -c -o pdfwrap.o pdfwrap.f
> gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -c -o opendata.o opendata.f
> gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -c -o mtlprt.o mtlprt.f
> gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -c -o pdf.o pdf.f
> gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -c -o printout.o printout.f
> gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -c -o mtlset.o mtlset.f
> gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -c -o PhotonFlux.o PhotonFlux.f
> gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -c -o radmul.o radmul.f
> gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -c -o pdg2pdf.o pdg2pdf.f
> gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -c -o rw_para.o rw_para.f
> ar cru ../../lib/libcernlib.a abend.o dlsqp2.o lenocc.o mtlprt.o mtlset.o radmul.o
> ranlib ../../lib/libcernlib.a
> make[1]: Leaving directory '/home/gesf/document/Study/Manuscript/Experiments/Beam_Dump/code/MG5_darkphoton/Source/CERNLIB'
> cd BIAS/dummy; make
> gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -c -o model_functions.o model_functions.f
> make[1]: warning: jobserver unavailable: using -j1. Add '+' to parent make rule.
> make[1]: Entering directory '/home/gesf/document/Study/Manuscript/Experiments/Beam_Dump/code/MG5_darkphoton/Source/BIAS/dummy'
> gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -c -o NNPDFDriver.o NNPDFDriver.f
> gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -c -o dummy.o dummy.f
> model_functions.f:157:10:
>
> include input.inc ! include all model parameter
> 1
> Error: Unclassifiable statement at (1)
> make[1]: *** [<builtin>: model_functions.o] Error 1
> make[1]: Leaving directory '/home/gesf/document/Study/Manuscript/Experiments/Beam_Dump/code/MG5_darkphoton/Source/MODEL'
> make: *** [makefile:54: ../lib/libmodel.a] Error 2
> make: *** Waiting for unfinished jobs....
> gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -c -o FFV1_2.o FFV1_2.f
> ar cru ../../../lib/libbias.a dummy.o
> ranlib ../../../lib/libbias.a
> make[1]: Leaving directory '/home/gesf/document/Study/Manuscript/Experiments/Beam_Dump/code/MG5_darkphoton/Source/BIAS/dummy'
> gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -c -o FFV1_1.o FFV1_1.f
> ar cru ../../lib/libpdf.a Ctq6Pdf.o pdfwrap.o opendata.o pdf.o PhotonFlux.o pdg2pdf.o NNPDFDriver.o
> gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -c -o FFV1_0.o FFV1_0.f
> ranlib ../../lib/libpdf.a
> make[1]: Leaving directory '/home/gesf/document/Study/Manuscript/Experiments/Beam_Dump/code/MG5_darkphoton/Source/PDF'
> gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -c -o FFV0P0_3.o FFV0P0_3.f
> ar cru ../../lib/libdhelas.a aloha_functions.o FFV1_2.o FFV1_1.o FFV1_0.o FFV0P0_3.o
> ranlib ../../lib/libdhelas.a
> make[1]: Leaving directory '/home/gesf/document/Study/Manuscript/Experiments/Beam_Dump/code/MG5_darkphoton/Source/DHELAS'
>
> Please try to fix this compilations issue and retry.
> Help might be found at https://answers.launchpad.net/mg5amcnlo.
> If you think that this is a bug, you can report this at https://bugs.launchpad.net/mg5amcnlo
> ============================================
>
> --
> You received this question notification because you are an answer
> contact for MadGraph5_aMC@NLO.

Shao-Feng Ge (gesf02-9) said : #4

I see. The include statement should be

include `input.inc`

instead of the original version in Method 2:

include input.inc

which you may want to mention on the webpage

https://cp3.irmp.ucl.ac.be/projects/madgraph/wiki/FormFactors

BTW, after including the form factor, the it takes very long time to finish and the estimated cross section seems way too large. Any way to check if the FormFactor function is actually functioning correctly? I have tried to print the internal variables

print *, me,t,a,d,FormFactor

but it doesn't show up on screen at all.

Hi,

you should look at the log file present in the directory
SubProcesses/P0_XXXXXX/G1

this is where you will see the printout

Cheers,

Olivier

> On 23 May 2019, at 14:52, Shao-Feng Ge <email address hidden> wrote:
>
> Question #681018 on MadGraph5_aMC@NLO changed:
> https://answers.launchpad.net/mg5amcnlo/+question/681018
>
> Status: Answered => Open
>
> Shao-Feng Ge is still having a problem:
> I see. The include statement should be
>
> include `input.inc`
>
> instead of the original version in Method 2:
>
> include input.inc
>
> which you may want to mention on the webpage
>
> https://cp3.irmp.ucl.ac.be/projects/madgraph/wiki/FormFactors
>
> BTW, after including the form factor, the it takes very long time to
> finish and the estimated cross section seems way too large. Any way to
> check if the FormFactor function is actually functioning correctly? I
> have tried to print the internal variables
>
> print *, me,t,a,d,FormFactor
>
> but it doesn't show up on screen at all.
>
> --
> You received this question notification because you are an answer
> contact for MadGraph5_aMC@NLO.

Can you help with this problem?

Provide an answer of your own, or ask Shao-Feng Ge for more information if necessary.

To post a message you must log in.