IAP GITLAB
Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
corsika
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Air Shower Physics
corsika
Commits
2f4a08e4
Commit
2f4a08e4
authored
1 year ago
by
Maximilian Reininghaus
Committed by
Maximilian Reininghaus
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
documentation
parent
a37f174b
No related branches found
Branches containing commit
No related tags found
1 merge request
!468
Resolve "Add FLUKA"
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
README.md
+12
-0
12 additions, 0 deletions
README.md
modules/fluka/CMakeLists.txt
+1
-0
1 addition, 0 deletions
modules/fluka/CMakeLists.txt
with
13 additions
and
0 deletions
README.md
+
12
−
0
View file @
2f4a08e4
...
@@ -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)
...
...
This diff is collapsed.
Click to expand it.
modules/fluka/CMakeLists.txt
+
1
−
0
View file @
2f4a08e4
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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment