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

« back to all changes in this revision

Viewing changes to src/nwpw/pspw/kbpp/integrate_kbpp_orb.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
1
*
2
 
* $Id: integrate_kbpp_orb.F 21516 2011-11-12 03:54:03Z bylaska $
 
2
* $Id: integrate_kbpp_orb.F 22387 2012-05-07 16:32:43Z bylaska $
3
3
*
4
4
 
5
5
      subroutine integrate_kbpp_orb(version,
63
63
      P2=DSQRT(15.0d0*FORPI)
64
64
      P3=DSQRT(105.0d0*FORPI)
65
65
 
 
66
 
66
67
*======================  Fourier transformation  ======================
67
68
      call dcopy(lmmax*nfft3d,0.0d0,0,aorbs,1)
68
69
      task_count = -1
88
89
        END DO
89
90
 
90
91
        lcount = lmmax+1
91
 
        GO TO (500,400,300,200), LMAX+1
92
 
 
93
 
 
 
92
        GO TO (500,400,300,200,100), LMAX+1
 
93
 
 
94
 
 
95
*::::::::::::::::::::::::::::::  g-wave  ::::::::::::::::::::::::::::::
 
96
  100   CONTINUE
94
97
*::::::::::::::::::::::::::::::  f-wave  ::::::::::::::::::::::::::::::
95
98
  200   CONTINUE
96
99
        if (locp.ne.3) then
102
105
           end do
103
106
           D=P3*SIMP(NRHO,F,DRHO)/Q
104
107
 
 
108
*          **** fy(3x2-y2) component ****
105
109
           lcount = lcount-1
106
110
           aorbs(k1,k2,k3,lcount)=D*GY*(3.0d0*(1.0d0-GZ*GZ)-4.0d0*GY*GY)
107
111
     >                          /dsqrt(24.0d0)
 
112
 
 
113
*          **** fxyz component ****
108
114
           lcount = lcount-1
109
115
           aorbs(k1,k2,k3,lcount)=D*GX*GY*GZ
 
116
 
 
117
*             **** fy(5z2-1) component ****
110
118
           lcount = lcount-1
111
119
           aorbs(k1,k2,k3,lcount)=D*GY*(5.0d0*GZ*GZ-1.0d0)
112
120
     >                          /dsqrt(40.0d0)
 
121
 
 
122
*          **** fz(5z2-3) component ****
113
123
           lcount = lcount-1
114
124
           aorbs(k1,k2,k3,lcount)=D*GZ*(5.0d0*GZ*GZ-3.0d0)
115
125
     >                          /dsqrt(60.0d0)
 
126
 
 
127
*          **** fx(5z2-1) component ****
116
128
           lcount = lcount-1
117
129
           aorbs(k1,k2,k3,lcount)=D*GX*(5.0d0*GZ*GZ-1.0d0)
118
130
     >                          /dsqrt(40.0d0)
 
131
 
 
132
*          **** fz(x2-y2) component ****
119
133
           lcount = lcount-1
120
134
           aorbs(k1,k2,k3,lcount)=D*GZ*(GX*GX - GY*GY)
121
135
     >                          /2.0d0
 
136
 
 
137
*          **** fx(x2-3y2) component ****
122
138
           lcount = lcount-1
123
139
           aorbs(k1,k2,k3,lcount)=D*GX*(4.0d0*GX*GX-3.0d0*(1.0d0-GZ*GZ))
124
140
     >                          /dsqrt(24.0d0)
125
141
 
126
 
c           lcount = lcount-1
127
 
c           aorbs(k1,k2,k3,lcount)=D*GX*(4.0d0*GX*GX-3.0d0*(1.0d0-GZ*GZ))
128
 
c     >                          /dsqrt(24.0d0)
129
 
c           lcount = lcount-1
130
 
c           aorbs(k1,k2,k3,lcount)=D*GY*(3.0d0*(1.0d0-GZ*GZ)-4.0d0*GY*GY)
131
 
c     >                          /dsqrt(24.0d0)
132
 
c           lcount = lcount-1
133
 
c           aorbs(k1,k2,k3,lcount)=D*GZ*(GX*GX - GY*GY)
134
 
c     >                          /2.0d0
135
 
c           lcount = lcount-1
136
 
c           aorbs(k1,k2,k3,lcount)=D*GX*GY*GZ
137
 
c           lcount = lcount-1
138
 
c           aorbs(k1,k2,k3,lcount)=D*GX*(5.0d0*GZ*GZ-1.0d0)
139
 
c     >                          /dsqrt(40.0d0)
140
 
c           lcount = lcount-1
141
 
c           aorbs(k1,k2,k3,lcount)=D*GY*(5.0d0*GZ*GZ-1.0d0)
142
 
c     >                          /dsqrt(40.0d0)
143
 
c           lcount = lcount-1
144
 
c           aorbs(k1,k2,k3,lcount)=D*GZ*(5.0d0*GZ*GZ-3.0d0)
145
 
c     >                          /dsqrt(60.0d0)
146
142
        end if
147
143
 
148
 
 
149
 
 
150
144
*::::::::::::::::::::::::::::::  d-wave  ::::::::::::::::::::::::::::::
151
145
  300   CONTINUE
152
146
        if (locp.ne.2) then
157
151
          END DO
158
152
          D=P2*SIMP(NRHO,F,DRHO)/Q
159
153
 
 
154
*         **** dxy component ****
160
155
          lcount = lcount-1
161
156
          aorbs(k1,k2,k3,lcount)=D*GX*GY
 
157
 
 
158
*         **** dyz component ****
162
159
          lcount = lcount-1
163
160
          aorbs(k1,k2,k3,lcount)=D*GY*GZ
 
161
 
 
162
*         **** d3z2-1 component ****
164
163
          lcount = lcount-1
165
164
          aorbs(k1,k2,k3,lcount)=D*(3.0d0*GZ*GZ-1.0d0)
166
165
     >                          /(2.0d0*dsqrt(3.0d0))
 
166
 
 
167
*         **** dzx component ****
167
168
          lcount = lcount-1
168
169
          aorbs(k1,k2,k3,lcount)=D*GZ*GX
 
170
 
 
171
*         **** dx2-y2 component ****
169
172
          lcount = lcount-1
170
173
          aorbs(k1,k2,k3,lcount)=D*(GX*GX-GY*GY)/(2.0d0)
171
 
 
172
 
c          lcount = lcount-1
173
 
c          aorbs(k1,k2,k3,lcount)=D*(3.0d0*GZ*GZ-1.0d0)
174
 
c     >                          /(2.0d0*dsqrt(3.0d0))
175
 
c          lcount = lcount-1
176
 
c          aorbs(k1,k2,k3,lcount)=D*GX*GY
177
 
c          lcount = lcount-1
178
 
c          aorbs(k1,k2,k3,lcount)=D*GY*GZ
179
 
c          lcount = lcount-1
180
 
c          aorbs(k1,k2,k3,lcount)=D*GZ*GX
181
 
c          lcount = lcount-1
182
 
c          aorbs(k1,k2,k3,lcount)=D*(GX*GX-GY*GY)/(2.0d0)
183
174
        end if
184
175
 
185
176
*::::::::::::::::::::::::::::::  p-wave  ::::::::::::::::::::::::::::::
190
181
             F(I)=(SN(I)/(Q*RHO(I))-CS(I))*WP(I,1)
191
182
           END DO
192
183
           P=P1*SIMP(NRHO,F,DRHO)/Q
 
184
 
 
185
*          **** py component ****
193
186
           lcount = lcount-1
194
187
           aorbs(k1,k2,k3,lcount)=P*GY
 
188
 
 
189
*          **** pz component ****
195
190
           lcount = lcount-1
196
191
           aorbs(k1,k2,k3,lcount)=P*GZ
 
192
 
 
193
*          **** px component ****
197
194
           lcount = lcount-1
198
195
           aorbs(k1,k2,k3,lcount)=P*GX
199
196
        end if