Skip to content

Commit 27527f8

Browse files
committed
Merge branch 'stage-0.10' into release
2 parents 638d46b + 6d29511 commit 27527f8

File tree

6 files changed

+90
-22
lines changed

6 files changed

+90
-22
lines changed

CHANGELOG.rst

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,21 @@
22
Change Log
33
==========
44

5+
6+
0.10
7+
====
8+
9+
Added
10+
-----
11+
12+
* CMake based build system
13+
14+
Fixed
15+
-----
16+
17+
* Corrected entry in the <r^2>/<r^4> data for Ba
18+
19+
520
0.9.2
621
=====
722

CMakeLists.txt

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
cmake_minimum_required(VERSION 3.5)
2+
3+
project(libdftd3 VERSION 0.10 LANGUAGES Fortran)
4+
5+
option(BUILD_SHARED_LIBS "Whether the library should be a shared one" FALSE)
6+
7+
option(INSTALL_INCLUDE_FILES "Whether include / module files should be installed" TRUE)
8+
9+
set(INSTALL_MODDIR "dftd3/modfiles" CACHE PATH
10+
"Installation directory for Fortran module files (within standard include folder)")
11+
12+
add_subdirectory(lib)
13+
if(NOT LIBRARY_ONLY)
14+
add_subdirectory(prg)
15+
endif()

README.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ split into two parts:
1313
* A library with the core functionality. This can be directly used by third
1414
party applications wishing to calculate dispersion with the DFT-D3
1515
approach.
16-
16+
1717
* Additional extensions which are necessary for the command line tool DFTD3 and
1818
the command line tool itself.
1919

@@ -46,8 +46,8 @@ When using the library or the dftd3 tool, please cite:
4646

4747
S. Grimme, J. Antony, S. Ehrlich and H. Krieg
4848
J. Chem. Phys, 132 (2010), 154104.
49-
50-
If BJ-damping is used
49+
50+
If BJ-damping is used
5151

5252
S. Grimme, S. Ehrlich and L. Goerigk
5353
J. Comput. Chem, 32 (2011), 1456-1465.

lib/CMakeLists.txt

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
set(sources
2+
api.f90
3+
common.f90
4+
core.f90
5+
pars.f90
6+
sizes.f90)
7+
8+
add_library(dftd3 ${sources})
9+
10+
set(includedir ${CMAKE_CURRENT_BINARY_DIR}/include)
11+
12+
set_target_properties(dftd3 PROPERTIES Fortran_MODULE_DIRECTORY ${includedir})
13+
14+
target_include_directories(dftd3 PUBLIC
15+
$<BUILD_INTERFACE:${includedir}>
16+
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}/${INSTALL_MODDIR}>)
17+
18+
install(TARGETS dftd3
19+
EXPORT ${INSTALL_EXPORT_NAME}
20+
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
21+
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR})
22+
23+
if(INSTALL_INCLUDE_FILES)
24+
install(DIRECTORY ${includedir}/ DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/${INSTALL_MODDIR})
25+
endif()
26+

lib/core.f90

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -40,25 +40,25 @@ module dftd3_core
4040
! with older versions. They should not imply any higher accuracy than
4141
! the old values
4242
data r2r4 / &
43-
&2.00734898_wp, 1.56637132_wp, 5.01986934_wp, 3.85379032_wp, 3.64446594_wp,&
44-
&3.10492822_wp, 2.71175247_wp, 2.59361680_wp, 2.38825250_wp, 2.21522516_wp,&
45-
&6.58585536_wp, 5.46295967_wp, 5.65216669_wp, 4.88284902_wp, 4.29727576_wp,&
46-
&4.04108902_wp, 3.72932356_wp, 3.44677275_wp, 7.97762753_wp, 7.07623947_wp,&
47-
&6.60844053_wp, 6.28791364_wp, 6.07728703_wp, 5.54643096_wp, 5.80491167_wp,&
48-
&5.58415602_wp, 5.41374528_wp, 5.28497229_wp, 5.22592821_wp, 5.09817141_wp,&
49-
&6.12149689_wp, 5.54083734_wp, 5.06696878_wp, 4.87005108_wp, 4.59089647_wp,&
50-
&4.31176304_wp, 9.55461698_wp, 8.67396077_wp, 7.97210197_wp, 7.43439917_wp,&
51-
&6.58711862_wp, 6.19536215_wp, 6.01517290_wp, 5.81623410_wp, 5.65710424_wp,&
52-
&5.52640661_wp, 5.44263305_wp, 5.58285373_wp, 7.02081898_wp, 6.46815523_wp,&
53-
&5.98089120_wp, 5.81686657_wp, 5.53321815_wp, 5.25477007_wp,11.02204549_wp,&
54-
&0.15679528_wp, 9.35167836_wp, 9.06926079_wp, 8.97241155_wp, 8.90092807_wp,&
55-
&8.85984840_wp, 8.81736827_wp, 8.79317710_wp, 7.89969626_wp, 8.80588454_wp,&
56-
&8.42439218_wp, 8.54289262_wp, 8.47583370_wp, 8.45090888_wp, 8.47339339_wp,&
57-
&7.83525634_wp, 8.20702843_wp, 7.70559063_wp, 7.32755997_wp, 7.03887381_wp,&
58-
&6.68978720_wp, 6.05450052_wp, 5.88752022_wp, 5.70661499_wp, 5.78450695_wp,&
59-
&7.79780729_wp, 7.26443867_wp, 6.78151984_wp, 6.67883169_wp, 6.39024318_wp,&
60-
&6.09527958_wp,11.79156076_wp,11.10997644_wp, 9.51377795_wp, 8.67197068_wp,&
61-
&8.77140725_wp, 8.65402716_wp, 8.53923501_wp, 8.85024712_wp /
43+
& 2.00734898_wp, 1.56637132_wp, 5.01986934_wp, 3.85379032_wp, 3.64446594_wp,&
44+
& 3.10492822_wp, 2.71175247_wp, 2.59361680_wp, 2.38825250_wp, 2.21522516_wp,&
45+
& 6.58585536_wp, 5.46295967_wp, 5.65216669_wp, 4.88284902_wp, 4.29727576_wp,&
46+
& 4.04108902_wp, 3.72932356_wp, 3.44677275_wp, 7.97762753_wp, 7.07623947_wp,&
47+
& 6.60844053_wp, 6.28791364_wp, 6.07728703_wp, 5.54643096_wp, 5.80491167_wp,&
48+
& 5.58415602_wp, 5.41374528_wp, 5.28497229_wp, 5.22592821_wp, 5.09817141_wp,&
49+
& 6.12149689_wp, 5.54083734_wp, 5.06696878_wp, 4.87005108_wp, 4.59089647_wp,&
50+
& 4.31176304_wp, 9.55461698_wp, 8.67396077_wp, 7.97210197_wp, 7.43439917_wp,&
51+
& 6.58711862_wp, 6.19536215_wp, 6.01517290_wp, 5.81623410_wp, 5.65710424_wp,&
52+
& 5.52640661_wp, 5.44263305_wp, 5.58285373_wp, 7.02081898_wp, 6.46815523_wp,&
53+
& 5.98089120_wp, 5.81686657_wp, 5.53321815_wp, 5.25477007_wp,11.02204549_wp,&
54+
&10.15679528_wp, 9.35167836_wp, 9.06926079_wp, 8.97241155_wp, 8.90092807_wp,&
55+
& 8.85984840_wp, 8.81736827_wp, 8.79317710_wp, 7.89969626_wp, 8.80588454_wp,&
56+
& 8.42439218_wp, 8.54289262_wp, 8.47583370_wp, 8.45090888_wp, 8.47339339_wp,&
57+
& 7.83525634_wp, 8.20702843_wp, 7.70559063_wp, 7.32755997_wp, 7.03887381_wp,&
58+
& 6.68978720_wp, 6.05450052_wp, 5.88752022_wp, 5.70661499_wp, 5.78450695_wp,&
59+
& 7.79780729_wp, 7.26443867_wp, 6.78151984_wp, 6.67883169_wp, 6.39024318_wp,&
60+
& 6.09527958_wp,11.79156076_wp,11.10997644_wp, 9.51377795_wp, 8.67197068_wp,&
61+
& 8.77140725_wp, 8.65402716_wp, 8.53923501_wp, 8.85024712_wp /
6262

6363
! PBE0/def2-QZVP atomic values
6464
! data r2r4 /

prg/CMakeLists.txt

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
set(sources
2+
extras.f90
3+
main.f90)
4+
5+
add_executable(dftd3_standalone ${sources})
6+
7+
target_link_libraries(dftd3_standalone dftd3)
8+
9+
set_target_properties(dftd3_standalone PROPERTIES OUTPUT_NAME "dftd3")
10+
11+
install(TARGETS dftd3_standalone
12+
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})

0 commit comments

Comments
 (0)