~ubuntu-branches/ubuntu/trusty/nwchem/trusty-proposed

« back to all changes in this revision

Viewing changes to src/nwpw/pspw/lib/exchange-correlation/hsepbe.F

  • Committer: Package Import Robot
  • Author(s): Michael Banck, Daniel Leidert, Andreas Tille, Michael Banck
  • Date: 2013-07-04 12:14:55 UTC
  • mfrom: (1.1.2)
  • Revision ID: package-import@ubuntu.com-20130704121455-5tvsx2qabor3nrui
Tags: 6.3-1
* New upstream release.
* Fixes anisotropic properties (Closes: #696361).
* New features include:
  + Multi-reference coupled cluster (MRCC) approaches
  + Hybrid DFT calculations with short-range HF 
  + New density-functionals including Minnesota (M08, M11) and HSE hybrid
    functionals
  + X-ray absorption spectroscopy (XAS) with TDDFT
  + Analytical gradients for the COSMO solvation model
  + Transition densities from TDDFT 
  + DFT+U and Electron-Transfer (ET) methods for plane wave calculations
  + Exploitation of space group symmetry in plane wave geometry optimizations
  + Local density of states (LDOS) collective variable added to Metadynamics
  + Various new XC functionals added for plane wave calculations, including
    hybrid and range-corrected ones
  + Electric field gradients with relativistic corrections 
  + Nudged Elastic Band optimization method
  + Updated basis sets and ECPs 

[ Daniel Leidert ]
* debian/watch: Fixed.

[ Andreas Tille ]
* debian/upstream: References

[ Michael Banck ]
* debian/upstream (Name): New field.
* debian/patches/02_makefile_flags.patch: Refreshed.
* debian/patches/06_statfs_kfreebsd.patch: Likewise.
* debian/patches/07_ga_target_force_linux.patch: Likewise.
* debian/patches/05_avoid_inline_assembler.patch: Removed, no longer needed.
* debian/patches/09_backported_6.1.1_fixes.patch: Likewise.
* debian/control (Build-Depends): Added gfortran-4.7 and gcc-4.7.
* debian/patches/10_force_gcc-4.7.patch: New patch, explicitly sets
  gfortran-4.7 and gcc-4.7, fixes test suite hang with gcc-4.8 (Closes:
  #701328, #713262).
* debian/testsuite: Added tests for COSMO analytical gradients and MRCC.
* debian/rules (MRCC_METHODS): New variable, required to enable MRCC methods.

Show diffs side-by-side

added added

removed removed

Lines of Context:
45
45
      double precision  r16,r32,r24,r48,r11,r64,r35
46
46
      double precision  pi,pi2,srpi,s02
47
47
      double precision  f12,f13,f32,f52,f72,f92
 
48
      double precision  tollz,faczeta
 
49
      parameter (tollz=1d-16)
48
50
 
49
51
c
50
52
c     Constants for HJS hole
178
180
      d1hden  = hb1 + two*hb2*s +three*hb3*s2 + four*hb4*s3 +
179
181
     &          five*hb5*s4 + six*hb6*s5 + seven*hb7*s6 +
180
182
     &          eight*hb8*s7 + nine*hb9*s8 
181
 
      d1H =   (hden*d1hnum -hnum*d1hden)/hden**two
 
183
cfpe
 
184
c      d1H =   (hden*d1hnum -hnum*d1hden)/hden**two
 
185
       d1H =   ((d1hnum -hnum*(d1hden/hden))/hden)
182
186
 
183
187
c
184
188
c     calculate first derivative of variables needed with respect to s
198
202
c
199
203
c     Calculate the first derivate of EGs with respect to s
200
204
c
 
205
      faczeta = 0d0
 
206
      if(abs(zeta).gt.tollz) faczeta = faczeta + d1zeta/dsqrt(zeta)
 
207
c     if(abs(eta).gt.tollz) faczeta = faczeta - d1eta/dsqrt(eta)
 
208
      faczeta = faczeta - d1eta/dsqrt(eta)
201
209
      d1EGs = -(two/five)*C*(d1Fs*lambda + Fs*d1lambda) -
202
210
     &        (eight/r15)*B*lambda*d1lambda -
203
211
     &        (r18/five)*A*lambda*lambda*d1lambda -
205
213
     &        (r42/five)*(lambda**f52)*
206
214
     &        d1lambda*(dsqrt(zeta)-dsqrt(eta))-
207
215
     &        (six/five)*(lambda**(seven/two))*
208
 
     &        (d1zeta/dsqrt(zeta)-d1eta/dsqrt(eta))
 
216
     &        faczeta
209
217
 
210
218
c
211
219
c     Calculate the first derivate of denominators needed with respect
891
899
      
892
900
 
893
901
 
894
 
c $Id: hsepbe.F 21176 2011-10-10 06:35:49Z d3y133 $
 
902
c $Id: hsepbe.F 23931 2013-03-30 00:24:30Z edo $