Merge branch '215-fluka-flair-module' into 'master'
Resolve "fluka/flair module" Closes #215 See merge request Pmodules/buildblocks!304
This commit is contained in:
0
Compiler/fluka4/.gitkeep
Normal file
0
Compiler/fluka4/.gitkeep
Normal file
43
Compiler/fluka4/README.md
Normal file
43
Compiler/fluka4/README.md
Normal 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
|
||||
```
|
||||
1
Compiler/fluka4/files/variants.rhel7
Normal file
1
Compiler/fluka4/files/variants.rhel7
Normal file
@@ -0,0 +1 @@
|
||||
fluka4/2.2 unstable gcc/9.3.0 Python/3.8.8
|
||||
14
Compiler/fluka4/modulefiles
Normal file
14
Compiler/fluka4/modulefiles
Normal 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"
|
||||
Reference in New Issue
Block a user