Error when setting user dynamical scale

Asked by Maksym Ovchynnikov

Hi!

I am trying to set the user dynamical scale

mu = 1/2sqrt[(E^2 + pT^2)]

In setscales.f I add strings

     elseif(dynamical_scale_choice.eq.0) then
c E^2+pt^2=p(0)^2+p(1)^2+p(2)^2
          rscale=0d0
          do i=3,nexternal
          rscale=rscale+dsqrt(max(0d0,(P(0,i)*P(0,i)+P(1,i)*P(1,i)+P(2,i)*P(2,i))))
          enddo
          rscale=rscale/2d0

After changing the set of the dynamical scale in the run_card.dat to '0' and launching the process (p p > h, p p > h j) I get an error message:

Error detected in "generate_events run_02"
write debug file /home/movchynnikov/Downloads/MG5_aMC_v2_6_5/bin/higgs-spectrum/run_02_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/movchynnikov/Downloads/MG5_aMC_v2_6_5/bin/higgs-spectrum/SubProcesses/P0_gg_hg.
 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/
     setscales.f:48:9:

               rscale=0d0
              1
     Error: Unclassifiable statement at (1)
     make: *** [makefile:60: setscales.o] Error 1
     make: *** Waiting for unfinished jobs....

What can be a reason for such the error?

Question information

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

I guess you need a tutorial on fortran:
Here is a good one
https://web.stanford.edu/class/me200c/tutorial_77/

Look in particular at:
https://web.stanford.edu/class/me200c/tutorial_77/05_variables.html

I'm pretty sure you should get some IT guy which can help you on your university
to either have some lecture on fortran programming and/or to help you to debug such kind of issue.

Cheers,

Olivier

> On 28 Apr 2019, at 21:43, Maksym Ovchynnikov <email address hidden> wrote:
>
> New question #680518 on MadGraph5_aMC@NLO:
> https://answers.launchpad.net/mg5amcnlo/+question/680518
>
> Hi!
>
> I am trying to set the user dynamical scale
>
> mu = 1/2sqrt[(E^2 + pT^2)]
>
> In setscales.f I add strings
>
> elseif(dynamical_scale_choice.eq.0) then
> c E^2+pt^2=p(0)^2+p(1)^2+p(2)^2
> rscale=0d0
> do i=3,nexternal
> rscale=rscale+dsqrt(max(0d0,(P(0,i)*P(0,i)+P(1,i)*P(1,i)+P(2,i)*P(2,i))))
> enddo
> rscale=rscale/2d0
>
> After changing the set of the dynamical scale in the run_card.dat to '0' and launching the process (p p > h, p p > h j) I get an error message:
>
>
> Error detected in "generate_events run_02"
> write debug file /home/movchynnikov/Downloads/MG5_aMC_v2_6_5/bin/higgs-spectrum/run_02_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/movchynnikov/Downloads/MG5_aMC_v2_6_5/bin/higgs-spectrum/SubProcesses/P0_gg_hg.
> 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/
> setscales.f:48:9:
>
> rscale=0d0
> 1
> Error: Unclassifiable statement at (1)
> make: *** [makefile:60: setscales.o] Error 1
> make: *** Waiting for unfinished jobs....
>
>
> What can be a reason for such the error?
>
> --
> 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 Maksym Ovchynnikov for more information if necessary.

To post a message you must log in.