16 #include "CalcByFullDiag.hpp" 18 #include "wrapperMPI.hpp" 19 #include "CalcTime.hpp" 20 #include "mltplyCommon.hpp" 34 fprintf(
stdoutMPI,
"%s",
"###### Start: Setting Hamiltonian. ######\n\n");
43 fprintf(
stdoutMPI,
"%s",
"###### Start: Input Hamiltonian. ######\n\n");
45 fprintf(
stdoutMPI,
"%s",
"###### End : Input Hamiltonian. ######\n\n");
48 fprintf(
stdoutMPI,
"%s",
"###### End : Setting Hamiltonian. ######\n\n");
49 if(iret != 0)
return FALSE;
53 fprintf(
stdoutMPI,
"%s",
"###### Start: Output Hamiltonian. ######\n\n");
57 fprintf(
stdoutMPI,
"%s",
"###### End : Output Hamiltonian. ######\n\n");
58 if(iret != 0)
return FALSE;
62 fprintf(
stdoutMPI,
"%s",
"###### Start: Diagonalization. ######\n\n");
66 fprintf(
stdoutMPI,
"%s",
"###### End : Diagonalization. ######\n\n");
67 if(iret != 0)
return FALSE;
70 fprintf(
stdoutMPI,
"%s",
"###### Start: Calc Expected value. ######\n\n");
74 fprintf(
stdoutMPI,
"%s",
"###### End : Calc Expected value. ######\n\n");
79 fprintf(
stdoutMPI,
"%s",
"###### Finish Calculation. ######\n");
80 if(iret != 0)
return FALSE;
struct DefineList Def
Definision of system (Hamiltonian) etc.
int St
0 or 1, but it affects nothing.
FILE * stdoutMPI
File pointer to the standard output defined in InitializeMPI()
std::complex< double > ** v0
int mltply(struct BindStruct *X, int nstate, std::complex< double > **tmp_v0, std::complex< double > **tmp_v1)
Parent function of multiplying the wavefunction by the Hamiltonian. . First, the calculation of diago...
std::complex< double > ** v1
int output(struct BindStruct *X)
output function for FullDiag mode
void zclear(long int n, std::complex< double > *x)
clear std::complex<double> array.
int lapack_diag(struct BindStruct *X)
performing full diagonalization using lapack
void StopTimer(int n)
function for calculating elapse time [elapse time=StartTimer-StopTimer]
int outputHam(struct BindStruct *X)
output Hamiltonian only used for FullDiag mode
void phys(struct BindStruct *X, long int neig)
A main function to calculate physical quantities by full diagonalization method.
struct CheckList Check
Size of the Hilbert space.
long int idim_max
The dimension of the Hilbert space of this process.
struct BindStruct Bind
Binded struct.
void StartTimer(int n)
function for initializing elapse time [start]
int CalcByFullDiag(struct EDMainCalStruct *X)
Parent function for FullDiag mode.