From 6fdbdaf5b676a7d448fec195058d59ffe46a2a65 Mon Sep 17 00:00:00 2001 From: iarspider Date: Sun, 16 Aug 2020 19:07:14 +0200 Subject: New packages: madgraph, syscalc, collier, gosam-contrib (#17601) * Add Collier and SysCalc recipes * Remove extra syscalc version * Build collier with -j1 for @:1.2.4 * Add recipe for gosam-contrib * Update gosam-contrib recipe with 'provides' * Madgraph recipe, first version * Finalize madgraph recipe + flake8 * Make py2 version of madgraph default; fix hash for syscalc; fix patch * Handle virtual packages (#3) * Update package.py * Update packages.yaml * Remove virtual packages - pt. 1 * Remove virtual packages - pt. 2 * Changes from review - pt. 1 * Changes from code review - pt. 2 * Update var/spack/repos/builtin/packages/collier/package.py Co-authored-by: Adam J. Stewart * Update var/spack/repos/builtin/packages/madgraph5amc/package.py Co-authored-by: Adam J. Stewart * Add hash for version 2.7.2 (available in our private mirror) * Fixes for 2.7.3 family * Patches for 2.7.3{.py3,}{.atlas,} * Fix hash of syscalc * Hack to fix concretization (2.7.3 matches 2.7.3.py3) * Add conflict statement (reported to devs) * Apply suggestions from code review Co-authored-by: Adam J. Stewart * Update package.py * Delete madgraph5amc-2.7.2.atlas.patch * Delete madgraph5amc-2.7.2.patch * Update package.py * Apply suggestions from code review Co-authored-by: Adam J. Stewart Co-authored-by: iarspider Co-authored-by: Adam J. Stewart --- .../repos/builtin/packages/collier/package.py | 30 + .../builtin/packages/gosam-contrib/package.py | 20 + .../madgraph5amc/madgraph5amc-2.7.3.atlas.patch | 1025 ++++++++++++++++++++ .../packages/madgraph5amc/madgraph5amc-2.7.3.patch | 23 + .../repos/builtin/packages/madgraph5amc/package.py | 111 +++ .../repos/builtin/packages/syscalc/package.py | 29 + 6 files changed, 1238 insertions(+) create mode 100644 var/spack/repos/builtin/packages/collier/package.py create mode 100644 var/spack/repos/builtin/packages/gosam-contrib/package.py create mode 100644 var/spack/repos/builtin/packages/madgraph5amc/madgraph5amc-2.7.3.atlas.patch create mode 100644 var/spack/repos/builtin/packages/madgraph5amc/madgraph5amc-2.7.3.patch create mode 100644 var/spack/repos/builtin/packages/madgraph5amc/package.py create mode 100644 var/spack/repos/builtin/packages/syscalc/package.py (limited to 'var') diff --git a/var/spack/repos/builtin/packages/collier/package.py b/var/spack/repos/builtin/packages/collier/package.py new file mode 100644 index 0000000000..e1d6245b35 --- /dev/null +++ b/var/spack/repos/builtin/packages/collier/package.py @@ -0,0 +1,30 @@ +# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other +# Spack Project Developers. See the top-level COPYRIGHT file for details. +# +# SPDX-License-Identifier: (Apache-2.0 OR MIT) + +from spack import * + + +class Collier(CMakePackage): + """COLLIER: A Complex One-Loop LIbrary with Extended Regularizations """ + + homepage = "https://collier.hepforge.org" + url = "https://collier.hepforge.org/downloads/?f=collier-1.2.5.tar.gz" + + version('1.2.5', sha256='3ec58a975ff0c3b1ca870bc38973476c923ff78fd3dd5850e296037852b94a8b') + version('1.2.4', sha256='92ae8f61461b232fbd47a6d8e832e1a726d504f9390b7edc49a68fceedff8857') + version('1.2.3', sha256='e6f72df223654df59113b0067a4bebe9f8c20227bb81371d3193e1557bdf56fb') + version('1.2.2', sha256='140029e36635565262719124dcda2fa7d66fd468442cb268f6da16d4cbbab29a') + version('1.2.1', sha256='7f5bc81a00de071e2451ba3e11cad726df0ae18bd973dba4aeba165897d48c2d') + version('1.2.0', sha256='e5b2def953d7f9f4f2cacd4616aa65c77e2b9adf7eed2ca3531b993e529fbafd') + version('1.1', sha256='80fd54e2c30029d3d7d646738ae9469ad3a6f5ea7aa1179b951030df048e36bc') + version('1.0', sha256='54f40c1ed07a6829230af400abfe48791e74e56eac2709c0947cec3410a4473d') + + @property + def parallel(self): + return not self.spec.satisfies('@:1.2.4') + + def cmake_args(self): + args = ['-Dstatic=ON'] + return args diff --git a/var/spack/repos/builtin/packages/gosam-contrib/package.py b/var/spack/repos/builtin/packages/gosam-contrib/package.py new file mode 100644 index 0000000000..ad45f5b03e --- /dev/null +++ b/var/spack/repos/builtin/packages/gosam-contrib/package.py @@ -0,0 +1,20 @@ +# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other +# Spack Project Developers. See the top-level COPYRIGHT file for details. +# +# SPDX-License-Identifier: (Apache-2.0 OR MIT) + +from spack import * + + +class GosamContrib(AutotoolsPackage): + """Additional libraries for GoSam MC generator""" + + homepage = "https://gosam.hepforge.org" + url = "https://gosam.hepforge.org/downloads/?f=gosam-contrib-2.0.tar.gz" + + version('2.0', sha256='c05beceea74324eb51c1049773095e2cb0c09c8c909093ee913d8b0da659048d') + version('1.0', sha256='a29d4232d9190710246abc2ed97fdcd8790ce83580f56a360f3456b0377c40ec') + + def configure_args(self): + args = ["FFLAGS=-std=legacy"] + return args diff --git a/var/spack/repos/builtin/packages/madgraph5amc/madgraph5amc-2.7.3.atlas.patch b/var/spack/repos/builtin/packages/madgraph5amc/madgraph5amc-2.7.3.atlas.patch new file mode 100644 index 0000000000..c2b62eaa46 --- /dev/null +++ b/var/spack/repos/builtin/packages/madgraph5amc/madgraph5amc-2.7.3.atlas.patch @@ -0,0 +1,1025 @@ +--- models/sm/restrict_ckm.dat 2015-10-26 02:18:52.000000001 +0100 ++++ models/sm/restrict_ckm.dat 2016-05-03 22:54:19.000000001 +0200 +@@ -6,9 +6,9 @@ + ## INFORMATION FOR SMINPUTS + ################################### + Block SMINPUTS +- 1 1.325070e+02 # aEWM1 +- 2 1.166390e-05 # Gf +- 3 1.180000e-01 # aS ++ 1 1.32348905e+02 # aEWM1 ++ 2 1.16637000e-05 # Gf ++ 3 1.18400000e-01 # aS + + ################################### + ## INFORMATION FOR MASS +@@ -16,30 +16,30 @@ + Block MASS + 4 0.000000e+00 # MC + 5 4.700000e+00 # MB +- 6 1.730000e+02 # MT ++ 6 1.725000e+02 # MT + 11 0.000000e+00 # Me + 13 0.000000e+00 # MM +- 15 1.777000e+00 # MTA +- 23 9.118800e+01 # MZ ++ 15 1.776820e+00 # MTA ++ 23 9.118760e+01 # MZ + 25 1.250000e+02 # MH + + ################################### + ## INFORMATION FOR DECAY + ################################### +-DECAY 6 1.491500E+00 ++DECAY 6 1.32000000E+00 + DECAY 15 0.000000e+00 +-DECAY 23 2.441404e+00 +-DECAY 24 2.047600e+00 ++DECAY 23 2.49520000e+00 ++DECAY 24 2.085000e+00 + DECAY 25 6.38233934e-03 + + ################################### + ## INFORMATION FOR WOLFENSTEIN + ################################### + Block Wolfenstein +- 1 2.253000e-01 # lamWS +- 2 8.080000e-01 # AWS +- 3 1.320000e-01 # rhoWS +- 4 3.410000e-01 # etaWS ++ 1 2.257000e-01 # lamWS ++ 2 8.140000e-01 # AWS ++ 3 1.350000e-01 # rhoWS ++ 4 3.490000e-01 # etaWS + + ################################### + ## INFORMATION FOR YUKAWA +@@ -47,7 +47,7 @@ + Block YUKAWA + 4 0.000000e+00 # ymc + 5 4.700000e+00 # ymb +- 6 1.730000e+02 # ymt ++ 6 1.725000e+02 # ymt + 11 0.000000e+00 # yme + 13 0.000000e+00 # ymm + 15 1.777000e+00 # ymtau +--- models/sm/restrict_c_mass.dat 2015-10-26 02:18:52.000000001 +0100 ++++ models/sm/restrict_c_mass.dat 2016-05-03 22:54:19.000000001 +0200 +@@ -6,9 +6,9 @@ + ## INFORMATION FOR SMINPUTS + ################################### + Block SMINPUTS +- 1 1.325070e+02 # aEWM1 +- 2 1.166390e-05 # Gf +- 3 1.180000e-01 # aS ++ 1 1.32348905e+02 # aEWM1 ++ 2 1.16637000e-05 # Gf ++ 3 1.18400000e-01 # aS + + ################################### + ## INFORMATION FOR MASS +@@ -16,20 +16,20 @@ + Block MASS + 4 1.550000e+00 # MC + 5 4.700000e+00 # MB +- 6 1.730000e+02 # MT ++ 6 1.725000e+02 # MT + 11 0.000000e+00 # Me + 13 0.000000e+00 # MM +- 15 1.777000e+00 # MTA +- 23 9.118800e+01 # MZ ++ 15 1.776820e+00 # MTA ++ 23 9.118760e+01 # MZ + 25 1.250000e+02 # MH + + ################################### + ## INFORMATION FOR DECAY + ################################### +-DECAY 6 1.491500E+00 ++DECAY 6 1.32000000E+00 + DECAY 15 0.000000e+00 +-DECAY 23 2.441404e+00 +-DECAY 24 2.047600e+00 ++DECAY 23 2.49520000e+00 ++DECAY 24 2.085000e+00 + DECAY 25 6.38233934e-03 + + ################################### +@@ -47,7 +47,7 @@ + Block YUKAWA + 4 1.550000e+00 # ymc + 5 4.700000e+00 # ymb +- 6 1.730000e+02 # ymt ++ 6 1.725000e+02 # ymt + 11 0.000000e+00 # yme + 13 0.000000e+00 # ymm + 15 1.777000e+00 # ymtau +--- models/sm/restrict_default.dat 2015-10-26 02:18:52.000000001 +0100 ++++ models/sm/restrict_default.dat 2016-05-03 22:54:19.000000001 +0200 +@@ -6,9 +6,9 @@ + ## INFORMATION FOR SMINPUTS + ################################### + Block SMINPUTS +- 1 1.325070e+02 # aEWM1 +- 2 1.166390e-05 # Gf +- 3 1.180000e-01 # aS ++ 1 1.32348905e+02 # aEWM1 ++ 2 1.16637000e-05 # Gf ++ 3 1.18400000e-01 # aS + + ################################### + ## INFORMATION FOR MASS +@@ -16,20 +16,20 @@ + Block MASS + 4 0.000000e+00 # MC + 5 4.700000e+00 # MB +- 6 1.730000e+02 # MT ++ 6 1.725000e+02 # MT + 11 0.000000e+00 # Me + 13 0.000000e+00 # MM +- 15 1.777000e+00 # MTA +- 23 9.118800e+01 # MZ ++ 15 1.776820e+00 # MTA ++ 23 9.118760e+01 # MZ + 25 1.250000e+02 # MH + + ################################### + ## INFORMATION FOR DECAY + ################################### +-DECAY 6 1.491500E+00 ++DECAY 6 1.32000000E+00 + DECAY 15 0.000000e+00 +-DECAY 23 2.441404e+00 +-DECAY 24 2.047600e+00 ++DECAY 23 2.49520000e+00 ++DECAY 24 2.085000e+00 + DECAY 25 6.38233934e-03 + + ################################### +@@ -47,7 +47,7 @@ + Block YUKAWA + 4 0.000000e+00 # ymc + 5 4.700000e+00 # ymb +- 6 1.730000e+02 # ymt ++ 6 1.725000e+02 # ymt + 11 0.000000e+00 # yme + 13 0.000000e+00 # ymm + 15 1.777000e+00 # ymtau +--- models/sm/restrict_lepton_masses.dat 2015-10-26 02:18:52.000000001 +0100 ++++ models/sm/restrict_lepton_masses.dat 2016-05-03 22:54:19.000000001 +0200 +@@ -6,9 +6,9 @@ + ## INFORMATION FOR SMINPUTS + ################################### + Block SMINPUTS +- 1 1.325070e+02 # aEWM1 +- 2 1.166390e-05 # Gf +- 3 1.180000e-01 # aS ++ 1 1.32348905e+02 # aEWM1 ++ 2 1.16637000e-05 # Gf ++ 3 1.18400000e-01 # aS + + ################################### + ## INFORMATION FOR MASS +@@ -16,20 +16,20 @@ + Block MASS + 4 0.000000e+00 # MC + 5 4.700000e+00 # MB +- 6 1.730000e+02 # MT ++ 6 1.725000e+02 # MT + 11 5.110000e-04 # Me + 13 1.056600e-01 # MM +- 15 1.777000e+00 # MTA +- 23 9.118800e+01 # MZ ++ 15 1.776820e+00 # MTA ++ 23 9.118760e+01 # MZ + 25 1.250000e+02 # MH + + ################################### + ## INFORMATION FOR DECAY + ################################### +-DECAY 6 1.491500E+00 ++DECAY 6 1.32000000E+00 + DECAY 15 2.270000e-12 +-DECAY 23 2.441404e+00 +-DECAY 24 2.047600e+00 ++DECAY 23 2.49520000e+00 ++DECAY 24 2.085000e+00 + DECAY 25 6.38233934e-03 + + ################################### +@@ -47,7 +47,7 @@ + Block YUKAWA + 4 0.000000e+00 # ymc + 5 4.700000e+00 # ymb +- 6 1.730000e+02 # ymt ++ 6 1.725000e+02 # ymt + 11 5.110000e-04 # yme + 13 1.056600e-01 # ymm + 15 1.777000e+00 # ymtau +--- models/sm/restrict_no_b_mass.dat 2015-10-26 02:18:52.000000001 +0100 ++++ models/sm/restrict_no_b_mass.dat 2016-05-03 22:54:19.000000001 +0200 +@@ -6,9 +6,9 @@ + ## INFORMATION FOR SMINPUTS + ################################### + Block SMINPUTS +- 1 1.325070e+02 # aEWM1 +- 2 1.166390e-05 # Gf +- 3 1.180000e-01 # aS ++ 1 1.32348905e+02 # aEWM1 ++ 2 1.16637000e-05 # Gf ++ 3 1.18400000e-01 # aS + + ################################### + ## INFORMATION FOR MASS +@@ -16,20 +16,20 @@ + Block MASS + 4 0.000000e+00 # MC + 5 0.000000e+00 # MB +- 6 1.730000e+02 # MT ++ 6 1.725000e+02 # MT + 11 0.000000e+00 # Me + 13 0.000000e+00 # MM +- 15 1.777000e+00 # MTA +- 23 9.118800e+01 # MZ ++ 15 1.776820e+00 # MTA ++ 23 9.118760e+01 # MZ + 25 1.250000e+02 # MH + + ################################### + ## INFORMATION FOR DECAY + ################################### +-DECAY 6 1.491500E+00 ++DECAY 6 1.32000000E+00 + DECAY 15 0.000000e+00 +-DECAY 23 2.441404e+00 +-DECAY 24 2.047600e+00 ++DECAY 23 2.49520000e+00 ++DECAY 24 2.085000e+00 + DECAY 25 6.38233934e-03 + + ################################### +@@ -47,7 +47,7 @@ + Block YUKAWA + 4 0.000000e+00 # ymc + 5 0.000000e+00 # ymb +- 6 1.730000e+02 # ymt ++ 6 1.725000e+02 # ymt + 11 0.000000e+00 # yme + 13 0.000000e+00 # ymm + 15 1.777000e+00 # ymtau +--- models/sm/restrict_no_masses.dat 2015-10-26 02:18:52.000000001 +0100 ++++ models/sm/restrict_no_masses.dat 2016-05-03 22:54:19.000000001 +0200 +@@ -6,9 +6,9 @@ + ## INFORMATION FOR SMINPUTS + ################################### + Block SMINPUTS +- 1 1.325070e+02 # aEWM1 +- 2 1.166390e-05 # Gf +- 3 1.180000e-01 # aS ++ 1 1.32348905e+02 # aEWM1 ++ 2 1.16637000e-05 # Gf ++ 3 1.18400000e-01 # aS + + ################################### + ## INFORMATION FOR MASS +@@ -16,20 +16,20 @@ + Block MASS + 4 0.000000e+00 # MC + 5 0.000000e+00 # MB +- 6 1.730000e+02 # MT ++ 6 1.725000e+02 # MT + 11 0.000000e+00 # Me + 13 0.000000e+00 # MM + 15 0.000000e+00 # MTA +- 23 9.118800e+01 # MZ ++ 23 9.118760e+01 # MZ + 25 1.250000e+02 # MH + + ################################### + ## INFORMATION FOR DECAY + ################################### +-DECAY 6 1.491500E+00 ++DECAY 6 1.320000E+00 + DECAY 15 0.000000e+00 +-DECAY 23 2.441404e+00 +-DECAY 24 2.047600e+00 ++DECAY 23 2.49520000e+00 ++DECAY 24 2.085000e+00 + DECAY 25 6.38233934e-03 + + ################################### +@@ -47,7 +47,7 @@ + Block YUKAWA + 4 0.000000e+00 # ymc + 5 0.000000e+00 # ymb +- 6 1.730000e+02 # ymt ++ 6 1.725000e+02 # ymt + 11 0.000000e+00 # yme + 13 0.000000e+00 # ymm + 15 0.000000e+00 # ymtau +--- models/sm/restrict_no_tau_mass.dat 2015-10-26 02:18:52.000000001 +0100 ++++ models/sm/restrict_no_tau_mass.dat 2016-05-03 22:54:19.000000001 +0200 +@@ -6,9 +6,9 @@ + ## INFORMATION FOR SMINPUTS + ################################### + Block SMINPUTS +- 1 1.325070e+02 # aEWM1 +- 2 1.166390e-05 # Gf +- 3 1.180000e-01 # aS ++ 1 1.32348905e+02 # aEWM1 ++ 2 1.16637000e-05 # Gf ++ 3 1.18400000e-01 # aS + + ################################### + ## INFORMATION FOR MASS +@@ -16,20 +16,20 @@ + Block MASS + 4 0.000000e+00 # MC + 5 4.700000e+00 # MB +- 6 1.730000e+02 # MT ++ 6 1.725000e+02 # MT + 11 0.000000e+00 # Me + 13 0.000000e+00 # MM + 15 0.000000e+00 # MTA +- 23 9.118800e+01 # MZ ++ 23 9.118760e+01 # MZ + 25 1.250000e+02 # MH + + ################################### + ## INFORMATION FOR DECAY + ################################### +-DECAY 6 1.491500E+00 ++DECAY 6 1.32000000E+00 + DECAY 15 0.000000e+00 +-DECAY 23 2.441404e+00 +-DECAY 24 2.047600e+00 ++DECAY 23 2.49520000e+00 ++DECAY 24 2.085000e+00 + DECAY 25 6.38233934e-03 + + ################################### +@@ -47,7 +47,7 @@ + Block YUKAWA + 4 0.000000e+00 # ymc + 5 4.700000e+00 # ymb +- 6 1.730000e+02 # ymt ++ 6 1.725000e+02 # ymt + 11 0.000000e+00 # yme + 13 0.000000e+00 # ymm + 15 0.000000e+00 # ymtau +--- models/sm/restrict_no_widths.dat 2015-10-26 02:18:52.000000001 +0100 ++++ models/sm/restrict_no_widths.dat 2016-05-03 22:54:19.000000001 +0200 +@@ -16,7 +16,7 @@ + Block MASS + 4 0.000000e+00 # MC + 5 4.700000e+00 # MB +- 6 1.730000e+02 # MT ++ 6 1.725000e+02 # MT + 11 0.000000e+00 # Me + 13 0.000000e+00 # MM + 15 1.777000e+00 # MTA +--- models/sm/restrict_zeromass_ckm.dat 2015-10-26 02:18:52.000000001 +0100 ++++ models/sm/restrict_zeromass_ckm.dat 2016-05-03 22:54:20.000000001 +0200 +@@ -6,9 +6,9 @@ + ## INFORMATION FOR SMINPUTS + ################################### + Block SMINPUTS +- 1 1.325070e+02 # aEWM1 +- 2 1.166390e-05 # Gf +- 3 1.180000e-01 # aS ++ 1 1.32348905e+02 # aEWM1 ++ 2 1.16637000e-05 # Gf ++ 3 1.18400000e-01 # aS + + ################################### + ## INFORMATION FOR MASS +@@ -16,30 +16,30 @@ + Block MASS + 4 0.000000e+00 # MC + 5 0.000000e+00 # MB +- 6 1.730000e+02 # MT ++ 6 1.725000e+02 # MT + 11 0.000000e+00 # Me + 13 0.000000e+00 # MM + 15 0.000000e+00 # MTA +- 23 9.118800e+01 # MZ ++ 23 9.118760e+01 # MZ + 25 1.250000e+02 # MH + + ################################### + ## INFORMATION FOR DECAY + ################################### +-DECAY 6 1.491500E+00 ++DECAY 6 1.32000000E+00 + DECAY 15 0.000000e+00 +-DECAY 23 2.441404e+00 +-DECAY 24 2.047600e+00 ++DECAY 23 2.49520000e+00 ++DECAY 24 2.085000e+00 + DECAY 25 6.38233934e-03 + + ################################### + ## INFORMATION FOR WOLFENSTEIN + ################################### + Block Wolfenstein +- 1 2.253000e-01 # lamWS +- 2 8.080000e-01 # AWS +- 3 1.320000e-01 # rhoWS +- 4 3.410000e-01 # etaWS ++ 1 2.257000e-01 # lamWS ++ 2 8.140000e-01 # AWS ++ 3 1.350000e-01 # rhoWS ++ 4 3.490000e-01 # etaWS + + ################################### + ## INFORMATION FOR YUKAWA +@@ -47,7 +47,7 @@ + Block YUKAWA + 4 0.000000e+00 # ymc + 5 0.000000e+00 # ymb +- 6 1.730000e+02 # ymt ++ 6 1.725000e+02 # ymt + 11 0.000000e+00 # yme + 13 0.000000e+00 # ymm + 15 0.000000e+00 # ymtau +--- models/loop_sm/restrict_ckm.dat 2015-10-26 02:18:52.000000001 +0100 ++++ models/loop_sm/restrict_ckm.dat 2016-05-03 22:54:29.000000001 +0200 +@@ -12,9 +12,9 @@ + ## INFORMATION FOR SMINPUTS + ################################### + Block SMINPUTS +- 1 1.325070e+02 # aEWM1 +- 2 1.166390e-05 # Gf +- 3 1.180000e-01 # aS ++ 1 1.32348905e+02 # aEWM1 ++ 2 1.16637000e-05 # Gf ++ 3 1.18400000e-01 # aS + + ################################### + ## INFORMATION FOR MASS +@@ -22,30 +22,30 @@ + Block MASS + 4 0.000000e+00 # MC + 5 4.700000e+00 # MB +- 6 1.730000e+02 # MT ++ 6 1.725000e+02 # MT + 11 0.000000e+00 # Me + 13 0.000000e+00 # MM +- 15 1.777000e+00 # MTA +- 23 9.118800e+01 # MZ ++ 15 1.776820e+00 # MTA ++ 23 9.118760e+01 # MZ + 25 1.250000e+02 # MH + + ################################### + ## INFORMATION FOR DECAY + ################################### +-DECAY 6 1.491500E+00 ++DECAY 6 1.32000000E+00 + DECAY 15 0.000000e+00 +-DECAY 23 2.441404e+00 +-DECAY 24 2.047600e+00 ++DECAY 23 2.49520000e+00 ++DECAY 24 2.085000e+00 + DECAY 25 6.38233934e-03 + + ################################### + ## INFORMATION FOR WOLFENSTEIN + ################################### + Block Wolfenstein +- 1 2.253000e-01 # lamWS +- 2 8.080000e-01 # AWS +- 3 1.320000e-01 # rhoWS +- 4 3.410000e-01 # etaWS ++ 1 2.257000e-01 # lamWS ++ 2 8.140000e-01 # AWS ++ 3 1.350000e-01 # rhoWS ++ 4 3.490000e-01 # etaWS + + ################################### + ## INFORMATION FOR YUKAWA +@@ -53,7 +53,7 @@ + Block YUKAWA + 4 0.000000e+00 # ymc + 5 4.700000e+00 # ymb +- 6 1.730000e+02 # ymt ++ 6 1.725000e+02 # ymt + 11 0.000000e+00 # yme + 13 0.000000e+00 # ymm + 15 1.777000e+00 # ymtau +--- models/loop_sm/restrict_c_mass.dat 2015-10-26 02:18:52.000000001 +0100 ++++ models/loop_sm/restrict_c_mass.dat 2016-05-03 22:54:29.000000001 +0200 +@@ -12,9 +12,9 @@ + ## INFORMATION FOR SMINPUTS + ################################### + Block SMINPUTS +- 1 1.325070e+02 # aEWM1 +- 2 1.166390e-05 # Gf +- 3 1.180000e-01 # aS ++ 1 1.32348905e+02 # aEWM1 ++ 2 1.16637000e-05 # Gf ++ 3 1.18400000e-01 # aS + + ################################### + ## INFORMATION FOR MASS +@@ -22,20 +22,20 @@ + Block MASS + 4 1.550000e+00 # MC + 5 4.700000e+00 # MB +- 6 1.730000e+02 # MT ++ 6 1.725000e+02 # MT + 11 0.000000e+00 # Me + 13 0.000000e+00 # MM +- 15 1.777000e+00 # MTA +- 23 9.118800e+01 # MZ ++ 15 1.776820e+00 # MTA ++ 23 9.118760e+01 # MZ + 25 1.250000e+02 # MH + + ################################### + ## INFORMATION FOR DECAY + ################################### +-DECAY 6 1.491500E+00 ++DECAY 6 1.32000000E+00 + DECAY 15 0.000000e+00 +-DECAY 23 2.441404e+00 +-DECAY 24 2.047600e+00 ++DECAY 23 2.49520000e+00 ++DECAY 24 2.085000e+00 + DECAY 25 6.38233934e-03 + + ################################### +@@ -53,7 +53,7 @@ + Block YUKAWA + 4 1.550000e+00 # ymc + 5 4.700000e+00 # ymb +- 6 1.730000e+02 # ymt ++ 6 1.725000e+02 # ymt + 11 0.000000e+00 # yme + 13 0.000000e+00 # ymm + 15 1.777000e+00 # ymtau +--- models/loop_sm/restrict_default.dat 2015-10-26 02:18:52.000000001 +0100 ++++ models/loop_sm/restrict_default.dat 2016-05-03 22:54:29.000000001 +0200 +@@ -12,9 +12,9 @@ + ## INFORMATION FOR SMINPUTS + ################################### + Block SMINPUTS +- 1 1.325070e+02 # aEWM1 +- 2 1.166390e-05 # Gf +- 3 1.180000e-01 # aS ++ 1 1.32348905e+02 # aEWM1 ++ 2 1.16637000e-05 # Gf ++ 3 1.18400000e-01 # aS + + ################################### + ## INFORMATION FOR MASS +@@ -22,20 +22,20 @@ + Block MASS + 4 0.000000e+00 # MC + 5 4.700000e+00 # MB +- 6 1.730000e+02 # MT ++ 6 1.725000e+02 # MT + 11 0.000000e+00 # Me + 13 0.000000e+00 # MM +- 15 1.777000e+00 # MTA +- 23 9.118800e+01 # MZ ++ 15 1.776820e+00 # MTA ++ 23 9.118760e+01 # MZ + 25 1.250000e+02 # MH + + ################################### + ## INFORMATION FOR DECAY + ################################### +-DECAY 6 1.491500E+00 ++DECAY 6 1.32000000E+00 + DECAY 15 0.000000e+00 +-DECAY 23 2.441404e+00 +-DECAY 24 2.047600e+00 ++DECAY 23 2.49520000e+00 ++DECAY 24 2.085000e+00 + DECAY 25 6.38233934e-03 + + ################################### +@@ -53,7 +53,7 @@ + Block YUKAWA + 4 0.000000e+00 # ymc + 5 4.700000e+00 # ymb +- 6 1.730000e+02 # ymt ++ 6 1.725000e+02 # ymt + 11 0.000000e+00 # yme + 13 0.000000e+00 # ymm + 15 1.777000e+00 # ymtau +--- models/loop_sm/restrict_lepton_masses.dat 2015-10-26 02:18:52.000000001 +0100 ++++ models/loop_sm/restrict_lepton_masses.dat 2016-05-03 22:54:29.000000001 +0200 +@@ -12,9 +12,9 @@ + ## INFORMATION FOR SMINPUTS + ################################### + Block SMINPUTS +- 1 1.325070e+02 # aEWM1 +- 2 1.166390e-05 # Gf +- 3 1.180000e-01 # aS ++ 1 1.32348905e+02 # aEWM1 ++ 2 1.16637000e-05 # Gf ++ 3 1.18400000e-01 # aS + + ################################### + ## INFORMATION FOR MASS +@@ -22,20 +22,20 @@ + Block MASS + 4 0.000000e+00 # MC + 5 4.700000e+00 # MB +- 6 1.730000e+02 # MT ++ 6 1.725000e+02 # MT + 11 5.110000e-04 # Me + 13 1.056600e-01 # MM +- 15 1.777000e+00 # MTA +- 23 9.118800e+01 # MZ ++ 15 1.776820e+00 # MTA ++ 23 9.118760e+01 # MZ + 25 1.250000e+02 # MH + + ################################### + ## INFORMATION FOR DECAY + ################################### +-DECAY 6 1.491500E+00 ++DECAY 6 1.32000000E+00 + DECAY 15 2.270000e-12 +-DECAY 23 2.441404e+00 +-DECAY 24 2.047600e+00 ++DECAY 23 2.49520000e+00 ++DECAY 24 2.085000e+00 + DECAY 25 6.38233934e-03 + + ################################### +@@ -53,7 +53,7 @@ + Block YUKAWA + 4 0.000000e+00 # ymc + 5 4.700000e+00 # ymb +- 6 1.730000e+02 # ymt ++ 6 1.725000e+02 # ymt + 11 5.110000e-04 # yme + 13 1.056600e-01 # ymm + 15 1.777000e+00 # ymtau +--- models/loop_sm/restrict_no_b_mass.dat 2015-10-26 02:18:52.000000001 +0100 ++++ models/loop_sm/restrict_no_b_mass.dat 2016-05-03 22:54:29.000000001 +0200 +@@ -12,9 +12,9 @@ + ## INFORMATION FOR SMINPUTS + ################################### + Block SMINPUTS +- 1 1.325070e+02 # aEWM1 +- 2 1.166390e-05 # Gf +- 3 1.180000e-01 # aS ++ 1 1.32348905e+02 # aEWM1 ++ 2 1.16637000e-05 # Gf ++ 3 1.18400000e-01 # aS + + ################################### + ## INFORMATION FOR MASS +@@ -22,20 +22,20 @@ + Block MASS + 4 0.000000e+00 # MC + 5 0.000000e+00 # MB +- 6 1.730000e+02 # MT ++ 6 1.725000e+02 # MT + 11 0.000000e+00 # Me + 13 0.000000e+00 # MM +- 15 1.777000e+00 # MTA +- 23 9.118800e+01 # MZ ++ 15 1.776820e+00 # MTA ++ 23 9.118760e+01 # MZ + 25 1.250000e+02 # MH + + ################################### + ## INFORMATION FOR DECAY + ################################### +-DECAY 6 1.491500E+00 ++DECAY 6 1.32000000E+00 + DECAY 15 0.000000e+00 +-DECAY 23 2.441404e+00 +-DECAY 24 2.047600e+00 ++DECAY 23 2.49520000e+00 ++DECAY 24 2.085000e+00 + DECAY 25 6.38233934e-03 + + ################################### +@@ -53,7 +53,7 @@ + Block YUKAWA + 4 0.000000e+00 # ymc + 5 0.000000e+00 # ymb +- 6 1.730000e+02 # ymt ++ 6 1.725000e+02 # ymt + 11 0.000000e+00 # yme + 13 0.000000e+00 # ymm + 15 1.777000e+00 # ymtau +--- models/loop_sm/restrict_no_masses.dat 2015-10-26 02:18:52.000000001 +0100 ++++ models/loop_sm/restrict_no_masses.dat 2016-05-03 22:54:29.000000001 +0200 +@@ -12,9 +12,9 @@ + ## INFORMATION FOR SMINPUTS + ################################### + Block SMINPUTS +- 1 1.325070e+02 # aEWM1 +- 2 1.166390e-05 # Gf +- 3 1.180000e-01 # aS ++ 1 1.32348905e+02 # aEWM1 ++ 2 1.16637000e-05 # Gf ++ 3 1.18400000e-01 # aS + + ################################### + ## INFORMATION FOR MASS +@@ -22,20 +22,20 @@ + Block MASS + 4 0.000000e+00 # MC + 5 0.000000e+00 # MB +- 6 1.730000e+02 # MT ++ 6 1.725000e+02 # MT + 11 0.000000e+00 # Me + 13 0.000000e+00 # MM + 15 0.000000e+00 # MTA +- 23 9.118800e+01 # MZ ++ 23 9.118760e+01 # MZ + 25 1.250000e+02 # MH + + ################################### + ## INFORMATION FOR DECAY + ################################### +-DECAY 6 1.491500E+00 ++DECAY 6 1.32000000E+00 + DECAY 15 0.000000e+00 +-DECAY 23 2.441404e+00 +-DECAY 24 2.047600e+00 ++DECAY 23 2.49520000e+00 ++DECAY 24 2.085000e+00 + DECAY 25 6.38233934e-03 + + ################################### +@@ -53,7 +53,7 @@ + Block YUKAWA + 4 0.000000e+00 # ymc + 5 0.000000e+00 # ymb +- 6 1.730000e+02 # ymt ++ 6 1.725000e+02 # ymt + 11 0.000000e+00 # yme + 13 0.000000e+00 # ymm + 15 0.000000e+00 # ymtau +--- models/loop_sm/restrict_no_tau_mass.dat 2015-10-26 02:18:52.000000001 +0100 ++++ models/loop_sm/restrict_no_tau_mass.dat 2016-05-03 22:54:29.000000001 +0200 +@@ -12,9 +12,9 @@ + ## INFORMATION FOR SMINPUTS + ################################### + Block SMINPUTS +- 1 1.325070e+02 # aEWM1 +- 2 1.166390e-05 # Gf +- 3 1.180000e-01 # aS ++ 1 1.32348905e+02 # aEWM1 ++ 2 1.16637000e-05 # Gf ++ 3 1.18400000e-01 # aS + + ################################### + ## INFORMATION FOR MASS +@@ -22,20 +22,20 @@ + Block MASS + 4 0.000000e+00 # MC + 5 4.700000e+00 # MB +- 6 1.730000e+02 # MT ++ 6 1.725000e+02 # MT + 11 0.000000e+00 # Me + 13 0.000000e+00 # MM + 15 0.000000e+00 # MTA +- 23 9.118800e+01 # MZ ++ 23 9.118760e+01 # MZ + 25 1.250000e+02 # MH + + ################################### + ## INFORMATION FOR DECAY + ################################### +-DECAY 6 1.491500E+00 ++DECAY 6 1.32000000E+00 + DECAY 15 0.000000e+00 +-DECAY 23 2.441404e+00 +-DECAY 24 2.047600e+00 ++DECAY 23 2.49520000e+00 ++DECAY 24 2.085000e+00 + DECAY 25 6.38233934e-03 + + ################################### +@@ -53,7 +53,7 @@ + Block YUKAWA + 4 0.000000e+00 # ymc + 5 4.700000e+00 # ymb +- 6 1.730000e+02 # ymt ++ 6 1.725000e+02 # ymt + 11 0.000000e+00 # yme + 13 0.000000e+00 # ymm + 15 0.000000e+00 # ymtau +--- models/loop_sm/restrict_no_widths.dat 2015-10-26 02:18:52.000000001 +0100 ++++ models/loop_sm/restrict_no_widths.dat 2016-05-03 22:54:29.000000001 +0200 +@@ -22,7 +22,7 @@ + Block MASS + 4 0.000000e+00 # MC + 5 4.700000e+00 # MB +- 6 1.730000e+02 # MT ++ 6 1.725000e+02 # MT + 11 0.000000e+00 # Me + 13 0.000000e+00 # MM + 15 1.777000e+00 # MTA +@@ -53,7 +53,7 @@ + Block YUKAWA + 4 0.000000e+00 # ymc + 5 4.700000e+00 # ymb +- 6 1.730000e+02 # ymt ++ 6 1.725000e+02 # ymt + 11 0.000000e+00 # yme + 13 0.000000e+00 # ymm + 15 1.777000e+00 # ymtau +--- models/loop_sm/restrict_parallel_test.dat 2015-10-26 02:18:52.000000001 +0100 ++++ models/loop_sm/restrict_parallel_test.dat 2016-05-03 22:54:29.000000001 +0200 +@@ -22,7 +22,7 @@ + Block MASS + 4 0.000000e+00 # MC + 5 4.620000e+00 # MB +- 6 1.743000e+02 # MT ++ 6 1.725000e+02 # MT + 11 0.000000e+00 # Me + 13 0.000000e+00 # MM + 15 1.777000e+00 # MTA +@@ -53,7 +53,7 @@ + Block YUKAWA + 4 0.000000e+00 # ymc + 5 4.6200000e+00 # ymb +- 6 1.743000e+02 # ymt ++ 6 1.725000e+02 # ymt + 11 0.000000e+00 # yme + 13 0.000000e+00 # ymm + 15 1.777000e+00 # ymtau +--- models/loop_sm/restrict_test.dat 2015-10-26 02:18:52.000000001 +0100 ++++ models/loop_sm/restrict_test.dat 2016-05-03 22:54:29.000000001 +0200 +@@ -22,7 +22,7 @@ + Block MASS + 4 0.000000e+00 # MC + 5 4.700000e+00 # MB +- 6 1.730000e+02 # MT ++ 6 1.725000e+02 # MT + 11 0.000000e+00 # Me + 13 0.000000e+00 # MM + 15 1.777000e+00 # MTA +--- models/loop_sm/restrict_zeromass_ckm.dat 2015-10-26 02:18:52.000000001 +0100 ++++ models/loop_sm/restrict_zeromass_ckm.dat 2016-05-03 22:54:29.000000001 +0200 +@@ -12,9 +12,9 @@ + ## INFORMATION FOR SMINPUTS + ################################### + Block SMINPUTS +- 1 1.325070e+02 # aEWM1 +- 2 1.166390e-05 # Gf +- 3 1.180000e-01 # aS ++ 1 1.32348905e+02 # aEWM1 ++ 2 1.16637000e-05 # Gf ++ 3 1.18400000e-01 # aS + + ################################### + ## INFORMATION FOR MASS +@@ -22,30 +22,30 @@ + Block MASS + 4 0.000000e+00 # MC + 5 0.000000e+00 # MB +- 6 1.730000e+02 # MT ++ 6 1.725000e+02 # MT + 11 0.000000e+00 # Me + 13 0.000000e+00 # MM + 15 0.000000e+00 # MTA +- 23 9.118800e+01 # MZ ++ 23 9.118760e+01 # MZ + 25 1.250000e+02 # MH + + ################################### + ## INFORMATION FOR DECAY + ################################### +-DECAY 6 1.491500E+00 ++DECAY 6 1.32000000E+00 + DECAY 15 0.000000e+00 +-DECAY 23 2.441404e+00 +-DECAY 24 2.047600e+00 ++DECAY 23 2.49520000e+00 ++DECAY 24 2.085000e+00 + DECAY 25 6.38233934e-03 + + ################################### + ## INFORMATION FOR WOLFENSTEIN + ################################### + Block Wolfenstein +- 1 2.253000e-01 # lamWS +- 2 8.080000e-01 # AWS +- 3 1.320000e-01 # rhoWS +- 4 3.410000e-01 # etaWS ++ 1 2.257000e-01 # lamWS ++ 2 8.140000e-01 # AWS ++ 3 1.350000e-01 # rhoWS ++ 4 3.490000e-01 # etaWS + + ################################### + ## INFORMATION FOR YUKAWA +@@ -53,7 +53,7 @@ + Block YUKAWA + 4 0.000000e+00 # ymc + 5 0.000000e+00 # ymb +- 6 1.730000e+02 # ymt ++ 6 1.725000e+02 # ymt + 11 0.000000e+00 # yme + 13 0.000000e+00 # ymm + 15 0.000000e+00 # ymtau +--- bin/.compile.py.orig 2017-02-23 09:30:11.498513439 +0100 ++++ bin/.compile.py 2017-02-23 09:30:45.660867637 +0100 +@@ -59,7 +59,8 @@ + self.make_stdHep() + self.make_CutTools() + self.make_IREGI() +- self.install_package(ext_programs) ++ if ext_programs: ++ self.install_package(ext_programs) + self.test_output_LO() + self.test_output_NLO() + self.precompilation(debug=True) +--- madgraph/interface/loop_interface.py.orig 2018-05-01 10:19:36.391921213 +0300 ++++ madgraph/interface/loop_interface.py 2018-05-01 10:20:08.019974345 +0300 +@@ -23,7 +23,7 @@ + import re + + import madgraph +-from madgraph import MG4DIR, MG5DIR, MadGraph5Error ++from madgraph import MG4DIR, MG5DIR, MadGraph5Error, ReadWrite + import madgraph.interface.madgraph_interface as mg_interface + import madgraph.interface.extended_cmd as cmd + import madgraph.interface.launch_ext_program as launch_ext +@@ -503,6 +503,9 @@ + if (opt['ninja'] is None) or (os.path.isfile(pjoin(MG5DIR, opt['ninja'],'libninja.a'))): + return + ++ if not ReadWrite: ++ return ++ + logger.info("First output using loop matrix-elements has been detected. Now asking for loop reduction:", '$MG:BOLD') + to_install = self.ask('install', '0', ask_class=AskLoopInstaller, timeout=300, + path_msg=' ') + +--- vendor/CutTools/makefile.orig 2018-06-18 13:24:17.164637074 +0200 ++++ vendor/CutTools/makefile 2018-06-18 13:24:27.756740547 +0200 +@@ -9,7 +9,7 @@ + ifeq ($(wildcard ../make_opts), ../make_opts) + include ../make_opts + else +- FFLAGS = ++ FFLAGS = -std=legacy + FC=gfortran + endif + +--- vendor/IREGI/src/makefile_ML5_lib.orig 2018-07-09 13:33:48.546490615 +0200 ++++ vendor/IREGI/src/makefile_ML5_lib 2018-07-09 13:33:57.238573607 +0200 +@@ -5,7 +5,7 @@ + FFDIR=$(qcdlooppath)/ff + onelooppath=$(PWD)/oneloop + #FFLAGS=-O -g -ggdb -fno-automatic -fbounds-check -I$(onelooppath) # -fbounds-check is very useful in checking mermory error,-g is for debuging,-ggdb is for debuging special in gdb +-FFLAGS=-O -g -fPIC -I$(onelooppath) ++FFLAGS=-O -g -fPIC -I$(onelooppath) -std=legacy + obj= global.o funlib.o linear_algebra.o kinematics.o matrices.o matrix_base.o cmatrix_base.o mis_warp.o special_fun.o pave_reduce.o cpave_reduce.o si_reduce.o csi_reduce.o ti_reduce.o cti_reduce.o gti_reduce.o binary_tree.o IREGI4ML5_interface.o avh_olo_foriregi.o + olomod= avh_olo_foriregi.mod avh_olo_foriregi_dp_box.mod avh_olo_foriregi_dp_olog.mod avh_olo_foriregi_units.mod \ + avh_olo_foriregi_dp.mod avh_olo_foriregi_dp_boxc.mod avh_olo_foriregi_dp_prec.mod avh_olo_foriregi_version.mod \ +--- madgraph/various/misc.py.orig 2018-04-29 15:59:44.000000000 +0200 ++++ madgraph/various/misc.py 2018-07-18 10:11:06.000000000 +0200 +@@ -469,6 +469,8 @@ + try: + if nb_core > 1: + cmd.append('-j%s' % nb_core) ++ if nb_core < 0: ++ cmd.append('-j1') + cmd += arg + p = subprocess.Popen(cmd, stdout=subprocess.PIPE, + stderr=subprocess.STDOUT, cwd=cwd, **opt) + +--- bin/.compile.py.orig 2018-07-18 10:56:33.000000000 +0200 ++++ bin/.compile.py 2018-07-18 10:42:56.000000000 +0200 +@@ -168,7 +168,7 @@ + text = text.replace(base,compiler) + open(path, 'w').writelines(text) + +- misc.compile(cwd = os.path.join(MG5DIR, 'vendor', 'StdHEP')) ++ misc.compile(cwd = os.path.join(MG5DIR, 'vendor', 'StdHEP'), nb_core=-1) + + @staticmethod + def make_CutTools(): +@@ -190,7 +190,7 @@ + text = text.replace(base,compiler) + open(path, 'w').writelines(text) + +- misc.compile(cwd = os.path.join(MG5DIR, 'vendor', 'CutTools')) ++ misc.compile(cwd = os.path.join(MG5DIR, 'vendor', 'CutTools'), nb_core=-1) + + @staticmethod + def make_IREGI(): +@@ -274,7 +274,7 @@ + open(name,'w').write('\n'.join(lines)) + mod = False + +- misc.compile(cwd = os.path.join(iregi_path,'src')) ++ misc.compile(cwd = os.path.join(iregi_path,'src'), nb_core=-1) + + def install_package(self, programs=[]): + print "installing external package" diff --git a/var/spack/repos/builtin/packages/madgraph5amc/madgraph5amc-2.7.3.patch b/var/spack/repos/builtin/packages/madgraph5amc/madgraph5amc-2.7.3.patch new file mode 100644 index 0000000000..38b872352f --- /dev/null +++ b/var/spack/repos/builtin/packages/madgraph5amc/madgraph5amc-2.7.3.patch @@ -0,0 +1,23 @@ +--- vendor/CutTools/makefile.orig 2018-06-18 13:24:17.164637074 +0200 ++++ vendor/CutTools/makefile 2018-06-18 13:24:27.756740547 +0200 +@@ -9,7 +9,7 @@ + ifeq ($(wildcard ../make_opts), ../make_opts) + include ../make_opts + else +- FFLAGS = ++ FFLAGS = -std=legacy + FC=gfortran + endif + +--- vendor/IREGI/src/makefile_ML5_lib.orig 2018-07-09 13:33:48.546490615 +0200 ++++ vendor/IREGI/src/makefile_ML5_lib 2018-07-09 13:33:57.238573607 +0200 +@@ -5,7 +5,7 @@ + FFDIR=$(qcdlooppath)/ff + onelooppath=$(PWD)/oneloop + #FFLAGS=-O -g -ggdb -fno-automatic -fbounds-check -I$(onelooppath) # -fbounds-check is very useful in checking mermory error,-g is for debuging,-ggdb is for debuging special in gdb +-FFLAGS=-O -g -fPIC -I$(onelooppath) ++FFLAGS=-O -g -fPIC -I$(onelooppath) -std=legacy + obj= global.o funlib.o linear_algebra.o kinematics.o matrices.o matrix_base.o cmatrix_base.o mis_warp.o special_fun.o pave_reduce.o cpave_reduce.o si_reduce.o csi_reduce.o ti_reduce.o cti_reduce.o gti_reduce.o binary_tree.o IREGI4ML5_interface.o avh_olo_foriregi.o + olomod= avh_olo_foriregi.mod avh_olo_foriregi_dp_box.mod avh_olo_foriregi_dp_olog.mod avh_olo_foriregi_units.mod \ + avh_olo_foriregi_dp.mod avh_olo_foriregi_dp_boxc.mod avh_olo_foriregi_dp_prec.mod avh_olo_foriregi_version.mod \ + diff --git a/var/spack/repos/builtin/packages/madgraph5amc/package.py b/var/spack/repos/builtin/packages/madgraph5amc/package.py new file mode 100644 index 0000000000..3abe3dce1f --- /dev/null +++ b/var/spack/repos/builtin/packages/madgraph5amc/package.py @@ -0,0 +1,111 @@ +# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other +# Spack Project Developers. See the top-level COPYRIGHT file for details. +# +# SPDX-License-Identifier: (Apache-2.0 OR MIT) + +from spack import * +import os + + +class Madgraph5amc(Package): + """MadGraph5_aMC@NLO is a framework that aims at providing + all the elements necessary for SM and BSM phenomenology, + such as the computations of cross sections, the generation + of hard events and their matching with event generators, + and the use of a variety of tools relevant to + event manipulation and analysis. """ + + homepage = "https://launchpad.net/mg5amcnlo" + url = "https://launchpad.net/mg5amcnlo/2.0/2.7.x/+download/MG5_aMC_v2.7.3.tar.gz" + + version('2.7.3.py3', sha256='400c26f9b15b07baaad9bd62091ceea785c2d3a59618fdc27cad213816bc7225') + version('2.7.3.py2', sha256='0b665356f4d9359e6e382e0f408dc11db594734567c6b2f0ec0e0697f2dbe099', + url="https://launchpad.net/mg5amcnlo/2.0/2.7.x/+download/MG5_aMC_v2.7.3.tar.gz") + + variant('atlas', default=False, description='Apply changes requested by ' + + "the ATLAS experimenent on LHC") + variant('ninja', default=False, description='Use external installation' + + " of Ninja") + variant('collier', default=False, description='Use external installation' + + ' of Collier') + + depends_on('syscalc') + depends_on('gosam-contrib', when='+ninja') + depends_on('collier', when='+collier') + depends_on('lhapdf') + depends_on('fastjet') + depends_on('py-six', when='@2.7.3.py3', type=('build', 'run')) + + depends_on('python@:2.7.999', when='@2.7.3.py2', type=('build', 'run')) + conflicts('%gcc@10:', when='@2.7.3') + + depends_on('python@3:', when='@2.7.3.py3', type=('build', 'run')) + + patch('madgraph5amc-2.7.3.patch', level=0, when='@2.7.3.py2~atlas') + patch('madgraph5amc-2.7.3.atlas.patch', level=0, when='@2.7.3.py2+atlas') + patch('madgraph5amc-2.7.3.patch', level=0, when='@2.7.3.py3~atlas') + patch('madgraph5amc-2.7.3.atlas.patch', level=0, when='@2.7.3.py3+atlas') + + phases = ['edit', 'build', 'install'] + + def edit(self, spec, prefix): + def set_parameter(name, value): + config_files.filter('^#?[ ]*' + name + '[ ]*=.*$', + name + ' = ' + value, + ignore_absent=True) + + config_files = FileFilter(join_path("input", + ".mg5_configuration_default.txt"), + join_path("input", "mg5_configuration.txt")) + + set_parameter('syscalc_path', spec['syscalc'].prefix.bin) + + if '+ninja' in spec: + set_parameter('ninja', spec['gosam-contrib'].prefix) + + if '+collier' in spec: + set_parameter('collier', spec['collier'].prefix) + + set_parameter('output_dependencies', 'internal') + set_parameter('lhapdf', join_path(spec['lhapdf'].prefix.bin, + 'lhapdf-config')) + set_parameter('fastjet', join_path(spec['fastjet'].prefix.bin, + 'fastjet-config')) + + set_parameter('automatic_html_opening', 'False') + + def build(self, spec, prefix): + with working_dir(join_path('vendor', 'CutTools')): + make(parallel=False) + + with working_dir(join_path('vendor', 'StdHEP')): + make(parallel=False) + + if '+atlas' in spec: + if os.path.exists(join_path('bin', 'compile.py')): + compile_py = Executable(join_path('bin', 'compile.py')) + else: + compile_py = Executable(join_path('bin', '.compile.py')) + + compile_py() + + def install(self, spec, prefix): + def installdir(dirname): + install_tree(dirname, join_path(prefix, dirname)) + + def installfile(filename): + install(filename, join_path(prefix, filename)) + + for p in os.listdir(self.stage.source_path): + if os.path.isdir(p): + installdir(p) + else: + if p != 'doc.tgz': + installfile(p) + else: + mkdirp(prefix.share) + install(p, join_path(prefix.share, p)) + + install(join_path('Template', 'LO', 'Source', '.make_opts'), + join_path(prefix, 'Template', 'LO', + 'Source', 'make_opts')) diff --git a/var/spack/repos/builtin/packages/syscalc/package.py b/var/spack/repos/builtin/packages/syscalc/package.py new file mode 100644 index 0000000000..8bbb3dfeda --- /dev/null +++ b/var/spack/repos/builtin/packages/syscalc/package.py @@ -0,0 +1,29 @@ +# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other +# Spack Project Developers. See the top-level COPYRIGHT file for details. +# +# SPDX-License-Identifier: (Apache-2.0 OR MIT) + +from spack import * + + +class Syscalc(MakefilePackage): + """ A tool to derive theoretical systematic uncertainties""" + + homepage = "https://cp3.irmp.ucl.ac.be/projects/madgraph/wiki/SysCalc" + url = "http://madgraph.phys.ucl.ac.be/Downloads/SysCalc_V1.1.7.tar.gz" + + version('1.1.7', sha256='d33219a525a54733bdfd02d8314288bdecd977fb1e97ddeaf13bf470bbbdd386') + + depends_on('lhapdf@6:') + + def url_for_version(self, version): + url = self.url.rsplit('/', 1)[0] + url += '/SysCalc_V{0}.tar.gz' + + url = url.format(version) + return url + + def install(self, spec, prefix): + mkdirp(prefix.bin) + install('sys_calc', prefix.bin) + install_tree('include', prefix.include) -- cgit v1.2.3-70-g09d2