HΦ  3.2.0
global.h
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 #ifndef HPHI_GLOBAL_H
18 #define HPHI_GLOBAL_H
19 
20 #include <complex.h>
21 #include <math.h>
22 #include <stdio.h>
23 #define D_FileNameMax 256
24 #define MPIFALSE -1
25 #define FALSE 0
26 #define TRUE 1
27 
31 #define ITINERANT 0
32 #define LOCSPIN 1
33 
34 double complex *v0;
35 double complex *v1;
36 double complex *v2;
37 double complex *v1buf;
39 //[s] For calcSpectrum
40 double complex *v1Org;
41 double complex *vg;
42 //[e] For calcSpectrum
43 
44 double *alpha,*beta;
45 double complex **vec;
46 double *list_Diagonal;
47 long unsigned int *list_1;
48 long unsigned int *list_1buf;
49 long unsigned int *list_2_1;
50 long unsigned int *list_2_2;
52 /*[s] For Spectrum */
53 long unsigned int *list_1_org;
54 long unsigned int *list_1buf_org;
55 long unsigned int *list_2_1_org;
56 long unsigned int *list_2_2_org;
57 /*[e] For Spectrum */
58 
59 /*[s] For Lanczos */
61 /*[e] For Lanczos */
62 
63 /*[s] For TPQ*/
64 double LargeValue;
65 int NumAve;
66 int step_i;
67 double global_norm;
70 /*[e] For TPQ*/
71 
72 /*[s] For All Diagonalization*/
73 double complex**Ham;
74 double complex **L_vec;
75 #ifdef _SCALAPACK
76 double complex *Z_vec;
77 int descZ_vec[9]; /*descriptor for Z_vec*/
78 #endif
79 /*[e] For All Diagonalization*/
80 
81 const char* cParentOutputFolder;
83 //For TimeKeep
84 const char* cFileNameTimeKeep;
85 const char* cFileNameSzTimeKeep;
87 //For Check
89 const char* cFileNameCheckChemi;
91 const char* cFileNameCheckHund;
94 const char* cFileNameCheckSdim;
96 //For EDTrans
99 //For Lanczos
103 const char* cFileNameEnergy_CG;
108 const char* cFileNameTimeEV_CG;
109 const char* cFileNameListModel;
115 //For TPQ
116 const char* cFileNameSSRand;
117 const char* cFileNameTPQStep;
118 const char* cFileNameNormRand;
119 const char* cFileNameFlctRand;
127 //For Time evolution
128 const char* cFileNameTEStep;
129 const char* cFileNameSS;
130 const char* cFileNameNorm;
131 const char* cFileNameFlct;
133 //For FullDiag
140 //For Spectrum
144 //For Error
145 const char* cFileNameErrorSz;
147 //For Timer
148 double *Timer;
149 double *TimerStart;
151 /********************************************************************/
152 /********************************************************************/
153 double eps;
154 double eps_CG;
155 double eps_Lanczos;
156 double eps_Energy;
159 /*
160  Variables for the MPI parallelism
161 */
162 int nproc;
163 int myrank;
165 FILE *stdoutMPI;
168 #endif /* HPHI_GLOBAL_H */
169 
const char * cFileNameEigenvalue_Lanczos
Definition: global.h:102
int step_spin
Definition: global.h:69
const char * cFileNameSSRand
Definition: global.h:116
const char * cFileNamePhys_FullDiag
Definition: global.h:134
const char * cFileNamePhys_FullDiag_GC
Definition: global.h:135
const char * cFileNameLanczosStep
Definition: global.h:100
double complex * v1Org
Definition: global.h:40
long unsigned int * list_2_1_org
Definition: global.h:55
const char * cFileNameCheckSdim
Definition: global.h:94
const char * cFileNameTimeEV_CG
Definition: global.h:108
const char * cFileNameOutputEigen
Definition: global.h:110
int initial_mode
Definition: global.h:60
const char * cFileNameTimeKeep
Definition: global.h:84
const char * cFileName1BGreen_FullDiag
Definition: global.h:136
const char * cFileNameCheckChemi
Definition: global.h:89
const char * cFileNameTridiagonalMatrixComponents
Definition: global.h:113
const char * cFileName1BGreen_TPQ
Definition: global.h:120
const char * cFileName2BGreen_TE
Definition: global.h:123
const char * cFileNameInputEigen
Definition: global.h:111
double complex * v1
Definition: global.h:35
const char * cFileNameCalcDynamicalGreen
Definition: global.h:112
int NumAve
Definition: global.h:65
double complex * v2
Definition: global.h:36
double complex ** vec
Definition: global.h:45
long unsigned int * list_1buf
Definition: global.h:48
const char * cFileName2BGreen_FullDiag
Definition: global.h:137
const char * cFileName2BGreen_Lanczos
Definition: global.h:106
long unsigned int * list_1buf_org
Definition: global.h:54
double global_norm
Definition: global.h:67
const char * cFileName2BGreen_TPQ
Definition: global.h:121
int nthreads
Number of Threads, defined in InitializeMPI()
Definition: global.h:164
const char * cFileNameFlct
Definition: global.h:131
const char * cFileNameInputVector
Definition: global.h:125
const char * cFileNameNormRand
Definition: global.h:118
const char * cFileNameCheckHund
Definition: global.h:91
const char * cFileNameOutputRestartVec
Definition: global.h:141
long unsigned int * list_2_2_org
Definition: global.h:56
const char * cFileName1BGreen_TE
Definition: global.h:122
int nproc
Number of processors, defined in InitializeMPI()
Definition: global.h:162
double eps_CG
Definition: global.h:154
const char * cFileNameCheckInterAll
Definition: global.h:92
const char * cFileNameListModel
Definition: global.h:109
double complex ** Ham
Definition: global.h:73
double eps_Energy
Definition: global.h:156
const char * cFileName2BGreen_CG
Definition: global.h:107
double eps
Definition: global.h:153
long unsigned int * list_1_org
Definition: global.h:53
long unsigned int * list_2_1
Definition: global.h:49
const char * cFileNameTPQStep
Definition: global.h:117
double complex ** L_vec
Definition: global.h:74
double * alpha
Definition: global.h:44
const char * cFileNameFlctRand
Definition: global.h:119
const char * cFileName1BGreen_Lanczos
Definition: global.h:104
long unsigned int * list_1
Definition: global.h:47
const char * cFileNameOutputVector
Definition: global.h:124
const char * cFileNameErrorSz
Definition: global.h:145
const char * cFileName1BGreen_CG
Definition: global.h:105
const char * cFileNamePhys_FullDiag_Ham
Definition: global.h:138
double complex * vg
Definition: global.h:41
const char * cParentOutputFolder
Definition: global.h:81
long unsigned int * list_2_2
Definition: global.h:50
double eps_CheckImag0
Definition: global.h:157
double * beta
Definition: global.h:44
const char * cFileNameCheckMemory
Definition: global.h:93
const char * cFileNameEnergy_Lanczos
Definition: global.h:101
const char * cFileNameSzTimeKeep
Definition: global.h:85
double * TimerStart
Definition: global.h:149
double * Timer
Definition: global.h:148
const char * cFileNameNorm
Definition: global.h:130
double * list_Diagonal
Definition: global.h:46
const char * cFileNameOutputExcitedVec
Definition: global.h:142
int myrank
Process ID, defined in InitializeMPI()
Definition: global.h:163
const char * cFileNameCheckInterU
Definition: global.h:90
const char * cFileNameTEStep
Definition: global.h:128
const char * cFileNameCheckCoulombIntra
Definition: global.h:88
double global_1st_norm
Definition: global.h:68
double complex * v0
Definition: global.h:34
double complex * v1buf
Definition: global.h:37
int step_i
Definition: global.h:66
double LargeValue
Definition: global.h:64
const char * cFileNameEnergy_CG
Definition: global.h:103
const char * cFileNameWarningOnTransfer
Definition: global.h:97
const char * cFileNameSS
Definition: global.h:129
double eps_Lanczos
Definition: global.h:155
FILE * stdoutMPI
File pointer to the standard output defined in InitializeMPI()
Definition: global.h:165