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

« back to all changes in this revision

Viewing changes to src/driver/lbfgs-b.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: lbfgs-b.F 19821 2010-12-14 07:46:49Z d3y133 $
 
1
c $Id: lbfgs-b.F 24244 2013-05-17 19:49:11Z d3y133 $
2
2
c
3
3
      subroutine setulb(n, m,nfmax, x, l, u, 
4
4
     +                 nbd, f, g, factr, pgtol, wa, iwa,
456
456
     +                 xstep,sbgnrm,ddum,dnorm,dtd,epsmch,
457
457
     +                 cpu1,cpu2,cachyt,sbtime,lnscht,time1,time2,
458
458
     +                 gd,gdold,stp,stpmx,time
 
459
      double precision dlamch
459
460
      double precision one,zero
460
461
      parameter        (one=1.0d0,zero=0.0d0)
461
462
      
464
465
         call my_timer(time1)
465
466
 
466
467
c        Generate the current machine precision.
 
468
c        Function dpmeps is not actually save with optimizing compilers
 
469
c        hence switch to dlamch which seems to work better.
467
470
 
468
 
         epsmch = dpmeps()
 
471
c        epsmch = dpmeps()
 
472
         epsmch = dlamch('e')
469
473
 
470
474
c        Initialize counters and scalars when task='START'.
471
475
 
3942
3946
cc====================== The end of dnrm2 ===============================
3943
3947
 
3944
3948
      double precision function dpmeps()
 
3949
CDEC$ NOOPTIMIZE
3945
3950
c     **********
3946
3951
c
3947
3952
c     Subroutine dpeps
4016
4021
      negep = it + 3
4017
4022
      betain = one/beta
4018
4023
      a = one
4019
 
      do 40 i = 1, negep
4020
 
         a = a*betain
4021
 
   40 continue
 
4024
      a=betain**negep
4022
4025
   50 continue
4023
4026
        temp = one + a
4024
4027
        if (temp - one .ne. zero) go to 60