Skip to content

Commit

Permalink
Merge branch 'release-0.9'
Browse files Browse the repository at this point in the history
  • Loading branch information
baradi09 committed Jun 22, 2016
2 parents 6d1c243 + 18ac521 commit 544efa4
Show file tree
Hide file tree
Showing 8 changed files with 347 additions and 103 deletions.
17 changes: 17 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,23 @@ Change Log
==========


0.9
===

Added
-----

* Implementation of revised damping parameters as desribed in
D. G. A. Smith, L. A. Burns, K. Patkowski, and C. D. Sherrill
J. Phys. Chem. Lett., 2016, 7, pp 2197–2203.
(Functionality should correspond to V3.2 Rev 0 of original dftd3 code.)

Fixed
-----

* Routine dftd3_pbc_dispersion delivers now correct stress tensor.


0.1
===

Expand Down
3 changes: 3 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ split into two parts:
* Additional extensions which are necessary for the command line tool DFTD3 and
the command line tool itself.

* Updated dftd3 code to include refitted/modified zero- and BJ-damped D3
versions of Sherrill and coworkers (-bjm and -zerom)
(Functionality corresponds to V3.2 Rev0)

Compilation
===========
Expand Down
Binary file modified doc/man.pdf
Binary file not shown.
6 changes: 5 additions & 1 deletion lib/api.f90
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ end subroutine dftd3_dispersion
!!
!! \param coords Coordinates of the atoms in atomic units. Shape: [3, nAtom].
!! \param izp Atomic number of each atom. Shape: [nAtom]. You can determine
!! the atomic number using the get_atomic_number() function.
!! the atomic number using the get_atomic_number() function.
!! \param latvecs Lattice vectors in atomic units. Shape: [3, 3].
!! \param disp Calculated dispersion energy in atomic units.
!! \param grads Calculated gradiens in atomic units, if present.
Expand Down Expand Up @@ -271,6 +271,10 @@ subroutine dftd3_pbc_dispersion(this, coords, izp, latvecs, disp, grads, &
& r2r4, this%r0ab, rcov, s6, s18, rs6, rs8, rs10, alp6, alp8, alp10, &
& this%noabc, this%numgrad, this%version, grads, disp2, gnorm, &
& stress, latvecs, rep_vdw, rep_cn, this%rthr, .false., this%cn_thr)
! Note, the stress variable in pbcgdisp contains the *lattice derivatives*
! on return, so it needs to be converted to obtain the stress tensor.
stress(:,:) = -matmul(stress, transpose(latvecs))&
& / abs(determinant(latvecs))

end subroutine dftd3_pbc_dispersion

Expand Down
Loading

0 comments on commit 544efa4

Please sign in to comment.