Skip to content

Commit bec4c81

Browse files
committed
Update coulomb galore
1 parent e15f4a5 commit bec4c81

File tree

3 files changed

+6
-33
lines changed

3 files changed

+6
-33
lines changed

cmake/ExternalTools.cmake

Lines changed: 4 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,13 @@ include(FetchContent)
77

88
CPMAddPackage("gh:gabime/[email protected]")
99
CPMAddPackage("gh:ericniebler/range-v3#0.12.0")
10+
CPMAddPackage("gh:nlohmann/[email protected]")
1011
CPMAddPackage("gh:docopt/docopt.cpp#v0.6.3")
1112
CPMAddPackage("gh:doctest/doctest#v2.4.11")
1213
CPMAddPackage("gh:mateidavid/zstr#v1.0.7")
1314
CPMAddPackage("gh:martinus/nanobench#v4.3.11")
1415
CPMAddPackage("gh:pybind/pybind11#v2.12.0")
16+
CPMAddPackage("gh:mlund/coulombgalore#a646d4d2467442175333307ff91048b6d777cb13")
1517
CPMAddPackage("gh:imneme/pcg-cpp#ffd522e7188bef30a00c74dc7eb9de5faff90092")
1618
CPMAddPackage("gh:ArashPartow/exprtk#cc1b800c2bd1ac3ac260478c915d2aec6f4eb41c")
1719

@@ -20,12 +22,6 @@ CPMAddPackage(
2022
GIT_TAG v0.4.0
2123
)
2224

23-
CPMAddPackage(
24-
NAME nlohmann_json VERSION 3.12.0
25-
URL https://github.com/nlohmann/json/releases/download/v3.12.0/include.zip
26-
OPTIONS "JSON_BuildTests OFF"
27-
)
28-
2925
CPMAddPackage(
3026
NAME Eigen VERSION 3.4.0 DOWNLOAD_ONLY YES
3127
URL https://gitlab.com/libeigen/eigen/-/archive/3.4.0/eigen-3.4.0.tar.gz
@@ -46,11 +42,6 @@ CPMAddPackage("gh:pybind/pybind11_json#0.2.14")
4642
set_property(TARGET spdlog PROPERTY POSITION_INDEPENDENT_CODE ON)
4743
set_property(TARGET docopt PROPERTY POSITION_INDEPENDENT_CODE ON)
4844

49-
if (nlohmann_json_ADDED)
50-
add_library(nlohmann_json INTERFACE IMPORTED)
51-
target_include_directories(nlohmann_json INTERFACE ${nlohmann_json_SOURCE_DIR}/include)
52-
endif()
53-
5445
add_compile_definitions("NLOHMANN_JSON_HPP") # older versions used this macro. Now it's suffixed with "_"
5546

5647
if(mpl_ADDED)
@@ -202,26 +193,9 @@ if (ENABLE_FREESASA)
202193
add_dependencies(freesasa project_freesasa)
203194
endif ()
204195

205-
################
206-
# COULOMBGALORE
207-
################
208-
209-
FetchContent_Declare(
210-
coulombgalore
211-
URL https://github.com/mlund/coulombgalore/archive/4055f58538d781acccb2937ab4580855fcba31f8.tar.gz
212-
URL_HASH MD5=922f0c5988c0f70c887d65b7cf2762ac
213-
BUILD_COMMAND ""
214-
INSTALL_COMMAND ""
215-
EXCLUDE_FROM_ALL
216-
DOWNLOAD_EXTRACT_TIMESTAMP true)
217-
FetchContent_GetProperties(coulombgalore)
218-
if(NOT coulombgalore_POPULATED)
219-
FetchContent_MakeAvailable(coulombgalore)
220-
endif()
221-
include_directories(SYSTEM ${coulombgalore_SOURCE_DIR})
222-
223196
# Add third-party headers to include path. Note this is done with SYSTEM
224197
# to disable potential compiler warnings
225198

226-
include_directories(SYSTEM ${trompeloeil_SOURCE_DIR}/include ${nanobench_SOURCE_DIR}/src/include
199+
include_directories(SYSTEM ${trompeloeil_SOURCE_DIR}/include ${nanobench_SOURCE_DIR}/src/include ${Eigen_SOURCE_DIR}
200+
${coulombgalore_SOURCE_DIR}/include
227201
${Pybind11IncludeDir} ${CppsidIncludeDir} ${XdrfileIncludeDir} ${ProgressTrackerIncludeDir} ${doctest_SOURCE_DIR})

src/potentials.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
#include "auxiliary.h"
55
#include "aux/arange.h"
66
#include "smart_montecarlo.h"
7-
#include <coulombgalore.h>
87
#include <spdlog/spdlog.h>
98

109
#include <utility>

src/potentials.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#include "functionparser.h"
55
#include "multipole.h"
66
#include "spherocylinder.h"
7-
#include <coulombgalore.h>
7+
#include <coulombgalore/all.hpp>
88

99
namespace Faunus::pairpotential {
1010

@@ -741,4 +741,4 @@ class SplinedPotential : public FunctorPotential
741741
}
742742
};
743743

744-
} // namespace Faunus::pairpotential
744+
} // namespace Faunus::pairpotential

0 commit comments

Comments
 (0)