Skip to content
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

Get rid of range() #13

Closed
wants to merge 13 commits into from
19 changes: 13 additions & 6 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#---------------------------------*-CMake-*----------------------------------#
# Copyright 2020-2024 UT-Battelle, LLC, and other Celeritas developers.
# See the top-level COPYRIGHT file for details.
#------------------------------- -*- cmake -*- -------------------------------#
# Copyright G4VG contributors: see top-level COPYRIGHT file for details
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
#----------------------------------------------------------------------------#

Expand All @@ -25,6 +24,7 @@ endmacro()
# Options

option(G4VG_BUILD_TESTS "Build G4VG unit tests" OFF)
option(G4VG_DEBUG "Add runtime assertions" ON)
g4vg_set_default(BUILD_TESTING ${G4VG_BUILD_TESTS})

g4vg_set_default(CMAKE_CXX_EXTENSIONS OFF)
Expand All @@ -38,13 +38,20 @@ find_package(Geant4 REQUIRED)
find_package(VecGeom REQUIRED)

# Celeritas *might* be coming from a superproject...
if(NOT Celeritas_FOUND)
find_package(Celeritas QUIET)
if(G4VG_BUILD_TESTS)
if(NOT Celeritas_FOUND)
add_subdirectory(external)
find_package(Celeritas QUIET)
if(NOT Celeritas_FOUND)
add_subdirectory(external)
endif()
endif()
endif()

if(NOT Celeritas_FOUND)
# Load CUDA RDC utils from VecGeom
include(CudaRdcUtils)
endif()

#----------------------------------------------------------------------------#
# Add code

Expand Down
43 changes: 43 additions & 0 deletions COPYRIGHT
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
Intellectual Property Notice
----------------------------

G4VG is licensed under the Apache License, Version 2.0 (LICENSE-APACHE
or http://www.apache.org/licenses/LICENSE-2.0) or the MIT license,
(LICENSE-MIT or http://opensource.org/licenses/MIT), at your option.

Copyrights and patents in the G4VG project are retained by contributors.
No copyright assignment is required to contribute to G4VG, but by
submitting content in a pull request, you are confirming that you have the
right to make your contribution to G4VG, and that if you are making your
contribution in the course of your employment, that such contributions are
authorized by your employer.

G4VG is primarily extracted from Celeritas, which was originally developed in
2020 by developers at Oak Ridge National Laboratory (UT-Battelle, LLC), Fermi
National Accelerator Laboratory (Fermi Research Alliance, LLC), Argonne
National Laboratory (UChicago Argonne, LLC), and Lawrence Berkeley National
Laboratory (University of California).

The original G4VG code was based loosely on G4VecGeomNav by S Wenzel et al.


SPDX usage
----------

Individual files contain SPDX tags instead of the full license text.
This enables machine processing of license information based on the SPDX
License Identifiers that are available here: https://spdx.org/licenses/

Files that are dual-licensed as Apache-2.0 OR MIT contain the following
text in the license header:

SPDX-License-Identifier: (Apache-2.0 OR MIT)


Software derived from external sources used in Celeritas
--------------------------------------------------------

Certain files in Celeritas are derived from external projects. The top of each
such file contains the attribution, the license's SPDX identifier, and a link
to the license. Full copies of the licenses are included in the online user
documentation.
201 changes: 0 additions & 201 deletions LICENSE

This file was deleted.

Loading
Loading