From dc81f42b3c975c126ccd02cf7a09585a63c8692e Mon Sep 17 00:00:00 2001 From: Oleg Kalashev <oleg.kalashev@gmail.com> Date: Tue, 11 Jan 2022 20:43:02 +0300 Subject: [PATCH] build instructions updated --- README.md | 11 ++++++++++- src/app/crbeam/README.md | 2 +- src/external/README.md | 8 ++++++++ src/lib/CMakeLists.txt | 3 --- 4 files changed, 19 insertions(+), 5 deletions(-) create mode 100644 src/external/README.md diff --git a/README.md b/README.md index 23a8644..d3b3c7c 100644 --- a/README.md +++ b/README.md @@ -11,4 +11,13 @@ Framework for Monte Carlo simulation of ultra-high energy cosmic rays and electr ### Applications -[CRbeam](src/app/crbeam) - cosmic ray beam simulation \ No newline at end of file +[CRbeam](src/app/crbeam) - cosmic ray beam simulation + +### Installation + +- Install required libraries to [external](src/external) folder +<pre><code> +cd bin +cmake -S ../src/app/crbeam -B . +make +</code></pre> \ No newline at end of file diff --git a/src/app/crbeam/README.md b/src/app/crbeam/README.md index 2a16963..b1fbd50 100644 --- a/src/app/crbeam/README.md +++ b/src/app/crbeam/README.md @@ -1,6 +1,6 @@ # CRbeam -Monte Carlo simulation of the the cosmic ray and EM cascade beam propagation. +Monte Carlo simulation of the cosmic ray and EM cascade beam propagation. ### Authors: Oleg Kalashev and Alexander Korochkin diff --git a/src/external/README.md b/src/external/README.md new file mode 100644 index 0000000..e3b23a8 --- /dev/null +++ b/src/external/README.md @@ -0,0 +1,8 @@ +# Installing external libraries + +<pre><code> +mkdir SOPHIA +mkdir nr</code></pre> + +- download SOPHIA event generator sources from https://elsevier.digitalcommonsdata.com/datasets/pkx5j87mgn/1 and extract in **SOPHIA** folder +- download Numerical Recipes 3rd ed. C++ source code from http://numerical.recipes/com/storefront.html and extract to **nr** folder diff --git a/src/lib/CMakeLists.txt b/src/lib/CMakeLists.txt index 4262323..a8caa23 100644 --- a/src/lib/CMakeLists.txt +++ b/src/lib/CMakeLists.txt @@ -43,10 +43,7 @@ IF(${CMAKE_SYSTEM_NAME} MATCHES "Linux") set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -rdynamic") endif (${CMAKE_SYSTEM_NAME} MATCHES "Linux") -#FIND_LIBRARY(FORTRAN_LIBRARY gfortran PATHS OS/lib) -#FIND_LIBRARY(OMP_LIBRARY gomp PATHS OS/lib) FIND_LIBRARY(C_LIBRARY c) -FIND_LIBRARY(XERCES_LIBRARY xerces-c) FIND_LIBRARY(GSL_LIBRARY gsl) FIND_LIBRARY(GSLCBLAS_LIBRARY gslcblas) -- GitLab