42 sprintf(str1,
"%-50s [%04d] %12.5lf\n", str, num,
Timer[num]);
43 fprintf(fp,
"%s", str1);
57 Timer = (
double*)malloc((NTimer)*
sizeof(double));
58 TimerStart = (
double*)malloc((NTimer)*
sizeof(double));
59 for(i=0;i<NTimer;i++)
Timer[i]=0.0;
100 sprintf(fileName,
"CalcTimer.dat");
111 StampTime(fp,
" rand in FirstMultiply", 3101);
112 StampTime(fp,
" mltply in FirstMultiply", 3102);
113 StampTime(fp,
" expec_energy_flct ", 3200);
114 StampTime(fp,
" calc flctuation in expec_energy_flct ", 3201);
115 StampTime(fp,
" mltply in expec_energy_flct ", 3202);
123 StampTime(fp,
" LanczosEigenValue", 4100);
124 StampTime(fp,
" mltply in LanczosEigenValue", 4101);
125 StampTime(fp,
" vec12 in LanczosEigenValue", 4102);
126 StampTime(fp,
" DSEVvalue in LanczosEigenValue", 4103);
127 StampTime(fp,
" LanczosEigenVector", 4200);
128 StampTime(fp,
" mltply in LanczosEigenVector", 4201);
129 StampTime(fp,
" expec_energy_flct", 4300);
130 StampTime(fp,
" calc flctuation in expec_energy_flct ", 4301);
131 StampTime(fp,
" mltply in expec_energy_flct ", 4302);
133 StampTime(fp,
" mltply in CGEigenVector ", 4401);
138 StampTime(fp,
" Read Input Eigenvec ", 4801);
145 StampTime(fp,
" calc flctuation in expec_energy_flct ", 5301);
146 StampTime(fp,
" mltply in expec_energy_flct ", 5302);
152 StampTime(fp,
" CalcSpectrum by Lanczos method", 6000);
153 StampTime(fp,
" Make excited state", 6100);
154 StampTime(fp,
" Read origin state", 6101);
155 StampTime(fp,
" Multiply excited operator", 6102);
156 StampTime(fp,
" Calculate spectrum", 6200);
158 StampTime(fp,
" Read vector for recalculation", 6201);
159 StampTime(fp,
" Read tridiagonal components for recalculation", 6202);
160 StampTime(fp,
" Calculate tridiagonal components", 6203);
161 StampTime(fp,
" Output tridiagonal components", 6204);
162 StampTime(fp,
" Calculate spectrum by Lanczos method", 6205);
163 StampTime(fp,
" Output vectors for recalculation", 6206);
169 StampTime(fp,
" Calculate spectrum", 6304);
173 fprintf(fp,
"================================================\n");
181 StampTime(fp,
" trans in HubbardGC", 210);
185 StampTime(fp,
" interall in HubbardGC", 220);
188 StampTime(fp,
" pairhopp in HubbardGC", 230);
191 StampTime(fp,
" exchange in HubbardGC", 240);
202 StampTime(fp,
" interall in Hubbard", 320);
205 StampTime(fp,
" pairhopp in Hubbard", 330);
208 StampTime(fp,
" exchange in Hubbard", 340);
233 StampTime(fp,
" interall in SpinGC", 520);
237 StampTime(fp,
" exchange in SpinGC", 530);
241 StampTime(fp,
" pairlift in SpinGC", 540);
250 fprintf(fp,
"================================================\n");
struct DefineList Def
Definision of system (Hamiltonian) etc.
void StartTimer(int n)
function for initializing elapse time [start]
void StopTimer(int n)
function for calculating elapse time [elapse time=StartTimer-StopTimer]
int childfopenMPI(const char *_cPathChild, const char *_cmode, FILE **_fp)
Only the root process open file in output/ directory.
void InitTimer()
function for initializing Timer[]
void StampTime(FILE *fp, char *str, int num)
function for displaying elapse time
void OutputTimer(struct BindStruct *X)
function for outputting elapse time for each function
int iCalcModel
Switch for model. 0:Hubbard, 1:Spin, 2:Kondo, 3:HubbardGC, 4:SpinGC, 5:KondoGC, 6:HubbardNConserved.
int iFlgCalcSpec
Input parameter CalcSpec in teh CalcMod file.
int iCalcType
Switch for calculation type. 0:Lanczos, 1:TPQCalc, 2:FullDiag.