Skip to content

Commit 67ba86d

Browse files
committed
Import Geant4 10.7.0.beta source tree
1 parent c02c370 commit 67ba86d

File tree

1,871 files changed

+161971
-119433
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,871 files changed

+161971
-119433
lines changed

CMakeLists.txt

+3-3
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ cmake_minimum_required(VERSION 3.8 FATAL_ERROR)
2222

2323
# - Make overrides for default flags, so they appear in interfaces
2424
set(CMAKE_USER_MAKE_RULES_OVERRIDE_CXX
25-
${CMAKE_SOURCE_DIR}/cmake/Modules/Geant4MakeRules_cxx.cmake)
25+
${CMAKE_SOURCE_DIR}/cmake/Modules/G4MakeRules_cxx.cmake)
2626

2727
#-----------------------------------------------------------------------
2828
# - Project definition and basic configuration
@@ -31,8 +31,8 @@ set(CMAKE_USER_MAKE_RULES_OVERRIDE_CXX
3131
# the same form.
3232
project(Geant4)
3333
set(${PROJECT_NAME}_VERSION_MAJOR 10)
34-
set(${PROJECT_NAME}_VERSION_MINOR 6)
35-
set(${PROJECT_NAME}_VERSION_PATCH 2)
34+
set(${PROJECT_NAME}_VERSION_MINOR 7)
35+
set(${PROJECT_NAME}_VERSION_PATCH 0)
3636
set(${PROJECT_NAME}_VERSION "${${PROJECT_NAME}_VERSION_MAJOR}.${${PROJECT_NAME}_VERSION_MINOR}.${${PROJECT_NAME}_VERSION_PATCH}")
3737

3838
# - Prepend our own CMake Modules to the search path

ReleaseNotes/Beta4.10.7-1.txt

+885
Large diffs are not rendered by default.

ReleaseNotes/Patch4.10.6-1.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ List of fixes included in this public patch since the public release 10.6:
3333
o Turn off verbosity flags by default in G4IntegratorDriver,
3434
G4InterpolationDriver and G4MagIntegratorDriver.
3535
+ navigation:
36-
o Avoid looping infinitely by pushing N times with increasing step size.
37-
Addressing problem report #2196.
36+
o Avoid looping infinitely in G4RegularNavigation by pushing N times
37+
with increasing step size. Addressing problem report #2196.
3838
+ solids/specific:
3939
o Re-established parameterisation mechanism for G4Tet and G4UTet which was
4040
removed by mistake. Addressing problem report #2209.

cmake/History

+99-15
Original file line numberDiff line numberDiff line change
@@ -29,46 +29,130 @@ add this in the documentation for the changed file as [BUGFIX #BUGNUMBER].
2929
* Reverse chronological order (last date on top), please *
3030

3131
----------------------------------------------------------
32-
21st April 2020 - Ben Morgan (cmake-V10-05-39)
33-
- BUGFIX: Only store variables in Geant4PackageCache if they have
34-
a value.
3532

36-
6th April 2020 - Ben Morgan (cmake-V10-05-38)
33+
17th June 2020 - Jonathan Madsen (cmake-V10-06-25)
34+
- Moved TBB before PTL
35+
- Forced PTL_USE_TBB to be set to GEANT4_USE_TBB when not
36+
using system PTL
37+
- Added Geant4::G4ptl ALIAS targets for build tree testing
38+
- Added support for building G4ptl, GEANT4_USE_TBB option
39+
- Updated FindTBB.cmake to be more robust
40+
- Updates to PTL internal/external handling
41+
- fixed PTL find_dependency
42+
43+
15th June 2020 - Gunter Folger (cmake-V10-06-24)
44+
- Switch to G4EMLOW 7.12
45+
46+
8th June 2020 - Ben Morgan (cmake-V10-06-23)
47+
- Default GEANT4_USE_NEW_CMAKE to ON to use new build organization
48+
as the primary system.
49+
- Fix bug in setting of AUTOMOC
50+
- Handle install of G4clhep{-static} independently of main modules
51+
due it being built outside the category system.
52+
- Retain GEANT4_BUILDTREE_INCLUDE_DIRS in new CMake system to support
53+
clients that may not yet support CMake target usage requirements.
54+
- Protect recursion into tests module on existence of the directory
55+
56+
2nd June 2020 - Guilherme Amadio (cmake-V10-06-22)
57+
- Avoid warnings from propagating CMAKE_DISABLE_FIND_PACKAGE_ROOT
58+
down to tests.
59+
60+
30th May 2020 - Ben Morgan (cmake-V10-06-21)
61+
- Modules/Geant4DeveloperAPI.cmake: Import new "target" style API for
62+
declaring and composing libraries from modules of source code.
63+
Provide GEANT4_USE_NEW_CMAKE option, OFF by default, to switch between
64+
systems.
65+
66+
28th May 2020 - Gunter Folger (cmake-V10-06-20)
67+
- Switch to G4EMLOW 7.11
68+
69+
26th May 2020 - Ben Morgan (cmake-V10-06-19)
70+
- Use "VecGeom::vecgeom" as imported target name for VecGeom library
71+
to bring in line with upstream master of VecGeom. Export VecCore_DIR
72+
if it is set to package cache file, as new VecGeomConfig needs to refind
73+
VecCore.
74+
75+
20 May 2020 - Frederick Jones (cmake-V10-06-18)
76+
- Modules/G4InterfaceOptions.cmake: added GEANT4_USE_XM to Open
77+
Inventor X driver code block to correct Xm and Xt link order.
78+
79+
19th May 2020 - Guilherme Amadio (cmake-V10-06-17)
80+
- Propagate value of CMAKE_DISABLE_FIND_PACKAGE_ROOT down to tests
81+
that optionally support ROOT to allow testing Geant4 with ROOT support
82+
disabled. This is necessary when testing Geant4 with a different C++
83+
standard than ROOT when it's installed.
84+
85+
29th April 2020 - Ben Morgan (cmake-V10-06-16)
86+
- Add GEANT4_USE_NEW_CMAKE option in preparation for testing of modular
87+
build updates. Added now to suppress Continuous warnings
88+
89+
22 April 2020 - Frederick Jones (cmake-V10-06-15)
90+
- Modules/G4InterfaceOptions.cmake, Templates/Geant4Config.cmake.in:
91+
Added support for Open Inventor Qt Vis driver to be built
92+
and used in applications. The library can be built with the
93+
OIQT driver, or with the OIX/OIXE drivers, but not both.
94+
95+
6th April 2020 - Ben Morgan (cmake-V10-06-14)
3796
- Activate build of geant4py when GEANT4_USE_PYTHON is set
3897
Check that MT builds use global-dynamic TLS to allow Python
3998
module loading of the Geant4 dynamic libraries.
4099

41-
3rd April 2020 - Guilherme Amadio (cmake-V10-05-37)
100+
21st April 2020 - Ben Morgan (cmake-V10-06-13)
101+
- BUGFIX: Only store variables in Geant4PackageCache if they have
102+
a value.
103+
104+
20th April 2020 - Ben Morgan (cmake-V10-06-12)
105+
- Remove Qt4 support
106+
107+
17th April 2020 - Ben Morgan (cmake-V10-06-11)
108+
- Add GEANT4_USE_PYTHON option to suppress Continuous warnings
109+
110+
3rd April 2020 - Guilherme Amadio (cmake-V10-06-10)
42111
- Use full path to datasets if GEANT4_INSTALL_DATADIR is an absolute path
43112

44-
2nd April 2020 - Guilherme Amadio (cmake-V10-05-36)
113+
2nd April 2020 - Guilherme Amadio (cmake-V10-06-09)
45114
- Customize CMAKE_INSTALL_DATADIR in a single location
46115

47-
18th March 2020 - Gunter Folger (cmake-V10-05-35)
116+
18th March 2020 - Gunter Folger (cmake-V10-06-08)
48117
- In Modules/G4CPack.cmake suppress warnings about icc libraries not existing
49118
for Intel icc version 19.
50119

51-
14th February 2020 - Ben Morgan (cmake-V10-05-34)
120+
16th March 2020 - Gunter Folger (cmake-V10-06-07)
121+
- Switch to G4EMLOW 7.10
122+
123+
14th February 2020 - Ben Morgan (cmake-V10-06-06)
52124
- No longer create gnumake symlinks on Windows
53125
Windows permissions may prevent creation of symlinks, leading to
54126
errors at install time. As gnumake is no longer supported on
55127
Windows, protect symlink creation with test on host platform.
56128

57-
5th February 2020 - Ben Morgan (cmake-V10-05-33)
58-
- Apply patch from TXCorp to allow compilation on Windows using Clang
59-
60-
4th February 2020 - Ben Morgan (cmake-V10-05-32)
129+
4th February 2020 - Ben Morgan (cmake-V10-06-05)
61130
- BUGFIX 2221
62131
Use "${FOO:-}" variable expansion and "-z" test to check for
63132
undefined variables in Bourne Shell scripts. Prevents errors when
64133
shell is in "set -u" mode. Report and patch supplied by Michael Reilly
65134

66-
28th January 2020 - Gunter Folger (cmake-V10-05-31)
67-
- Switch to patched dataset for G4EMLOW 7.9.1
135+
27th January 2020 - Gunter Folger (cmake-V10-06-04)
136+
- Switch to G4EMLOW 7.9.1
68137

69-
15th January 2020 - Ben Morgan (cmake-V10-05-30)
138+
15th January 2020 - Ben Morgan (cmake-V10-06-03)
70139
- Quote VECGEOM_COMPILE_DEFINITIONS to avoid incorrect argument errors
71140

141+
6th January 2020 - Ben Morgan (cmake-V10-06-02)
142+
- Apply patch from TXCorp to allow compilation on Windows using Clang
143+
144+
12th December 2019 - Ben Morgan (cmake-V10-06-01)
145+
- Remove requirement on presence of XQuartz GLU library
146+
- No longer save glu related variables in the package cache
147+
148+
6th December 2019 - Ben Morgan (cmake-V10-06-00)
149+
- Remove obsolete Geant4Wrapping module in preparation for full G4Py
150+
build support
151+
- Rename remaining internal "Geant4..." modules to "G4" convention
152+
Retain Geant4DefineModule and Geant4LibraryTargets until new modularization
153+
scheme in place.
154+
- Format G4ClangFormat
155+
72156
25th November 2019 - Ben Morgan (cmake-V10-05-29)
73157
- Disable configuration of Wt UI/Vis driver due to it no longer
74158
compiling with recent Wt versions

cmake/Modules/CMakeUninstallTarget.cmake

+2-6
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
#
99
#
1010

11-
function(WRITE_UNINSTALL_TARGET_SCRIPT)
11+
function(write_uninstall_target_script)
1212
# Create uninstall target template file, if it doesn't exist...
1313
if(NOT EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/cmake_uninstall.cmake.in)
1414
set(__uninstall_filename ${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake.in)
@@ -42,10 +42,8 @@ endforeach(file)
4242
endif()
4343
endfunction()
4444

45-
46-
4745
# Call the file writing function, if needed
48-
WRITE_UNINSTALL_TARGET_SCRIPT()
46+
write_uninstall_target_script()
4947

5048
# Configure the file that reads the install manifest and processes the files
5149
configure_file(
@@ -56,5 +54,3 @@ configure_file(
5654
# Add the uninstall target
5755
add_custom_target(uninstall
5856
COMMAND ${CMAKE_COMMAND} -P ${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake)
59-
60-

cmake/Modules/FindStatTest.cmake

+14-14
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22
# - Find StatTest
33
# This module tries to find the StatTest application
44
# Once done this will define
5-
#
5+
#
66
# STATTEST_FOUND - Application found
77
# STATTEST_APP - Application
88
# STATTEST_CMD - Command line to run the application
99
# STATTEST_ADD_TEST - Helper function to define a ctest using
1010
# StatTest (Only if we are using for G4 testing)
1111
#
12-
# Variables used by this module, which can change the default behaviour
12+
# Variables used by this module, which can change the default behaviour
1313
# and need to be set before calling find_package
1414
#
1515
# STATTEST_ROOT_DIR Root directory to StatTest package
@@ -22,7 +22,7 @@ if(NOT GEANT4_ENABLE_TESTING)
2222
endif()
2323

2424
#Search application
25-
#Note that the second suggested path is G4 specific...
25+
#Note that the second suggested path is G4 specific...
2626
find_path(STATTEST_APP_DIR
2727
NAMES StatTestVersion.py
2828
PATHS ${STATTEST_ROOT_DIR} ${CMAKE_SOURCE_DIR}/verification/StatTest
@@ -43,7 +43,7 @@ if(NOT ROOT_FOUND)
4343
set(_root_isok FALSE)
4444
else()
4545
set(_root_isok TRUE)
46-
# - Check if python interpreter is correct version
46+
# - Check if python interpreter is correct version
4747
# (the one compatible with root)
4848
find_package(PythonInterp ${ROOT_PYTHONVER} QUIET)
4949
if(NOT PYTHONINTERP_FOUND)
@@ -70,9 +70,9 @@ if(STATTEST_FOUND)
7070
set(STATTEST_APP ${STATTEST_APP_DIR}/runtests.py)
7171
set(STATTEST_CMD ${PYTHON_EXECUTABLE} ${STATTEST_APP})
7272

73-
# Let's create a function that helps in building tests for
73+
# Let's create a function that helps in building tests for
7474
# regression testing
75-
# function STATTEST_ADD_TEST(<name>
75+
# function STATTEST_ADD_TEST(<name>
7676
# G4TEST testname
7777
# CONFIG conffile
7878
# INPUT inputfile
@@ -82,7 +82,7 @@ if(STATTEST_FOUND)
8282
# [LABELS label1 label2 ...]
8383
# [IMG filename])
8484
function(STATTEST_ADD_TEST stattest)
85-
CMAKE_PARSE_ARGUMENTS(ARG "DEBUG;TEXT"
85+
CMAKE_PARSE_ARGUMENTS(ARG "DEBUG;TEXT"
8686
"CONFIG;INPUT;REFERENCE;G4TEST;IMG"
8787
"LABELS" ${ARGN}
8888
)
@@ -91,12 +91,12 @@ if(STATTEST_FOUND)
9191
if(_len LESS 1)
9292
message(FATAL_ERROR "STATTEST_ADD_TEST: conffile is mandatory")
9393
endif()
94-
94+
9595
list(LENGTH ARG_INPUT _len)
9696
if(_len LESS 1)
9797
message(FATAL_ERROR "STATTEST_ADD_TEST: inputfile is mandatory")
9898
endif()
99-
99+
100100
list(LENGTH ARG_G4TEST _len)
101101
if(_len LESS 1)
102102
message(FATAL_ERROR "STATTEST_ADD_TEST: testname is mandatory")
@@ -108,10 +108,10 @@ if(STATTEST_FOUND)
108108
else()
109109
set(_command ${STATTEST_CMD})
110110
endif()
111-
111+
112112
if(ARG_TEXT)
113113
set(_command ${_command} "-T")
114-
endif()
114+
endif()
115115

116116
#Mandatory parameters
117117
set(_command ${_command} ${ARG_CONFIG} ${ARG_INPUT})
@@ -125,10 +125,10 @@ if(STATTEST_FOUND)
125125
set(_labels "")
126126
endif()
127127

128-
include(Geant4CTest)
129-
128+
include(G4CTest)
129+
130130
#Now build G4 test
131-
GEANT4_ADD_TEST(${stattest}
131+
GEANT4_ADD_TEST(${stattest}
132132
COMMAND ${_command}
133133
DEPENDS ${ARG_G4TEST}
134134
LABELS ${_labels}

0 commit comments

Comments
 (0)