~ubuntu-branches/ubuntu/saucy/nwchem/saucy

« back to all changes in this revision

Viewing changes to src/nwdft/dftgrad/dftg_gridv0b.F

  • Committer: Package Import Robot
  • Author(s): Michael Banck, Michael Banck, Daniel Leidert
  • Date: 2012-02-09 20:02:41 UTC
  • mfrom: (1.1.1)
  • Revision ID: package-import@ubuntu.com-20120209200241-jgk03qfsphal4ug2
Tags: 6.1-1
* New upstream release.

[ Michael Banck ]
* debian/patches/02_makefile_flags.patch: Updated.
* debian/patches/02_makefile_flags.patch: Use internal blas and lapack code.
* debian/patches/02_makefile_flags.patch: Define GCC4 for LINUX and LINUX64
  (Closes: #632611 and LP: #791308).
* debian/control (Build-Depends): Added openssh-client.
* debian/rules (USE_SCALAPACK, SCALAPACK): Removed variables (Closes:
  #654658).
* debian/rules (LIBDIR, USE_MPIF4, ARMCI_NETWORK): New variables.
* debian/TODO: New file.
* debian/control (Build-Depends): Removed libblas-dev, liblapack-dev and
  libscalapack-mpi-dev.
* debian/patches/04_show_testsuite_diff_output.patch: New patch, shows the
  diff output for failed tests.
* debian/patches/series: Adjusted.
* debian/testsuite: Optionally run all tests if "all" is passed as option.
* debian/rules: Run debian/testsuite with "all" if DEB_BUILD_OPTIONS
  contains "checkall".

[ Daniel Leidert ]
* debian/control: Used wrap-and-sort. Added Vcs-Svn and Vcs-Browser fields.
  (Priority): Moved to extra according to policy section 2.5.
  (Standards-Version): Bumped to 3.9.2.
  (Description): Fixed a typo.
* debian/watch: Added.
* debian/patches/03_hurd-i386_define_path_max.patch: Added.
  - Define MAX_PATH if not defines to fix FTBFS on hurd.
* debian/patches/series: Adjusted.

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
     &     cetobfr, tau, dttau, kske, Mmat, Mmat2,
17
17
     &     ldbw, fact, dtype, nconstr)  ! Qin
18
18
c      
19
 
c     $Id: dftg_gridv0b.F,v 1.39 2008-08-14 06:31:58 niri Exp $
 
19
c     $Id: dftg_gridv0b.F 21003 2011-08-18 18:00:55Z d3y133 $
20
20
c     
21
21
      implicit none
22
22
#include "errquit.fh"
131
131
c           points in sampling set.  iniz is a mapping array.
132
132
c           currently set up only for cartesian (6d) sets
133
133
c         
 
134
      iDmat = 0
 
135
      ichi_ao = 0
 
136
      idelchi_ao = 0
 
137
      iheschi_ao = 0
 
138
      id3chi_ao = 0
 
139
      i_ccdel = 0
 
140
      k_Acof2 = 0
 
141
      k_Ccof2 = 0
 
142
      k_Mcof2 = 0
 
143
c
134
144
      Ex=0
135
145
      Ec=0
136
146
      if (der3chi) then
284
294
c     
285
295
               if (do_force) then
286
296
287
 
                  if(grad) then
 
297
                  if (grad) then
288
298
                     if (.not. MA_Push_Get(MT_Dbl, nqpts*mbf_ao*ipol, 
289
299
     &                    'gradchi_ao2', l_ccdel,i_ccdel))call errquit
290
300
     &                    (' exit dftggridv0b: insuff stack',9, 0)
291
301
                  endif
292
302
 
293
 
               if (odftps) call pstat_on(ps_qv0b)
294
 
               call dftg_quadv0_b(ictr_buf, ldew, AO_bas_han, ipol,
295
 
     &                            grad, kske, nbf_ao, mbf_ao, natoms, 
296
 
     &                            nqpts,
297
 
     &                            dbl_mb(ichi_ao), dbl_mb(idelchi_ao ),
298
 
     &                            dbl_mb(iheschi_ao), Amat, Cmat, Mmat,
299
 
     &                            dbl_mb(i_ccdel),
300
 
     &                            ibf_ao, iniz, ifin, cetobfr,
301
 
     &                            ppp, ff, 
302
 
     &                            zzz, hh, iga_dens, force,
303
 
     &                            oactive)
304
 
               if (odftps) call pstat_off(ps_qv0b)
305
 
                 if(grad) then
 
303
                  if (odftps) call pstat_on(ps_qv0b)
 
304
                  call dftg_quadv0_b(ictr_buf, ldew, AO_bas_han, ipol,
 
305
     &                               grad, kske, nbf_ao, mbf_ao, natoms,
 
306
     &                               nqpts,
 
307
     &                               dbl_mb(ichi_ao),dbl_mb(idelchi_ao),
 
308
     &                               dbl_mb(iheschi_ao),Amat,Cmat,Mmat,
 
309
     &                               dbl_mb(i_ccdel),
 
310
     &                               ibf_ao, iniz, ifin, cetobfr,
 
311
     &                               ppp, ff, 
 
312
     &                               zzz, hh, iga_dens, force,
 
313
     &                               oactive)
 
314
                 if (odftps) call pstat_off(ps_qv0b)
 
315
                 if (grad) then
306
316
                    if (.not.ma_pop_stack(l_ccdel))
307
 
     &                   call errquit('dftggv0b: pop stack ',1,0)
308
 
                    endif
 
317
     &                 call errquit('dftggv0b: pop stack ',1,0)
 
318
                 endif
309
319
c
310
320
               else if (do_hess) then
311
321
c
318
328
                  if (.not.MA_push_get(MT_DBL, ipol*nqpts*3,
319
329
     &                 'Acof2', l_Acof2, k_Acof2)) call
320
330
     &                 errquit('dftg_gridv0b: cannot allocate Acof2',1,
321
 
     &       MA_ERR)
 
331
     &                         MA_ERR)
322
332
                  if (grad) then
323
333
                     if (.not.MA_push_get(MT_DBL, ipol*9*nqpts, 'CCof2',
324
334
     &                    l_Ccof2, k_Ccof2)) call
325
335
     &                    errquit('dftg_gridv0b: cant alloc Ccof2',1,
326
 
     &       MA_ERR)
 
336
     &                            MA_ERR)
327
337
                  endif
328
338
                  if (kske) then
329
339
                     if (.not.MA_push_get(MT_DBL, ipol*3*nqpts, 'MCof2',
330
340
     &                    l_Mcof2, k_Mcof2)) call
331
341
     &                    errquit('dftg_gridv0b: cant alloc Mcof2',1,
332
 
     &       MA_ERR)
 
342
     &                            MA_ERR)
333
343
                  end if
334
344
c
335
345
                  call xc_d2expl(tol_rho, 
360
370
                  endif
361
371
                  if (.not.ma_pop_stack(l_Acof2))
362
372
     &                 call errquit('dftg_gridv0b: cannot pop Acof2',0,
363
 
     &       MA_ERR)
 
373
     &                              MA_ERR)
364
374
c
365
375
               else if (do_cpks_r) then
366
376
c