18 #include "common/setmemory.hpp" 19 #include "xsetmem.hpp" 20 #include "wrapperMPI.hpp" 188 long int MAXidim_max;
191 v1buf = cd_2d_allocate(MAXidim_max + 1, nstate);
198 X->
Phys.
num = d_1d_allocate(nstate);
199 X->
Phys.
num2 = d_1d_allocate(nstate);
201 X->
Phys.
var = d_1d_allocate(nstate);
204 X->
Phys.
Sz = d_1d_allocate(nstate);
205 X->
Phys.
Sz2 = d_1d_allocate(nstate);
206 X->
Phys.
s2 = d_1d_allocate(nstate);
208 fprintf(
stdoutMPI,
"%s",
"\n###### LARGE ALLOCATE FINISH ! ######\n\n");
226 case HubbardNConserved:
double * doublon
Expectation value of the Doublon.
int * NTETransferDiagonal
struct DefineList Def
Definision of system (Hamiltonian) etc.
std::complex< double > * EDParaGeneralTransfer
Value of general transfer integrals by a def file. malloc in setmem_def(). Data Format [DefineList::N...
double * num_down
Expectation value of the number of down-spin electtrons.
std::complex< double > * ParaInterAll
[DefineList::NInterAll] Coupling constant of inter-all term. malloc in setmem_def().
double * var
Expectation value of the Energy variance.
FILE * stdoutMPI
File pointer to the standard output defined in InitializeMPI()
int NCoulombInter
Number of off-site Coulomb interaction.
std::complex< double > ** ParaTETransfer
int * EDSpinChemi
[DefineList::Nsite]
std::complex< double > ** ParaTEInterAll
long int * OrgTpow
[2 * DefineList::NsiteMPI] malloc in setmem_def().
int ** ExchangeCoupling
[DefineList::NExchangeCoupling][2] Index of exchange term. malloc in setmem_def().
std::complex< double > ** v1buf
double * ParaInterAll_Diagonal
[DefineList::NInterAll_Diagonal] Coupling constant of diagonal inter-all term. malloc in setmem_def()...
int NPairLiftCoupling
Number of pair-lift term.
std::complex< double > ** ParaSingleExcitationOperator
[DefineList::NSingleExcitationOperator] Coefficient of single excitaion operator for spectrum...
std::complex< double > ** v0
int * NSingleExcitationOperator
Number of single excitaion operator for spectrum.
int *** TETransferDiagonal
double * s2
Expectation value of the square of the total S.
int Nsite
Number of sites in the INTRA process region.
struct LargeList Large
Variables for Matrix-Vector product.
double * num2
Expectation value of the quare of the number of electrons.
int * LocSpn
[DefineList::NLocSpn] Flag (and size) of the local spin. malloc in setmem_def().
int ** CisAjtCkuAlvDC
[DefineList::NCisAjtCkuAlvDC][4] Indices of two-body correlation function. malloc in setmem_def()...
int ** EDGeneralTransfer
Index of transfer integrals for calculation. malloc in setmem_def(). Data Format [DefineList::NTransf...
void setmem_HEAD(struct BindStruct *X)
Set size of memories headers of output files.
struct PhysList Phys
Physical quantities.
double * Sz2
Expectation value of the Square of total Sz.
long int SizeOflist_2_1
Size of list_2_1.
long int MaxMPI_li(long int idim)
MPI wrapper function to obtain maximum unsigned long integer across processes.
int * NPairExcitationOperator
Number of pair excitaion operator for spectrum.
std::complex< double > ** v1
double * Sz
Expectation value of the Total Sz.
int NHundCoupling
Number of Hund coupling.
int NIsingCoupling
Number of Ising term.
std::complex< double > ** ParaPairExcitationOperator
[DefineList::NPairExcitationOperator] Coefficient of pair excitaion operator for spectrum. malloc in setmem_def().
int NInterAll
Total Number of Interacted quartet.
int ** InterAll_OffDiagonal
[DefineList::NinterAll_OffDiagonal][8] Interacted quartet
int ** InterAll_Diagonal
[DefineList::NinterAll_Diagonal][4] Interacted quartet
double * loc_spin_z
Malloc, but Not used ???
int ** GeneralTransfer
Index of transfer integrals obtained by a def file. malloc in setmem_def(). Data Format [DefineList::...
int * NTEInterAllOffDiagonal
int ** PairHopping
[DefineList::NPairHopping][2] Index of pair-hopping. malloc in setmem_def().
double ** ParaTETransferDiagonal
int NNSingleExcitationOperator
Number of single excitaion operator for spectrum.
int ** PairLiftCoupling
[DefineList::NPairHopping][2] Index of pair-lift term. malloc in setmem_def().
int ** HundCoupling
[DefineList::NHundCoupling][2] Index of Hund coupling. malloc in setmem_def().
int NCisAjt
Number of indices of two-body correlation function.
double * num
Expectation value of the Number of electrons.
double * ParaExchangeCoupling
[DefineList::NExchangeCoupling] Coupling constant of exchange term. malloc in setmem_def().
double * ParaCoulombInter
[DefineList::NCoulombInter]Coupling constant of off-site Coulomb interaction. malloc in setmem_def()...
double * ParaPairLiftCoupling
[DefineList::NPairHopping] Coupling constant of pair-lift term. malloc in setmem_def().
void setmem_def(struct BindStruct *X, struct BoostList *xBoost)
Set size of memories for Def and Phys in BindStruct.
double * EDParaChemi
[DefineList::Nsite] On-site potential parameter. malloc in setmem_def().
double * energy
Expectation value of the total energy.
int NExchangeCoupling
Number of exchange term.
int * NTEInterAllDiagonal
std::complex< double > * ParaInterAll_OffDiagonal
[DefineList::NInterAll_OffDiagonal] Coupling constant of off-diagonal inter-all term. malloc in setmem_def().
char * CParaFileHead
Read from Calcmod in readdef.h. It is not used. Just for the compatibility to mVMC.
int NTransfer
Number of transfer integrals obtained by a def file.
int iFlgGeneralSpin
Flag for the general (Sz/=1/2) spin.
long int * SiteToBit
[DefineList::NsiteMPI] Similar to DefineList::Tpow. For general spin.
double * doublon2
Expectation value of the Square of doublon.
long int * Tpow
[2 * DefineList::NsiteMPI] malloc in setmem_def().
int ** CisAjt
[DefineList::NCisAjt][4] Indices of one-body correlation function. malloc in setmem_def().
double ** ParaTEInterAllDiagonal
double * ParaPairHopping
[DefineList::NPairHopping] Coupling constant of pair-hopping term. malloc in setmem_def().
double * charge_real_cor
Malloc, but Not used ???
double * ParaHundCoupling
[DefineList::NHundCoupling] Hund coupling constant. malloc in setmem_def().
std::complex< double > * ParaGeneralTransfer
Value of general transfer integrals by a def file. malloc in setmem_def(). Data Format [DefineList::N...
int NPairHopping
Number of pair-hopping term.
double * spin_real_cor
Malloc, but Not used ???
int setmem_large(struct BindStruct *X)
Set size of memories for vectors(vg, v0, v1, v2, vec, alpha, beta), lists (list_1, list_2_1, list_2_2, list_Diagonal) and Phys(BindStruct.PhysList) struct in the case of Full Diag mode.
double * num_up
Expectation value of the number of up-spin electtrons.
int iCalcModel
Switch for model. 0:Hubbard, 1:Spin, 2:Kondo, 3:HubbardGC, 4:SpinGC, 5:KondoGC, 6:HubbardNConserved.
int *** TEInterAllOffDiagonal
double * ParaCoulombIntra
int GetlistSize(struct BindStruct *X)
Set size of lists for the canonical ensemble.
int *** TEInterAllDiagonal
int k_exct
Read from Calcmod in readdef.h.
int ** InterAll
[DefineList::NinterAll][8] Interacted quartet
long int SizeOflistjb
Used for computing Sz.
int * EDChemi
[DefineList::Nsite] Chemical potential. malloc in setmem_def().
std::complex< double > *** arrayJ
struct CheckList Check
Size of the Hilbert space.
char * CDataFileHead
Read from Calcmod in readdef.h. Header of output file such as Green's function.
long int sdim
Dimension for Ogata-Lin ???
int NNPairExcitationOperator
Number of pair excitaion operator for spectrum.
int NCisAjtCkuAlvDC
Number of indices of two-body correlation function.
int *** SingleExcitationOperator
[DefineList::NSingleExcitationOperator][3] Indices of single excitaion operator for spectrum...
long int idim_max
The dimension of the Hilbert space of this process.
long int SizeOflist_2_2
Size of list_2_2.
int *** PairExcitationOperator
[DefineList::NPairExcitationOperator][5] Indices of pair excitaion operator for spectrum. malloc in setmem_def().
std::complex< double > ** ParaTEInterAllOffDiagonal
int iCalcType
Switch for calculation type. 0:Lanczos, 1:TPQCalc, 2:FullDiag.