From f4dc4915043bc0fba0ac19080153ba05af34f947 Mon Sep 17 00:00:00 2001 From: gsell Date: Thu, 10 Mar 2022 09:12:39 +0000 Subject: [PATCH 1/6] Add new directory --- Compiler/fluka/.gitkeep | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 Compiler/fluka/.gitkeep diff --git a/Compiler/fluka/.gitkeep b/Compiler/fluka/.gitkeep new file mode 100644 index 0000000..e69de29 From bac7f95d0781321e07a6baa14b376f05dc053e06 Mon Sep 17 00:00:00 2001 From: gsell Date: Thu, 10 Mar 2022 09:13:06 +0000 Subject: [PATCH 2/6] Add new file --- Compiler/fluka/README.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 Compiler/fluka/README.md diff --git a/Compiler/fluka/README.md b/Compiler/fluka/README.md new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/Compiler/fluka/README.md @@ -0,0 +1 @@ + From 63ad13a0e04e7b6faaa994a1217eedd05bd1e068 Mon Sep 17 00:00:00 2001 From: gsell Date: Thu, 10 Mar 2022 10:33:25 +0000 Subject: [PATCH 3/6] Update README.md --- Compiler/fluka/README.md | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/Compiler/fluka/README.md b/Compiler/fluka/README.md index 8b13789..10cf945 100644 --- a/Compiler/fluka/README.md +++ b/Compiler/fluka/README.md @@ -1 +1,37 @@ +# FLUKA and Flair module +PSI has a institutional license for FLUKA and Flair. Anyway users should register. + +## Download + +https://fluka.cern + + +## Install +``` +FLUKA4_VERSION=2.2 +FLAIR_VERSION=3.1-15.1 + +GCC_VERSION=9.3.0 +PYTHON_VERSION=3.8.8 + +PREFIX="${PMODULES_ROOT}/Compiler/fluka4/${FLUKA4_VERSION}/gcc/${GCC_VERSION}" +DISTFILES_DIR='/afs/psi.ch/software/Pmodules/distfiles' +FLUKA_TAR="${DISTFILES_DIR}/fluka-4-${FLUKA4_VERSION}.x86-Linux-gfor${GCC_VERSION/.*}.tar.bz2" +FLAIR_TAR="${DISTFILES_DIR}/flair-${FLAIR_VERSION}.tar.bz2" +GEOVIEWER_TAR="${DISTFILES_DIR}/flair-geoviewer-${FLAIR_VERSION}.tar.bz2" + +module load gcc/${GCC_VERSION} Python/${PYTHON_VERSION} + +mkdir -p "${PREFIX}" && cd "$_" + +tar --strip-components=1 -xvf "${FLUKA_TAR}" +cd src +make + +mkdir -p "${PREFIX}/flair" && cd "$_" +make +``` + +## Install FLUKA +``` From 96dd4aff5a0be7352df3ebc38317b08ca32d73be Mon Sep 17 00:00:00 2001 From: gsell Date: Thu, 10 Mar 2022 10:59:40 +0000 Subject: [PATCH 4/6] Update README.md --- Compiler/fluka/README.md | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/Compiler/fluka/README.md b/Compiler/fluka/README.md index 10cf945..6f85bf1 100644 --- a/Compiler/fluka/README.md +++ b/Compiler/fluka/README.md @@ -14,6 +14,7 @@ FLAIR_VERSION=3.1-15.1 GCC_VERSION=9.3.0 PYTHON_VERSION=3.8.8 +TCLTK_VERSION=8.6.9 PREFIX="${PMODULES_ROOT}/Compiler/fluka4/${FLUKA4_VERSION}/gcc/${GCC_VERSION}" DISTFILES_DIR='/afs/psi.ch/software/Pmodules/distfiles' @@ -21,7 +22,7 @@ FLUKA_TAR="${DISTFILES_DIR}/fluka-4-${FLUKA4_VERSION}.x86-Linux-gfor${GCC_VERSIO FLAIR_TAR="${DISTFILES_DIR}/flair-${FLAIR_VERSION}.tar.bz2" GEOVIEWER_TAR="${DISTFILES_DIR}/flair-geoviewer-${FLAIR_VERSION}.tar.bz2" -module load gcc/${GCC_VERSION} Python/${PYTHON_VERSION} +module load gcc/${GCC_VERSION} Python/${PYTHON_VERSION} TclTk/${TCLTK_VERSION} mkdir -p "${PREFIX}" && cd "$_" @@ -31,7 +32,12 @@ make mkdir -p "${PREFIX}/flair" && cd "$_" make -``` -## Install FLUKA +cd "${PREFIX}" +ln -s lib lib64 +cp -av "${TCLTK_DIR}/lib/libtcl8.6.so" lib +cp -av "${TCLTK_DIR}/lib/libtk8.6.so" lib64 + +echo "gcc/${GCC_VERSION}" > .dependencies +echo "Python/${PYTHON_VERSION}" >> .dependencies ``` From e56d4eae8edac2799d8890a0c736fdd1e318e769 Mon Sep 17 00:00:00 2001 From: Achim Gsell Date: Thu, 10 Mar 2022 12:50:37 +0100 Subject: [PATCH 5/6] modulefile added --- Compiler/{fluka => fluka4}/.gitkeep | 0 Compiler/{fluka => fluka4}/README.md | 0 Compiler/fluka4/modulefiles | 14 ++++++++++++++ 3 files changed, 14 insertions(+) rename Compiler/{fluka => fluka4}/.gitkeep (100%) rename Compiler/{fluka => fluka4}/README.md (100%) create mode 100644 Compiler/fluka4/modulefiles diff --git a/Compiler/fluka/.gitkeep b/Compiler/fluka4/.gitkeep similarity index 100% rename from Compiler/fluka/.gitkeep rename to Compiler/fluka4/.gitkeep diff --git a/Compiler/fluka/README.md b/Compiler/fluka4/README.md similarity index 100% rename from Compiler/fluka/README.md rename to Compiler/fluka4/README.md diff --git a/Compiler/fluka4/modulefiles b/Compiler/fluka4/modulefiles new file mode 100644 index 0000000..e4deba3 --- /dev/null +++ b/Compiler/fluka4/modulefiles @@ -0,0 +1,14 @@ +#%Module1.0 + +module-whatis "FLUKA & Flair" +module-url "https://fluka.cern" +module-license "https://fluka.cern/download/licences" +module-maintainer "Achim Gsell " +module-help " +The FLUKA code is a general purpose Monte Carlo code for the interaction +and transport of hadrons, leptons, and photons from keV (with the exception +of neutrons, tracked down to thermal energies) to cosmic ray energies in +any material. +" + +prepend-path PATH "$PREFIX/flair" From a6dce64ba545d78333b6b9b1f14b75ee11f5c91e Mon Sep 17 00:00:00 2001 From: Achim Gsell Date: Thu, 10 Mar 2022 12:50:57 +0100 Subject: [PATCH 6/6] variants file added --- Compiler/fluka4/files/variants.rhel7 | 1 + 1 file changed, 1 insertion(+) create mode 100644 Compiler/fluka4/files/variants.rhel7 diff --git a/Compiler/fluka4/files/variants.rhel7 b/Compiler/fluka4/files/variants.rhel7 new file mode 100644 index 0000000..b055626 --- /dev/null +++ b/Compiler/fluka4/files/variants.rhel7 @@ -0,0 +1 @@ +fluka4/2.2 unstable gcc/9.3.0 Python/3.8.8