test_scalapack.F90 3.33 KB
Newer Older
Pavel Kus's avatar
Pavel Kus committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
! (c) Copyright Pavel Kus, 2017, MPCDF
!
!    This file is part of ELPA.
!
!    The ELPA library was originally created by the ELPA consortium,
!    consisting of the following organizations:
!
!    - Max Planck Computing and Data Facility (MPCDF), formerly known as
!      Rechenzentrum Garching der Max-Planck-Gesellschaft (RZG),
!    - Bergische Universität Wuppertal, Lehrstuhl für angewandte
!      Informatik,
!    - Technische Universität München, Lehrstuhl für Informatik mit
!      Schwerpunkt Wissenschaftliches Rechnen ,
!    - Fritz-Haber-Institut, Berlin, Abt. Theorie,
!    - Max-Plack-Institut für Mathematik in den Naturwissenschaften,
!      Leipzig, Abt. Komplexe Strukutren in Biologie und Kognition,
!      and
!    - IBM Deutschland GmbH
!
!
!    More information can be found here:
!    http://elpa.mpcdf.mpg.de/
!
!    ELPA is free software: you can redistribute it and/or modify
!    it under the terms of the version 3 of the license of the
!    GNU Lesser General Public License as published by the Free
!    Software Foundation.
!
!    ELPA is distributed in the hope that it will be useful,
!    but WITHOUT ANY WARRANTY; without even the implied warranty of
!    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
!    GNU Lesser General Public License for more details.
!
!    You should have received a copy of the GNU Lesser General Public License
!    along with ELPA.  If not, see <http://www.gnu.org/licenses/>
!
!    ELPA reflects a substantial effort on the part of the original
!    ELPA consortium, and we ask you to respect the spirit of the
!    license that we chose: i.e., please contribute any changes you
!    may have back to the original ELPA library distribution, and keep
!    any derivatives of ELPA under the same license that we chose for
!    the original distribution, the GNU Lesser General Public License.

44
#include "../Fortran/assert.h"
Pavel Kus's avatar
Pavel Kus committed
45
46
47
48
49
50
51
#include "config-f90.h"

module test_scalapack
  use test_util

  interface solve_scalapack_all
    module procedure solve_pdsyevd
Pavel Kus's avatar
Pavel Kus committed
52
53
54
55
56
57
58
59
    module procedure solve_pzheevd
#ifdef WANT_SINGLE_PRECISION_REAL
    module procedure solve_pssyevd
#endif
#ifdef WANT_SINGLE_PRECISION_COMPLEX
    module procedure solve_pcheevd
#endif
  end interface
Pavel Kus's avatar
Pavel Kus committed
60

61
62
63
64
65
66
67
68
69
70
71
  interface solve_scalapack_part
    module procedure solve_pdsyevr
    module procedure solve_pzheevr
#ifdef WANT_SINGLE_PRECISION_REAL
    module procedure solve_pssyevr
#endif
#ifdef WANT_SINGLE_PRECISION_COMPLEX
    module procedure solve_pcheevr
#endif
  end interface

Pavel Kus's avatar
Pavel Kus committed
72
73
contains

Pavel Kus's avatar
Pavel Kus committed
74
75
76
77
78
79
#define COMPLEXCASE 1
#define DOUBLE_PRECISION 1
#include "../../src/general/precision_macros.h"
#include "test_scalapack_template.F90"
#undef DOUBLE_PRECISION
#undef COMPLEXCASE
80

Pavel Kus's avatar
Pavel Kus committed
81
#ifdef WANT_SINGLE_PRECISION_COMPLEX
Pavel Kus's avatar
Pavel Kus committed
82

Pavel Kus's avatar
Pavel Kus committed
83
84
85
86
87
88
#define COMPLEXCASE 1
#define SINGLE_PRECISION 1
#include "../../src/general/precision_macros.h"
#include "test_scalapack_template.F90"
#undef SINGLE_PRECISION
#undef COMPLEXCASE
89

Pavel Kus's avatar
Pavel Kus committed
90
#endif /* WANT_SINGLE_PRECISION_COMPLEX */
91

Pavel Kus's avatar
Pavel Kus committed
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
#define REALCASE 1
#define DOUBLE_PRECISION 1
#include "../../src/general/precision_macros.h"
#include "test_scalapack_template.F90"
#undef DOUBLE_PRECISION
#undef REALCASE

#ifdef WANT_SINGLE_PRECISION_REAL

#define REALCASE 1
#define SINGLE_PRECISION 1
#include "../../src/general/precision_macros.h"
#include "test_scalapack_template.F90"
#undef SINGLE_PRECISION
#undef REALCASE

#endif /* WANT_SINGLE_PRECISION_REAL */
Pavel Kus's avatar
Pavel Kus committed
109
110
111


end module