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.
Files changed (54) hide show
  1. adani-0.10/.gitignore +12 -0
  2. adani-0.10/.pre-commit-config.yaml +9 -0
  3. adani-0.10/CMakeLists.txt +119 -0
  4. adani-0.10/LICENSE +674 -0
  5. adani-0.10/PKG-INFO +83 -0
  6. adani-0.10/README.md +73 -0
  7. adani-0.10/_skbuild/macosx-13.0-arm64-3.10/cmake-install/inc/adani/__init__.py +1 -0
  8. adani-0.10/_skbuild/macosx-13.0-arm64-3.10/cmake-install/inc/adani/_core.cpython-310-darwin.so +0 -0
  9. adani-0.10/bin/adani-config.in +45 -0
  10. adani-0.10/bin/adani.pc.in +10 -0
  11. adani-0.10/docs/Tesi_Laurenti.pdf +0 -0
  12. adani-0.10/examples/test.cpp +39 -0
  13. adani-0.10/examples/test.py +14 -0
  14. adani-0.10/inc/adani/ApproximateCoefficientFunctions.h +114 -0
  15. adani-0.10/inc/adani/AsymptoticCoefficientFunctions.h +51 -0
  16. adani-0.10/inc/adani/Constants.h +27 -0
  17. adani-0.10/inc/adani/Convolutions.h +215 -0
  18. adani-0.10/inc/adani/ExactCoefficientFunctions.h +107 -0
  19. adani-0.10/inc/adani/HighEnergyCoefficientFunctions.h +123 -0
  20. adani-0.10/inc/adani/HighScaleCoefficientFunctions.h +77 -0
  21. adani-0.10/inc/adani/MasslessCoefficientFunctions.h +55 -0
  22. adani-0.10/inc/adani/MatchingConditions.h +39 -0
  23. adani-0.10/inc/adani/SpecialFunctions.h +72 -0
  24. adani-0.10/inc/adani/SplittingFunctions.h +52 -0
  25. adani-0.10/inc/adani/ThresholdCoefficientFunctions.h +57 -0
  26. adani-0.10/inc/adani/__init__.py +1 -0
  27. adani-0.10/inc/adani/adani.h +17 -0
  28. adani-0.10/inc/adani/version.h.in +1 -0
  29. adani-0.10/inc/adani.egg-info/PKG-INFO +83 -0
  30. adani-0.10/inc/adani.egg-info/SOURCES.txt +52 -0
  31. adani-0.10/inc/adani.egg-info/dependency_links.txt +1 -0
  32. adani-0.10/inc/adani.egg-info/top_level.txt +1 -0
  33. adani-0.10/output/Q.txt +1 -0
  34. adani-0.10/output/output_grid.cpp +123 -0
  35. adani-0.10/output/output_grid.py +70 -0
  36. adani-0.10/output/runcard.yaml +8 -0
  37. adani-0.10/output/x.txt +1 -0
  38. adani-0.10/pyproject.toml +8 -0
  39. adani-0.10/pywrap/pywrap.cc +146 -0
  40. adani-0.10/setup.cfg +4 -0
  41. adani-0.10/setup.py +33 -0
  42. adani-0.10/src/ApproximateCoefficientFunctions.cc +1683 -0
  43. adani-0.10/src/AsymptoticCoefficientFunctions.cc +114 -0
  44. adani-0.10/src/Convolutions.cc +2098 -0
  45. adani-0.10/src/ExactCoefficientFunctions.cc +486 -0
  46. adani-0.10/src/HighEnergyCoefficientFunctions.cc +1090 -0
  47. adani-0.10/src/HighScaleCoefficientFunctions.cc +3125 -0
  48. adani-0.10/src/MasslessCoefficientFunctions.cc +416 -0
  49. adani-0.10/src/MatchingConditions.cc +898 -0
  50. adani-0.10/src/SpecialFunctions.cc +316 -0
  51. adani-0.10/src/SplittingFunctions.cc +298 -0
  52. adani-0.10/src/ThresholdCoefficientFunctions.cc +338 -0
  53. adani-0.10/src/hplog.f +12354 -0
  54. adani-0.10/src/hqcoef.f +12396 -0
adani-0.10/.gitignore ADDED
@@ -0,0 +1,12 @@
1
+ .DS_Store
2
+ .vscode/
3
+ output/output_grid.exe
4
+ build/
5
+ _skbuild/
6
+ adani.egg-info/
7
+ examples/test.exe
8
+ output/results
9
+ output/*.dat
10
+ inc/adani/version.h
11
+ bin/adani-config
12
+ bin/adani.pc
@@ -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)