IAP GITLAB

Skip to content
Snippets Groups Projects
Commit 2f4a08e4 authored by Maximilian Reininghaus's avatar Maximilian Reininghaus :vulcan: Committed by Maximilian Reininghaus
Browse files

documentation

parent a37f174b
No related branches found
No related tags found
1 merge request!468Resolve "Add FLUKA"
...@@ -63,6 +63,7 @@ You will also need: ...@@ -63,6 +63,7 @@ You will also need:
- cmake - cmake
- git - git
- g++, gfortran, binutils, make - g++, gfortran, binutils, make
- optional: FLUKA (see below)
On a bare Ubuntu 20.04, just add: On a bare Ubuntu 20.04, just add:
``` shell ``` shell
...@@ -98,6 +99,17 @@ make -j8 ...@@ -98,6 +99,17 @@ make -j8
make install make install
``` ```
### FLUKA support
For legal reasons we do not distribute/bundle FLUKA together with CORSIKA 8.
If you want to use FLUKA as low-energy hadronic interaction model, you have to download
it separately from (http://www.fluka.org/), which requires registering there as FLUKA user.
You need to download binaries suitable for your system (check compiler and glibc versions)
and unpack the binaries into a directory of your choice. You also need the data archive
(fluka20xy.z-data.tar.gz) unpacked in the same directory. To compile CORSIKA 8 with FLUKA,
you need to specify the path of libflukahp.a when invoking cmake with the option
`-DC8_FLUKALIB=<path>`. CMake will print a status message indicating whether FLUKA support
is enabled or disabled when the library is (not) found.
## Installation (using docker containers) ## Installation (using docker containers)
......
set(C8_FLUKALIB CACHE STRING "path to libflukahp.a") set(C8_FLUKALIB CACHE STRING "path to libflukahp.a")
if (EXISTS "${C8_FLUKALIB}") if (EXISTS "${C8_FLUKALIB}")
message("libflukahp.a fount at ${C8_FLUKALIB}; FLUKA support is enabled.")
set (input_dir ${PROJECT_SOURCE_DIR}/src/modules/fluka) set (input_dir ${PROJECT_SOURCE_DIR}/src/modules/fluka)
# we remove flrndm_.o from the original libflukahp.a and save the result as libflukahp-norndm.a # we remove flrndm_.o from the original libflukahp.a and save the result as libflukahp-norndm.a
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment