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

« back to all changes in this revision

Viewing changes to src/nwdft/lr_tddft/tddft_fold.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:
6
6
     4  maxvecs,
7
7
     5  nresiduals,algorithm)
8
8
c
9
 
c $Id: tddft_fold.F 19899 2011-01-28 06:50:02Z d3y133 $
 
9
c $Id: tddft_fold.F 24037 2013-04-11 21:10:58Z bert $
10
10
c
11
11
c Calculate linear combinations of (trial or product) vectors.
12
12
c The vectors are returned in g_residuals_1 and g_residuals_2.
71
71
      integer iproc
72
72
      integer ilo,ihi,jlo,jhi
73
73
      integer dummy,request
74
 
      double precision ecut,evl_diff
75
 
      logical lecut
76
 
      double precision diff_max
77
74
c
78
75
      iproc=ga_nodeid()
79
76
      nodezero=(ga_nodeid().eq.0)
100
97
          do n=1,min(nresiduals,ntrials)
101
98
            do m=1,ntrials
102
99
              if ((algorithm.eq.1).or.(algorithm.eq.2)) then
103
 
                call ga_add_patch(apbvec(m,n),g_prod_p(i),1,nov(i),m,m,
104
 
     1                             1.0d0,g_residuals_1(i),1,nov(i),n,n,
105
 
     2                                   g_residuals_1(i),1,nov(i),n,n)
 
100
                call tga_add(apbvec(m,n),g_prod_p(i),g_residuals_1(i),
 
101
     &               m,n,1)
106
102
              else
107
103
                dummy=dra_read_section(.false.,
108
104
     1            g_buffer1(i),1,nov(i),1,1,
109
105
     2            d_prod_p(i),1,nov(i),m,m,request)
110
106
                dummy=dra_wait(request)
111
 
                call ga_add_patch(apbvec(m,n),g_buffer1(i),1,nov(i),1,1,
112
 
     1                              1.0d0,g_residuals_1(i),1,nov(i),n,n,
113
 
     2                                    g_residuals_1(i),1,nov(i),n,n)
 
107
                call tga_add(apbvec(m,n),g_buffer1(i),g_residuals_1(i),
 
108
     &               1,n,1)
114
109
              endif
115
110
            enddo ! m=1,ntrials
116
111
          enddo ! n=1,min(nresiduals,ntrials)
130
125
          do n=1,min(nresiduals,ntrials)
131
126
            do m=1,ntrials
132
127
              if ((algorithm.eq.1).or.(algorithm.eq.2)) then
133
 
                call ga_add_patch(apbvec(m,n),g_prod_p(i),1,nov(i),m,m,
134
 
     1                             1.0d0,g_residuals_1(i),1,nov(i),n,n,
135
 
     2                                   g_residuals_1(i),1,nov(i),n,n)
136
 
                call ga_add_patch(ambvec(m,n),g_prod_m(i),1,nov(i),m,m,
137
 
     1                             1.0d0,g_residuals_2(i),1,nov(i),n,n,
138
 
     2                                   g_residuals_2(i),1,nov(i),n,n)
 
128
                call tga_add(apbvec(m,n),g_prod_p(i),g_residuals_1(i),
 
129
     &               m,n,1)
 
130
                call tga_add(ambvec(m,n),g_prod_m(i),g_residuals_2(i),
 
131
     &               m,n,1)
139
132
              else
140
133
                dummy=dra_read_section(.false.,
141
134
     1            g_buffer1(i),1,nov(i),1,1,
142
135
     2            d_prod_p(i),1,nov(i),m,m,request)
143
136
                dummy=dra_wait(request)
144
 
                call ga_add_patch(apbvec(m,n),g_buffer1(i),1,nov(i),1,1,
145
 
     1                              1.0d0,g_residuals_1(i),1,nov(i),n,n,
146
 
     2                                    g_residuals_1(i),1,nov(i),n,n)
 
137
                call tga_add(apbvec(m,n),g_buffer1(i),g_residuals_1(i),
 
138
     &               1,n,1)
147
139
                dummy=dra_read_section(.false.,
148
140
     1            g_buffer1(i),1,nov(i),1,1,
149
141
     2            d_prod_m(i),1,nov(i),m,m,request)
150
142
                dummy=dra_wait(request)
151
 
                call ga_add_patch(ambvec(m,n),g_buffer1(i),1,nov(i),1,1,
152
 
     1                              1.0d0,g_residuals_2(i),1,nov(i),n,n,
153
 
     2                                    g_residuals_2(i),1,nov(i),n,n)
 
143
                call tga_add(ambvec(m,n),g_buffer1(i),g_residuals_2(i),
 
144
     &               1,n,1)
154
145
              endif
155
146
            enddo ! m=1,ntrials
156
147
          enddo ! n=1,min(nresiduals,ntrials)