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

« back to all changes in this revision

Viewing changes to src/nwpw/nwpwlib/utilities/paw_utilities/nwpw_xc.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:
1
 
c $Id: nwpw_xc.F 21510 2011-11-11 19:59:08Z bylaska $
 
1
c $Id: nwpw_xc.F 23644 2013-02-27 02:16:08Z bylaska $
2
2
 
3
3
*     *********************************
4
4
*     *                               *
319
319
     >                  paw_rho2_ps_prime(2),paw_rho2_ps_prime(1))
320
320
      end if
321
321
      if (.not.ok)
322
 
     > call errquit("nwpw_xc_init: error allocating work arrays",0,0)
 
322
     > call errquit("nwpw_xc_init: error allocating work arrays",
 
323
     >               1,MA_ERR)
323
324
      
324
325
c      call nwpw_init_gntxc(mult_l_max)
325
326
c      if ((gga.ge.10).and.(mult_l_max.ge.1)) then
335
336
     >     MA_alloc_get(mt_int,nkatm,"shift_rholm",
336
337
     >                  shift_rholm(2),shift_rholm(1))
337
338
      if (.not.ok)
338
 
     > call errquit("nwpw_xc_init: error allocating work arrays",0,0)
 
339
     > call errquit("nwpw_xc_init: error allocating work arrays",2,0)
339
340
 
340
341
      nsize = 0
341
342
      do ia=1,nkatm
377
378
     >     MA_alloc_get(mt_dbl,nsize,"coeff_rholm",
378
379
     >                 coeff_rholm(2),coeff_rholm(1))
379
380
      if (.not.ok)
380
 
     > call errquit("nwpw_xc_init: error allocating work arrays",0,0)
 
381
     > call errquit("nwpw_xc_init: error allocating work arrays",3,0)
381
382
 
382
383
      nsize = 0
383
384
      do ia=1,nkatm
418
419
     >        MA_alloc_get(mt_int,nkatm,"shift_2rholm",
419
420
     >                  shift_2rholm(2),shift_2rholm(1))
420
421
         if (.not.ok)
421
 
     >    call errquit("nwpw_xc_init: error allocating work arrays",0,0)
 
422
     >    call errquit("nwpw_xc_init: error allocating work arrays",4,0)
422
423
 
423
424
         nsize = 0
424
425
         do ia=1,nkatm
460
461
     >        MA_alloc_get(mt_dbl,nsize,"coeff_2rholm",
461
462
     >                     coeff_2rholm(2),coeff_2rholm(1))
462
463
         if (.not.ok)
463
 
     >    call errquit("nwpw_xc_init: error allocating work arrays",0,0)
 
464
     >    call errquit("nwpw_xc_init: error allocating work arrays",5,0)
464
465
 
465
466
 
466
467
         nsize = 0
499
500
     >        MA_alloc_get(mt_int,nkatm,"shift_3rholm",
500
501
     >                  shift_3rholm(2),shift_3rholm(1))
501
502
         if (.not.ok)
502
 
     >    call errquit("nwpw_xc_init: error allocating work arrays",0,0)
 
503
     >    call errquit("nwpw_xc_init: error allocating work arrays",6,0)
503
504
 
504
505
         nsize = 0
505
506
         do ia=1,nkatm
541
542
     >        MA_alloc_get(mt_dbl,nsize,"coeff_3rholm",
542
543
     >                     coeff_3rholm(2),coeff_3rholm(1))
543
544
         if (.not.ok)
544
 
     >    call errquit("nwpw_xc_init: error allocating work arrays",0,0)
 
545
     >    call errquit("nwpw_xc_init: error allocating work arrays",7,0)
545
546
 
546
547
         nsize = 0
547
548
         do ia=1,nkatm
1911
1912
      n1(2) = ne(1)+1
1912
1913
      n2(1) = ne(1)
1913
1914
      n2(2) = ne(1)+ne(2)
1914
 
      scal = 1.0d0/dsqrt(lattice_omega())
 
1915
      !scal = 1.0d0/dsqrt(lattice_omega())
1915
1916
 
1916
1917
*     ***init to zero***
1917
1918
      do i=1,nindx
1920
1921
         jprj  = jprj_rholm(i)
1921
1922
         bi    = bi_rholm(i)
1922
1923
         bj    = bj_rholm(i)
1923
 
         coeff = coeff_rholm(i)*scal
 
1924
         !coeff = coeff_rholm(i)*scal
 
1925
         coeff = coeff_rholm(i)
1924
1926
         do ms=1,ispin
1925
1927
            if (ne(ms).gt.0) then
1926
1928
               do n=n1(ms),n2(ms)