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

« back to all changes in this revision

Viewing changes to src/blas/double/dzasum.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
 
      double precision function dzasum(n,zx,incx)
2
 
c
3
 
c     takes the sum of the absolute values.
4
 
c     jack dongarra, 3/11/78.
5
 
c     modified 3/93 to return if incx .le. 0.
6
 
c     modified 12/3/93, array(1) declarations changed to array(*)
7
 
c
8
 
C     $Id: dzasum.f 19695 2010-10-29 16:51:02Z d3y133 $                       
9
 
      double complex zx(*)
10
 
      double precision stemp,dcabs1
11
 
      integer i,incx,ix,n
12
 
c
13
 
      dzasum = 0.0d0
14
 
      stemp = 0.0d0
15
 
      if( n.le.0 .or. incx.le.0 )return
16
 
      if(incx.eq.1)go to 20
17
 
c
18
 
c        code for increment not equal to 1
19
 
c
20
 
      ix = 1
21
 
      do 10 i = 1,n
22
 
        stemp = stemp + dcabs1(zx(ix))
23
 
        ix = ix + incx
24
 
   10 continue
25
 
      dzasum = stemp
26
 
      return
27
 
c
28
 
c        code for increment equal to 1
29
 
c
30
 
   20 do 30 i = 1,n
31
 
        stemp = stemp + dcabs1(zx(i))
32
 
   30 continue
33
 
      dzasum = stemp
34
 
      return
35
 
      end
 
1
*> \brief \b DZASUM
 
2
*
 
3
*  =========== DOCUMENTATION ===========
 
4
*
 
5
* Online html documentation available at 
 
6
*            http://www.netlib.org/lapack/explore-html/ 
 
7
*
 
8
*  Definition:
 
9
*  ===========
 
10
*
 
11
*       DOUBLE PRECISION FUNCTION DZASUM(N,ZX,INCX)
 
12
 
13
*       .. Scalar Arguments ..
 
14
*       INTEGER INCX,N
 
15
*       ..
 
16
*       .. Array Arguments ..
 
17
*       COMPLEX*16 ZX(*)
 
18
*       ..
 
19
*  
 
20
*
 
21
*> \par Purpose:
 
22
*  =============
 
23
*>
 
24
*> \verbatim
 
25
*>
 
26
*>    DZASUM takes the sum of the absolute values.
 
27
*> \endverbatim
 
28
*
 
29
*  Authors:
 
30
*  ========
 
31
*
 
32
*> \author Univ. of Tennessee 
 
33
*> \author Univ. of California Berkeley 
 
34
*> \author Univ. of Colorado Denver 
 
35
*> \author NAG Ltd. 
 
36
*
 
37
*> \date November 2011
 
38
*
 
39
*> \ingroup double_blas_level1
 
40
*
 
41
*> \par Further Details:
 
42
*  =====================
 
43
*>
 
44
*> \verbatim
 
45
*>
 
46
*>     jack dongarra, 3/11/78.
 
47
*>     modified 3/93 to return if incx .le. 0.
 
48
*>     modified 12/3/93, array(1) declarations changed to array(*)
 
49
*> \endverbatim
 
50
*>
 
51
*  =====================================================================
 
52
      DOUBLE PRECISION FUNCTION DZASUM(N,ZX,INCX)
 
53
*
 
54
*  -- Reference BLAS level1 routine (version 3.4.0) --
 
55
*  -- Reference BLAS is a software package provided by Univ. of Tennessee,    --
 
56
*  -- Univ. of California Berkeley, Univ. of Colorado Denver and NAG Ltd..--
 
57
*     November 2011
 
58
*
 
59
*     .. Scalar Arguments ..
 
60
      INTEGER INCX,N
 
61
*     ..
 
62
*     .. Array Arguments ..
 
63
      COMPLEX*16 ZX(*)
 
64
*     ..
 
65
*
 
66
*  =====================================================================
 
67
*
 
68
*     .. Local Scalars ..
 
69
      DOUBLE PRECISION STEMP
 
70
      INTEGER I,NINCX
 
71
*     ..
 
72
*     .. External Functions ..
 
73
      DOUBLE PRECISION DCABS1
 
74
      EXTERNAL DCABS1
 
75
*     ..
 
76
      DZASUM = 0.0d0
 
77
      STEMP = 0.0d0
 
78
      IF (N.LE.0 .OR. INCX.LE.0) RETURN
 
79
      IF (INCX.EQ.1) THEN
 
80
*
 
81
*        code for increment equal to 1
 
82
*
 
83
         DO I = 1,N
 
84
            STEMP = STEMP + DCABS1(ZX(I))
 
85
         END DO
 
86
      ELSE
 
87
*
 
88
*        code for increment not equal to 1
 
89
*
 
90
         NINCX = N*INCX
 
91
         DO I = 1,NINCX,INCX
 
92
            STEMP = STEMP + DCABS1(ZX(I))
 
93
         END DO
 
94
      END IF
 
95
      DZASUM = STEMP
 
96
      RETURN
 
97
      END