HPhi++  3.1.0
global.cpp
Go to the documentation of this file.
1 /* HPhi - Quantum Lattice Model Simulator */
2 /* Copyright (C) 2015 The University of Tokyo */
3 
4 /* This program is free software: you can redistribute it and/or modify */
5 /* it under the terms of the GNU General Public License as published by */
6 /* the Free Software Foundation, either version 3 of the License, or */
7 /* (at your option) any later version. */
8 
9 /* This program is distributed in the hope that it will be useful, */
10 /* but WITHOUT ANY WARRANTY; without even the implied warranty of */
11 /* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the */
12 /* GNU General Public License for more details. */
13 
14 /* You should have received a copy of the GNU General Public License */
15 /* along with this program. If not, see <http://www.gnu.org/licenses/>. */
16 
17 #include "global.hpp"
18 
19 std::complex<double> I(0.0, 1.0);
20 std::complex<double> **v0;
21 std::complex<double> **v1;
22 std::complex<double> **v1buf;
24 double *list_Diagonal;
25 long int *list_1;
26 long int *list_1buf;
27 long int *list_2_1;
28 long int *list_2_2;
30 /*[s] For Spectrum */
31 long int *list_1_org;
32 long int *list_1buf_org;
33 long int *list_2_1_org;
34 long int *list_2_2_org;
35 /*[e] For Spectrum */
36 
37 /*[s] For Lanczos */
39 /*[e] For Lanczos */
40 
41 /*[s] For TPQ*/
42 double LargeValue;
43 int NumAve;
44 int step_i;
45 double *global_norm;
48 /*[e] For TPQ*/
49 
50 /*[s] For All Diagonalization*/
51 #ifdef _SCALAPACK
52 std::complex<double> *Z_vec;
53 int descZ_vec[9]; /*descriptor for Z_vec*/
54 #endif
55 /*[e] For All Diagonalization*/
56 
57 //For Timer
58 double *Timer;
59 double *TimerStart;
61 /********************************************************************/
62 /********************************************************************/
63 double eps;
64 double eps_CG;
65 double eps_Lanczos;
66 double eps_Energy;
69 /*
70  Variables for the MPI parallelism
71 */
72 int nproc;
73 int myrank;
75 FILE *stdoutMPI;
int nproc
Number of processors, defined in InitializeMPI()
Definition: global.cpp:72
FILE * stdoutMPI
File pointer to the standard output defined in InitializeMPI()
Definition: global.cpp:75
long int * list_2_1
Definition: global.cpp:27
long int * list_2_2
Definition: global.cpp:28
double * global_1st_norm
Definition: global.cpp:46
double * Timer
Definition: global.cpp:58
std::complex< double > ** v1buf
Definition: global.cpp:22
int NumAve
Definition: global.cpp:43
std::complex< double > ** v0
Definition: global.cpp:20
double eps
Definition: global.cpp:63
std::complex< double > I(0.0, 1.0)
int step_spin
Definition: global.cpp:47
long int * list_1_org
Definition: global.cpp:31
std::complex< double > ** v1
Definition: global.cpp:21
double * TimerStart
Definition: global.cpp:59
long int * list_1buf
Definition: global.cpp:26
int nthreads
Number of Threads, defined in InitializeMPI()
Definition: global.cpp:74
double eps_Energy
Definition: global.cpp:66
long int * list_2_2_org
Definition: global.cpp:34
double * global_norm
Definition: global.cpp:45
int myrank
Process ID, defined in InitializeMPI()
Definition: global.cpp:73
long int * list_2_1_org
Definition: global.cpp:33
int step_i
Definition: global.cpp:44
int initial_mode
Definition: global.cpp:38
double LargeValue
Definition: global.cpp:42
double * list_Diagonal
Definition: global.cpp:24
double eps_CG
Definition: global.cpp:64
long int * list_1buf_org
Definition: global.cpp:32
double eps_CheckImag0
Definition: global.cpp:67
double eps_Lanczos
Definition: global.cpp:65
long int * list_1
Definition: global.cpp:25