modulefile added

This commit is contained in:
gsell committed 2022-03-10 12:50:37 +01:00
1 parent 96dd4aff5a
commit e56d4eae8e
3 files changed
+14

No files matched your search

View File
Whitespace-only changes.
+43
View File
@@ -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
```
+14
View File
@@ -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 <achim.gsell@psi.ch>"
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"