aboutsummaryrefslogtreecommitdiff
path: root/science/helfem/files
diff options
context:
space:
mode:
Diffstat (limited to 'science/helfem/files')
-rw-r--r--science/helfem/files/patch-CMakeLists.txt11
-rw-r--r--science/helfem/files/patch-src_general_dftfuncs.cpp38
2 files changed, 11 insertions, 38 deletions
diff --git a/science/helfem/files/patch-CMakeLists.txt b/science/helfem/files/patch-CMakeLists.txt
new file mode 100644
index 000000000000..0a3cbc833542
--- /dev/null
+++ b/science/helfem/files/patch-CMakeLists.txt
@@ -0,0 +1,11 @@
+--- CMakeLists.txt.orig 2025-11-06 01:10:35 UTC
++++ CMakeLists.txt
+@@ -1,7 +1,7 @@ project (helfem CXX Fortran)
+ # CMake project file for HelFEM
+ cmake_minimum_required (VERSION 3.5)
+ project (helfem CXX Fortran)
+-set(CMAKE_CXX_STANDARD 11)
++set(CMAKE_CXX_STANDARD 14)
+
+ # Ensure we are building out-of-source so that the tests work (issue 120)
+ get_filename_component(srcdir "${CMAKE_SOURCE_DIR}" REALPATH)
diff --git a/science/helfem/files/patch-src_general_dftfuncs.cpp b/science/helfem/files/patch-src_general_dftfuncs.cpp
deleted file mode 100644
index 999399167b70..000000000000
--- a/science/helfem/files/patch-src_general_dftfuncs.cpp
+++ /dev/null
@@ -1,38 +0,0 @@
---- src/general/dftfuncs.cpp.orig 2021-09-12 09:32:14 UTC
-+++ src/general/dftfuncs.cpp
-@@ -388,7 +388,7 @@ double exact_exchange(int func_id) {
- throw std::runtime_error(oss.str());
- }
-
--#if XC_MAJOR_VERSION < 6
-+#if XC_MAJOR_VERSION < 7
- switch(func.info->family)
- {
- #ifdef XC_FAMILY_HYB_LDA
-@@ -431,7 +431,7 @@ bool is_supported(int func_id) {
- throw std::runtime_error(oss.str());
- }
- // Get flag
--#if XC_MAJOR_VERSION >= 6
-+#if XC_MAJOR_VERSION > 6
- switch(xc_hyb_type(&func)) {
- case(XC_HYB_SEMILOCAL):
- case(XC_HYB_HYBRID):
-@@ -463,7 +463,7 @@ void is_range_separated(int func_id, bool & erf, bool
- throw std::runtime_error(oss.str());
- }
- // Get flag
--#if XC_MAJOR_VERSION < 6
-+#if XC_MAJOR_VERSION < 7
- erf=(func.info->flags & XC_FLAGS_HYB_CAM) || (func.info->flags & XC_FLAGS_HYB_LC);
- yukawa=(func.info->flags & XC_FLAGS_HYB_CAMY) || (func.info->flags & XC_FLAGS_HYB_LCY);
- #else
-@@ -507,7 +507,7 @@ void range_separation(int func_id, double & omega, dou
- throw std::runtime_error(oss.str());
- }
-
--#if XC_MAJOR_VERSION >= 6
-+#if XC_MAJOR_VERSION > 6
- switch(xc_hyb_type(&func)) {
- case(XC_HYB_SEMILOCAL):
- break;