~ubuntu-branches/ubuntu/utopic/nwchem/utopic

« back to all changes in this revision

Viewing changes to src/blas/single/ccopy.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
 
      subroutine  ccopy(n,cx,incx,cy,incy)
2
 
*
3
 
* $Id: ccopy.f 19695 2010-10-29 16:51:02Z d3y133 $
4
 
*
5
 
c
6
 
c     copies a vector, x, to a vector, y.
7
 
c     jack dongarra, linpack, 3/11/78.
8
 
c     modified 12/3/93, array(1) declarations changed to array(*)
9
 
c
10
 
      complex cx(*),cy(*)
11
 
      integer i,incx,incy,ix,iy,n
12
 
c
13
 
      if(n.le.0)return
14
 
      if(incx.eq.1.and.incy.eq.1)go to 20
15
 
c
16
 
c        code for unequal increments or equal increments
17
 
c          not equal to 1
18
 
c
19
 
      ix = 1
20
 
      iy = 1
21
 
      if(incx.lt.0)ix = (-n+1)*incx + 1
22
 
      if(incy.lt.0)iy = (-n+1)*incy + 1
23
 
      do 10 i = 1,n
24
 
        cy(iy) = cx(ix)
25
 
        ix = ix + incx
26
 
        iy = iy + incy
27
 
   10 continue
28
 
      return
29
 
c
30
 
c        code for both increments equal to 1
31
 
c
32
 
   20 do 30 i = 1,n
33
 
        cy(i) = cx(i)
34
 
   30 continue
35
 
      return
36
 
      end
 
1
*> \brief \b CCOPY
 
2
*
 
3
*  =========== DOCUMENTATION ===========
 
4
*
 
5
* Online html documentation available at 
 
6
*            http://www.netlib.org/lapack/explore-html/ 
 
7
*
 
8
*  Definition:
 
9
*  ===========
 
10
*
 
11
*       SUBROUTINE CCOPY(N,CX,INCX,CY,INCY)
 
12
 
13
*       .. Scalar Arguments ..
 
14
*       INTEGER INCX,INCY,N
 
15
*       ..
 
16
*       .. Array Arguments ..
 
17
*       COMPLEX CX(*),CY(*)
 
18
*       ..
 
19
*  
 
20
*
 
21
*> \par Purpose:
 
22
*  =============
 
23
*>
 
24
*> \verbatim
 
25
*>
 
26
*>    CCOPY copies a vector x to a vector y.
 
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 complex_blas_level1
 
40
*
 
41
*> \par Further Details:
 
42
*  =====================
 
43
*>
 
44
*> \verbatim
 
45
*>
 
46
*>     jack dongarra, linpack, 3/11/78.
 
47
*>     modified 12/3/93, array(1) declarations changed to array(*)
 
48
*> \endverbatim
 
49
*>
 
50
*  =====================================================================
 
51
      SUBROUTINE CCOPY(N,CX,INCX,CY,INCY)
 
52
*
 
53
*  -- Reference BLAS level1 routine (version 3.4.0) --
 
54
*  -- Reference BLAS is a software package provided by Univ. of Tennessee,    --
 
55
*  -- Univ. of California Berkeley, Univ. of Colorado Denver and NAG Ltd..--
 
56
*     November 2011
 
57
*
 
58
*     .. Scalar Arguments ..
 
59
      INTEGER INCX,INCY,N
 
60
*     ..
 
61
*     .. Array Arguments ..
 
62
      COMPLEX CX(*),CY(*)
 
63
*     ..
 
64
*
 
65
*  =====================================================================
 
66
*
 
67
*     .. Local Scalars ..
 
68
      INTEGER I,IX,IY
 
69
*     ..
 
70
      IF (N.LE.0) RETURN
 
71
      IF (INCX.EQ.1 .AND. INCY.EQ.1) THEN
 
72
*
 
73
*        code for both increments equal to 1
 
74
*
 
75
         DO I = 1,N
 
76
            CY(I) = CX(I)
 
77
         END DO
 
78
      ELSE
 
79
*
 
80
*        code for unequal increments or equal increments
 
81
*          not equal to 1
 
82
*
 
83
         IX = 1
 
84
         IY = 1
 
85
         IF (INCX.LT.0) IX = (-N+1)*INCX + 1
 
86
         IF (INCY.LT.0) IY = (-N+1)*INCY + 1
 
87
         DO I = 1,N
 
88
            CY(IY) = CX(IX)
 
89
            IX = IX + INCX
 
90
            IY = IY + INCY
 
91
         END DO
 
92
      END IF
 
93
      RETURN
 
94
      END