~ubuntu-branches/ubuntu/utopic/nwchem/utopic

« back to all changes in this revision

Viewing changes to src/nwdft/zora/calc_zora_HFine.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:
758
758
      character*16 tags
759
759
      logical is_atom
760
760
      double precision atmass,zetanuc
761
 
      real gammap,gammaq,rtemp,a_coeff
 
761
      double precision rtemp,a_coeff
762
762
c
763
 
      external gratio,  ! defined in Incomplete_Gamma_TOMS_654.F
 
763
      double precision dgami
 
764
      external dgami, 
764
765
     &         get_znuc
765
766
c
766
767
      call get_znuc(atmass,zetanuc)
770
771
         rxyz(i) = qxyz(i,igrid)-xyz_NMRcoords(i) 
771
772
         ac_prod=ac_prod+rxyz(i)*rxyz(i)
772
773
        enddo
773
 
        rtemp = real(zetanuc*ac_prod)  ! dist*dist
774
 
        call gratio(a_coeff,rtemp,gammap,gammaq,0)
775
 
        amat_Pnucl(igrid) = gammap  ! P(3/2,\tilde{r}_N^2)
 
774
        rtemp = zetanuc*ac_prod  ! dist*dist
 
775
        amat_Pnucl(igrid) = dgami(a_coeff,rtemp)  ! P(3/2,\tilde{r}_N^2)
776
776
      end do ! igrid
777
777
c
778
778
      return
803
803
      double precision qxyz(3),Pnucl
804
804
      double precision rxyz(3),dist,dist2,ac_prod
805
805
      double precision zetanuc_slc
806
 
      real gammap,gammaq,rtemp,a_coeff
807
 
      external gratio ! defined in Incomplete_Gamma_TOMS_654.F
 
806
      double precision rtemp,a_coeff
 
807
      double precision dgami
 
808
      external dgami ! Incomplete Gamma
808
809
c ---------- Defining values at hand to check --------- START    
809
810
 
810
811
c      xyz_NMRcoords(1)=  0.07090063d0
826
827
         rxyz(i) = qxyz(i)-xyz_NMRcoords(i) 
827
828
         ac_prod=ac_prod+rxyz(i)*rxyz(i)
828
829
        enddo
829
 
        rtemp = real(zetanuc_slc*ac_prod)  ! dist*dist
830
 
        call gratio(a_coeff,rtemp,gammap,gammaq,0)
831
 
        Pnucl = dble(gammap)  ! P(3/2,\tilde{r}_N^2)
 
830
        rtemp = zetanuc_slc*ac_prod  ! dist*dist
 
831
        Pnucl = dgami(a_coeff,rtemp)  ! P(3/2,\tilde{r}_N^2)
832
832
       return
833
833
       end
834
834
c
837
837
c              to be used in evaluation of Incomplete
838
838
c              Gamma Function [gratio(...)]
839
839
c              rtemp = zetanuc*ac_prod  ! dist*dist
840
 
c              call gratio(threehalf,rtemp,gammap,gammaq,0)
 
840
c              call dgratio(threehalf,rtemp,gammap,gammaq,0)
841
841
c
842
842
       subroutine get_znuc(atmass, zetanuc)
843
843
c
865
865
c              to be used in evaluation of Incomplete
866
866
c              Gamma Function [gratio(...)]
867
867
c              rtemp = zetanuc*ac_prod  ! dist*dist
868
 
c              call gratio(threehalf,rtemp,gammap,gammaq,0)
 
868
c              call dgratio(threehalf,rtemp,gammap,gammaq,0)
869
869
c              This routine is used in gridNuclearPotential()
870
870
c
871
871
       subroutine get_zetanuc_arr(geom, natoms, zetanuc_arr) 
890
890
        enddo ! end-loop-i
891
891
       return
892
892
       end   
893
 
c $Id: calc_zora_HFine.F 21486 2011-11-09 22:08:11Z niri $
 
893
c $Id: calc_zora_HFine.F 23746 2013-03-12 18:00:54Z edo $