adani 0.10__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- adani-0.10/.gitignore +12 -0
- adani-0.10/.pre-commit-config.yaml +9 -0
- adani-0.10/CMakeLists.txt +119 -0
- adani-0.10/LICENSE +674 -0
- adani-0.10/PKG-INFO +83 -0
- adani-0.10/README.md +73 -0
- adani-0.10/_skbuild/macosx-13.0-arm64-3.10/cmake-install/inc/adani/__init__.py +1 -0
- adani-0.10/_skbuild/macosx-13.0-arm64-3.10/cmake-install/inc/adani/_core.cpython-310-darwin.so +0 -0
- adani-0.10/bin/adani-config.in +45 -0
- adani-0.10/bin/adani.pc.in +10 -0
- adani-0.10/docs/Tesi_Laurenti.pdf +0 -0
- adani-0.10/examples/test.cpp +39 -0
- adani-0.10/examples/test.py +14 -0
- adani-0.10/inc/adani/ApproximateCoefficientFunctions.h +114 -0
- adani-0.10/inc/adani/AsymptoticCoefficientFunctions.h +51 -0
- adani-0.10/inc/adani/Constants.h +27 -0
- adani-0.10/inc/adani/Convolutions.h +215 -0
- adani-0.10/inc/adani/ExactCoefficientFunctions.h +107 -0
- adani-0.10/inc/adani/HighEnergyCoefficientFunctions.h +123 -0
- adani-0.10/inc/adani/HighScaleCoefficientFunctions.h +77 -0
- adani-0.10/inc/adani/MasslessCoefficientFunctions.h +55 -0
- adani-0.10/inc/adani/MatchingConditions.h +39 -0
- adani-0.10/inc/adani/SpecialFunctions.h +72 -0
- adani-0.10/inc/adani/SplittingFunctions.h +52 -0
- adani-0.10/inc/adani/ThresholdCoefficientFunctions.h +57 -0
- adani-0.10/inc/adani/__init__.py +1 -0
- adani-0.10/inc/adani/adani.h +17 -0
- adani-0.10/inc/adani/version.h.in +1 -0
- adani-0.10/inc/adani.egg-info/PKG-INFO +83 -0
- adani-0.10/inc/adani.egg-info/SOURCES.txt +52 -0
- adani-0.10/inc/adani.egg-info/dependency_links.txt +1 -0
- adani-0.10/inc/adani.egg-info/top_level.txt +1 -0
- adani-0.10/output/Q.txt +1 -0
- adani-0.10/output/output_grid.cpp +123 -0
- adani-0.10/output/output_grid.py +70 -0
- adani-0.10/output/runcard.yaml +8 -0
- adani-0.10/output/x.txt +1 -0
- adani-0.10/pyproject.toml +8 -0
- adani-0.10/pywrap/pywrap.cc +146 -0
- adani-0.10/setup.cfg +4 -0
- adani-0.10/setup.py +33 -0
- adani-0.10/src/ApproximateCoefficientFunctions.cc +1683 -0
- adani-0.10/src/AsymptoticCoefficientFunctions.cc +114 -0
- adani-0.10/src/Convolutions.cc +2098 -0
- adani-0.10/src/ExactCoefficientFunctions.cc +486 -0
- adani-0.10/src/HighEnergyCoefficientFunctions.cc +1090 -0
- adani-0.10/src/HighScaleCoefficientFunctions.cc +3125 -0
- adani-0.10/src/MasslessCoefficientFunctions.cc +416 -0
- adani-0.10/src/MatchingConditions.cc +898 -0
- adani-0.10/src/SpecialFunctions.cc +316 -0
- adani-0.10/src/SplittingFunctions.cc +298 -0
- adani-0.10/src/ThresholdCoefficientFunctions.cc +338 -0
- adani-0.10/src/hplog.f +12354 -0
- adani-0.10/src/hqcoef.f +12396 -0
adani-0.10/.gitignore
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# See https://pre-commit.com for more information
|
|
2
|
+
# See https://pre-commit.com/hooks.html for more hooks
|
|
3
|
+
repos:
|
|
4
|
+
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
5
|
+
rev: v3.2.0
|
|
6
|
+
hooks:
|
|
7
|
+
- id: trailing-whitespace
|
|
8
|
+
- id: end-of-file-fixer
|
|
9
|
+
- id: check-yaml
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
# BASIC DEFINITIONS ========================================================================
|
|
2
|
+
|
|
3
|
+
# define minimum version of cmake
|
|
4
|
+
cmake_minimum_required (VERSION 3.15)
|
|
5
|
+
|
|
6
|
+
if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)
|
|
7
|
+
message(STATUS "Setting build type to 'Release' as none was specified.")
|
|
8
|
+
set(CMAKE_BUILD_TYPE Release CACHE STRING "Choose the type of build." FORCE)
|
|
9
|
+
# Set the possible values of build type for cmake-gui
|
|
10
|
+
set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS "Debug" "Release"
|
|
11
|
+
"MinSizeRel" "RelWithDebInfo")
|
|
12
|
+
endif()
|
|
13
|
+
|
|
14
|
+
# define project name and its language
|
|
15
|
+
project(adani VERSION 0.10) # el diez
|
|
16
|
+
|
|
17
|
+
# define c++ standard and issue all the warning demanded by this standard
|
|
18
|
+
set(CMAKE_CXX_STANDARD 14)
|
|
19
|
+
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
|
20
|
+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -fPIC")
|
|
21
|
+
enable_language(Fortran)
|
|
22
|
+
set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -fPIC")
|
|
23
|
+
|
|
24
|
+
if (NOT DEFINED CMAKE_MACOSX_RPATH)
|
|
25
|
+
set(CMAKE_MACOSX_RPATH 0)
|
|
26
|
+
endif()
|
|
27
|
+
|
|
28
|
+
# Configuration script
|
|
29
|
+
set(prefix ${CMAKE_INSTALL_PREFIX})
|
|
30
|
+
set(exec_prefix "${prefix}")
|
|
31
|
+
set(includedir "${prefix}/include")
|
|
32
|
+
set(libdir "${prefix}/lib")
|
|
33
|
+
|
|
34
|
+
# export version to file
|
|
35
|
+
configure_file(
|
|
36
|
+
"${PROJECT_SOURCE_DIR}/inc/adani/version.h.in"
|
|
37
|
+
"${PROJECT_SOURCE_DIR}/inc/adani/version.h"
|
|
38
|
+
)
|
|
39
|
+
|
|
40
|
+
configure_file(
|
|
41
|
+
"${PROJECT_SOURCE_DIR}/bin/adani-config.in"
|
|
42
|
+
"${PROJECT_SOURCE_DIR}/bin/adani-config"
|
|
43
|
+
)
|
|
44
|
+
configure_file(
|
|
45
|
+
"${PROJECT_SOURCE_DIR}/bin/adani.pc.in"
|
|
46
|
+
"${PROJECT_SOURCE_DIR}/bin/adani.pc"
|
|
47
|
+
)
|
|
48
|
+
|
|
49
|
+
include_directories(inc)
|
|
50
|
+
|
|
51
|
+
# find gsl
|
|
52
|
+
find_package(GSL REQUIRED)
|
|
53
|
+
|
|
54
|
+
# FINALIZE ==================================================================================
|
|
55
|
+
|
|
56
|
+
option(PYTHON_ONLY "Compiles only for python." OFF)
|
|
57
|
+
|
|
58
|
+
# pybind11
|
|
59
|
+
if(PYTHON_ONLY)
|
|
60
|
+
if(SKBUILD)
|
|
61
|
+
message("Found skbuild")
|
|
62
|
+
execute_process(
|
|
63
|
+
COMMAND "${PYTHON_EXECUTABLE}" -c
|
|
64
|
+
"import pybind11; print(pybind11.get_cmake_dir())"
|
|
65
|
+
OUTPUT_VARIABLE _tmp_dir
|
|
66
|
+
OUTPUT_STRIP_TRAILING_WHITESPACE COMMAND_ECHO STDOUT)
|
|
67
|
+
list(APPEND CMAKE_PREFIX_PATH "${_tmp_dir}")
|
|
68
|
+
endif(SKBUILD)
|
|
69
|
+
find_package(pybind11 CONFIG REQUIRED)
|
|
70
|
+
pybind11_add_module(
|
|
71
|
+
_core MODULE
|
|
72
|
+
pywrap/pywrap.cc
|
|
73
|
+
src/ApproximateCoefficientFunctions.cc
|
|
74
|
+
src/ExactCoefficientFunctions.cc
|
|
75
|
+
src/ThresholdCoefficientFunctions.cc
|
|
76
|
+
src/AsymptoticCoefficientFunctions.cc
|
|
77
|
+
src/MasslessCoefficientFunctions.cc
|
|
78
|
+
src/Convolutions.cc
|
|
79
|
+
src/MatchingConditions.cc
|
|
80
|
+
src/hplog.f
|
|
81
|
+
src/HighEnergyCoefficientFunctions.cc
|
|
82
|
+
src/SpecialFunctions.cc
|
|
83
|
+
src/hqcoef.f
|
|
84
|
+
src/HighScaleCoefficientFunctions.cc
|
|
85
|
+
src/SplittingFunctions.cc
|
|
86
|
+
)
|
|
87
|
+
target_link_libraries(_core PRIVATE GSL::gsl GSL::gslcblas)
|
|
88
|
+
target_compile_definitions(_core PRIVATE VERSION_INFO=${PROJECT_VERSION})
|
|
89
|
+
install(TARGETS _core DESTINATION .)
|
|
90
|
+
|
|
91
|
+
else(PYTHON_ONLY)
|
|
92
|
+
add_library(
|
|
93
|
+
adani SHARED
|
|
94
|
+
src/ApproximateCoefficientFunctions.cc
|
|
95
|
+
src/ExactCoefficientFunctions.cc
|
|
96
|
+
src/ThresholdCoefficientFunctions.cc
|
|
97
|
+
src/AsymptoticCoefficientFunctions.cc
|
|
98
|
+
src/MasslessCoefficientFunctions.cc
|
|
99
|
+
src/Convolutions.cc
|
|
100
|
+
src/MatchingConditions.cc
|
|
101
|
+
src/hplog.f
|
|
102
|
+
src/HighEnergyCoefficientFunctions.cc
|
|
103
|
+
src/SpecialFunctions.cc
|
|
104
|
+
src/hqcoef.f
|
|
105
|
+
src/HighScaleCoefficientFunctions.cc
|
|
106
|
+
src/SplittingFunctions.cc
|
|
107
|
+
)
|
|
108
|
+
|
|
109
|
+
# define libraries to be linked
|
|
110
|
+
target_link_libraries(adani GSL::gsl GSL::gslcblas)
|
|
111
|
+
|
|
112
|
+
# install
|
|
113
|
+
install(FILES ${PROJECT_SOURCE_DIR}/bin/adani-config
|
|
114
|
+
DESTINATION bin PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE)
|
|
115
|
+
install(FILES ${PROJECT_SOURCE_DIR}/bin/adani.pc DESTINATION lib/pkgconfig)
|
|
116
|
+
install(DIRECTORY inc/adani DESTINATION include)
|
|
117
|
+
install(TARGETS adani DESTINATION lib)
|
|
118
|
+
|
|
119
|
+
endif (PYTHON_ONLY)
|