diff --git a/Compiler/fluka4/.gitkeep b/Compiler/fluka4/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/Compiler/fluka4/README.md b/Compiler/fluka4/README.md new file mode 100644 index 0000000..6f85bf1 --- /dev/null +++ b/Compiler/fluka4/README.md @@ -0,0 +1,43 @@ +# 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 +TCLTK_VERSION=8.6.9 + +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} TclTk/${TCLTK_VERSION} + +mkdir -p "${PREFIX}" && cd "$_" + +tar --strip-components=1 -xvf "${FLUKA_TAR}" +cd src +make + +mkdir -p "${PREFIX}/flair" && cd "$_" +make + +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 +``` 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 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"