-
Notifications
You must be signed in to change notification settings - Fork 78
position dependent photon field for EM interactions (optimised) #535
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from 120 commits
bd15e91
4efbaa5
1c9085e
0bb1fec
cfa0371
dc7b60c
d4cc1c8
63f5573
bf17391
68a1df2
28dd755
60d904c
f88fd02
abf4d14
b26d064
bb502eb
9067fa8
7cad8ff
e688abf
d0b21b0
9e6b95c
a5d9696
9fbd61a
f573b6f
149a771
715ec1f
01dc99e
f501c69
615f18c
aeba158
82f1317
30cd854
9e56180
e1f6a52
7573248
7d07ade
214355f
233a137
bbc11cf
890aa7c
7cb31e0
f56dbdc
712748f
07b6671
04664d3
ec74a01
ee721fc
ba9f4a6
7901e26
3cb6df8
314077f
985598c
c2f6c56
e7be9e6
07692b3
f6c5227
39c7542
f1af6d5
bf27960
d256457
bd3b426
e8699a3
bb73984
04bd2d8
0b3b2cb
5ebc9c4
2bb434a
278f8cc
14a3f25
112be8e
8388e98
f651d0a
f483730
2407d02
c6313bf
2c88d42
3ec95f1
be4c696
1b1ee97
edab4f8
5520562
1c2accd
5c10445
e0fd15b
393071d
13be94b
2666a1c
9feb2b4
d4d02d6
ec2f5cd
a14ea76
d2db12b
2669e52
8098c9a
e9c84dc
0dc79ee
6188885
8f59c6e
0e687fa
bb581d2
09d42f8
da8b4b5
424b0dc
63ad5c4
d26b64a
380cd68
3610079
9971827
b9b5de3
7d2a0dd
4f97506
e185892
4bb0728
910461f
00b3f41
d5d04f0
52ddb8e
62e7085
49d1d63
8285960
7d46929
d62de4f
028002a
4705a60
a1895df
98be491
a0107b4
ba8ae38
e726045
8407f8e
470a603
a432e2b
d9c95bb
859c3d1
9c7777b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -26,3 +26,4 @@ cmake/CMakeFiles/ | |
| *.dat | ||
| *.ipynb_checkpoints | ||
| *.idea | ||
| .DS_Store | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,7 +3,16 @@ cmake_minimum_required(VERSION 3.14) | |
| project(CRPropa Fortran C CXX) | ||
| set(CRPROPA_RELEASE_VERSION 3.2.1+) # Update for new release | ||
|
|
||
| set(CMAKE_CXX_STANDARD 11) | ||
| # Detect platform and set C++ standard | ||
| if(APPLE) | ||
| message(STATUS "Building on macOS, using C++11") | ||
| set(CMAKE_CXX_STANDARD 11) | ||
| # set(CMAKE_CXX_STANDARD_REQUIRED ON) | ||
| else() | ||
| message(STATUS "Building on Linux/Ubuntu, using C++17") | ||
| set(CMAKE_CXX_STANDARD 17) | ||
| set(CMAKE_CXX_STANDARD_REQUIRED ON) | ||
| endif() | ||
| set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake" ${CMAKE_MODULE_PATH}) | ||
|
|
||
| set(CRPROPA_EXTRA_SOURCES) | ||
|
|
@@ -57,7 +66,6 @@ if(NOT CMAKE_BUILD_TYPE) | |
| endif(NOT CMAKE_BUILD_TYPE) | ||
| message(STATUS "Build Type: ${CMAKE_BUILD_TYPE}") | ||
|
|
||
|
|
||
| # ---------------------------------------------------------------------------- | ||
| # Version info from Git | ||
| # ---------------------------------------------------------------------------- | ||
|
|
@@ -335,7 +343,7 @@ CRPropa should compile, but will likely not work properly! Please install data f | |
| endif() | ||
|
|
||
| # ---------------------------------------------------------------------------- | ||
| # Library and Binary | ||
| # Library and Binary | ||
| # ---------------------------------------------------------------------------- | ||
| file(GLOB_RECURSE CRPROPA_INCLUDES RELATIVE ${CMAKE_SOURCE_DIR} include/*.h) | ||
| include_directories(include ${CRPROPA_EXTRA_INCLUDES}) | ||
|
|
@@ -355,6 +363,7 @@ add_library(crpropa SHARED | |
| src/ParticleMass.cpp | ||
| src/ParticleState.cpp | ||
| src/PhotonBackground.cpp | ||
| src/InteractionRates.cpp | ||
| src/ProgressBar.cpp | ||
| src/Random.cpp | ||
| src/Source.cpp | ||
|
|
@@ -441,7 +450,10 @@ else() | |
| MESSAGE(STATUS "Build of documentation disabeled. Enable with BUILD_DOC=On") | ||
| endif(BUILD_DOC) | ||
|
|
||
|
|
||
| # Only add stdc++fs for older GCC (needed for Ubuntu 20) | ||
| if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU" AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 10) | ||
| target_link_libraries(crpropa stdc++fs) | ||
| endif() | ||
|
|
||
| # ---------------------------------------------------------------------------- | ||
| # Python | ||
|
|
@@ -538,6 +550,10 @@ if(ENABLE_PYTHON AND Python_FOUND) | |
|
|
||
| endif(ENABLE_PYTHON AND Python_FOUND) | ||
|
|
||
| target_include_directories(crpropa | ||
|
||
| PUBLIC | ||
| ${CMAKE_SOURCE_DIR}/libs/nanoflann/include | ||
| ) | ||
|
|
||
| # ---------------------------------------------------------------------------- | ||
| # Install | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.