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

« back to all changes in this revision

Viewing changes to src/lapack/double/ieeeck.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
*> \brief \b IEEECK
 
2
*
 
3
*  =========== DOCUMENTATION ===========
 
4
*
 
5
* Online html documentation available at 
 
6
*            http://www.netlib.org/lapack/explore-html/ 
 
7
*
 
8
*> \htmlonly
 
9
*> Download IEEECK + dependencies 
 
10
*> <a href="http://www.netlib.org/cgi-bin/netlibfiles.tgz?format=tgz&filename=/lapack/lapack_routine/ieeeck.f"> 
 
11
*> [TGZ]</a> 
 
12
*> <a href="http://www.netlib.org/cgi-bin/netlibfiles.zip?format=zip&filename=/lapack/lapack_routine/ieeeck.f"> 
 
13
*> [ZIP]</a> 
 
14
*> <a href="http://www.netlib.org/cgi-bin/netlibfiles.txt?format=txt&filename=/lapack/lapack_routine/ieeeck.f"> 
 
15
*> [TXT]</a>
 
16
*> \endhtmlonly 
 
17
*
 
18
*  Definition:
 
19
*  ===========
 
20
*
 
21
*       INTEGER          FUNCTION IEEECK( ISPEC, ZERO, ONE )
 
22
 
23
*       .. Scalar Arguments ..
 
24
*       INTEGER            ISPEC
 
25
*       REAL               ONE, ZERO
 
26
*       ..
 
27
*  
 
28
*
 
29
*> \par Purpose:
 
30
*  =============
 
31
*>
 
32
*> \verbatim
 
33
*>
 
34
*> IEEECK is called from the ILAENV to verify that Infinity and
 
35
*> possibly NaN arithmetic is safe (i.e. will not trap).
 
36
*> \endverbatim
 
37
*
 
38
*  Arguments:
 
39
*  ==========
 
40
*
 
41
*> \param[in] ISPEC
 
42
*> \verbatim
 
43
*>          ISPEC is INTEGER
 
44
*>          Specifies whether to test just for inifinity arithmetic
 
45
*>          or whether to test for infinity and NaN arithmetic.
 
46
*>          = 0: Verify infinity arithmetic only.
 
47
*>          = 1: Verify infinity and NaN arithmetic.
 
48
*> \endverbatim
 
49
*>
 
50
*> \param[in] ZERO
 
51
*> \verbatim
 
52
*>          ZERO is REAL
 
53
*>          Must contain the value 0.0
 
54
*>          This is passed to prevent the compiler from optimizing
 
55
*>          away this code.
 
56
*> \endverbatim
 
57
*>
 
58
*> \param[in] ONE
 
59
*> \verbatim
 
60
*>          ONE is REAL
 
61
*>          Must contain the value 1.0
 
62
*>          This is passed to prevent the compiler from optimizing
 
63
*>          away this code.
 
64
*>
 
65
*>  RETURN VALUE:  INTEGER
 
66
*>          = 0:  Arithmetic failed to produce the correct answers
 
67
*>          = 1:  Arithmetic produced the correct answers
 
68
*> \endverbatim
 
69
*
 
70
*  Authors:
 
71
*  ========
 
72
*
 
73
*> \author Univ. of Tennessee 
 
74
*> \author Univ. of California Berkeley 
 
75
*> \author Univ. of Colorado Denver 
 
76
*> \author NAG Ltd. 
 
77
*
 
78
*> \date November 2011
 
79
*
 
80
*> \ingroup auxOTHERauxiliary
 
81
*
 
82
*  =====================================================================
1
83
      INTEGER          FUNCTION IEEECK( ISPEC, ZERO, ONE )
2
 
* $Id: ieeeck.f 19697 2010-10-29 16:57:34Z d3y133 $
3
84
*
4
 
*  -- LAPACK auxiliary routine (version 3.0) --
5
 
*     Univ. of Tennessee, Univ. of California Berkeley, NAG Ltd.,
6
 
*     Courant Institute, Argonne National Lab, and Rice University
7
 
*     June 30, 1998
 
85
*  -- LAPACK auxiliary routine (version 3.4.0) --
 
86
*  -- LAPACK is a software package provided by Univ. of Tennessee,    --
 
87
*  -- Univ. of California Berkeley, Univ. of Colorado Denver and NAG Ltd..--
 
88
*     November 2011
8
89
*
9
90
*     .. Scalar Arguments ..
10
91
      INTEGER            ISPEC
11
92
      REAL               ONE, ZERO
12
93
*     ..
13
94
*
14
 
*  Purpose
15
 
*  =======
16
 
*
17
 
*  IEEECK is called from the ILAENV to verify that Infinity and
18
 
*  possibly NaN arithmetic is safe (i.e. will not trap).
19
 
*
20
 
*  Arguments
21
 
*  =========
22
 
*
23
 
*  ISPEC   (input) INTEGER
24
 
*          Specifies whether to test just for inifinity arithmetic
25
 
*          or whether to test for infinity and NaN arithmetic.
26
 
*          = 0: Verify infinity arithmetic only.
27
 
*          = 1: Verify infinity and NaN arithmetic.
28
 
*
29
 
*  ZERO    (input) REAL
30
 
*          Must contain the value 0.0
31
 
*          This is passed to prevent the compiler from optimizing
32
 
*          away this code.
33
 
*
34
 
*  ONE     (input) REAL
35
 
*          Must contain the value 1.0
36
 
*          This is passed to prevent the compiler from optimizing
37
 
*          away this code.
38
 
*
39
 
*  RETURN VALUE:  INTEGER
40
 
*          = 0:  Arithmetic failed to produce the correct answers
41
 
*          = 1:  Arithmetic produced the correct answers
 
95
*  =====================================================================
42
96
*
43
97
*     .. Local Scalars ..
44
98
      REAL               NAN1, NAN2, NAN3, NAN4, NAN5, NAN6, NEGINF,
113
167
*
114
168
      NAN5 = NEGINF*NEGZRO
115
169
*
116
 
      NAN6 = NAN5*0.0
 
170
      NAN6 = NAN5*ZERO
117
171
*
118
172
      IF( NAN1.EQ.NAN1 ) THEN
119
173
         IEEECK = 0