HΦ
3.2.0
|
Set size of memories to be needed for calculation. More...
#include "Common.h"
#include "common/setmemory.h"
#include "xsetmem.h"
#include "wrapperMPI.h"
Go to the source code of this file.
Functions | |
void | setmem_HEAD (struct BindStruct *X) |
Set size of memories headers of output files. More... | |
void | setmem_def (struct BindStruct *X, struct BoostList *xBoost) |
Set size of memories for Def and Phys in BindStruct. More... | |
int | setmem_large (struct BindStruct *X) |
Set size of memories for Hamiltonian (Ham, L_vec), 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. More... | |
void | setmem_IntAll_Diagonal (int **InterAllOffDiagonal, double complex *ParaInterAllOffDiagonal, int **InterAllDiagonal, double *ParaInterAllDiagonal, const int NInterAll) |
Set the size of memories for InterAllDiagonal and InterAllOffDiagonal arrays. More... | |
int | GetlistSize (struct BindStruct *X) |
Set size of lists for the canonical ensemble. More... | |
Variables | |
static unsigned long int | mfint [7] |
int GetlistSize | ( | struct BindStruct * | X | ) |
Set size of lists for the canonical ensemble.
X | [in,out] Give the information for getting the list size and get the lists. Input: DefineList.iFlgGeneralSpin, DefineList.iCalcModel, DefineList.Nsite, CheckList.sdim, DefineList.Tpow, DefineList.SiteToBit Output: LargeList.SizeOflist_2_1, LargeList.SizeOflist_2_2, LargeList.SizeOflistjb |
TRUE | Normally finished |
FALSE | Unnormally finished |
Definition at line 288 of file xsetmem.c.
References BindStruct::Check, BindStruct::Def, FALSE, DefineList::iCalcModel, DefineList::iFlgGeneralSpin, BindStruct::Large, DefineList::Nsite, CheckList::sdim, DefineList::SiteToBit, LargeList::SizeOflist_2_1, LargeList::SizeOflist_2_2, LargeList::SizeOflistjb, DefineList::Tpow, and TRUE.
Referenced by MakeExcitedList(), setmem_IntAll_Diagonal(), and setmem_large().
void setmem_def | ( | struct BindStruct * | X, |
struct BoostList * | xBoost | ||
) |
Set size of memories for Def and Phys in BindStruct.
X | [in,out] BindStruct to get information of Def and Phys structs. |
xBoost | [in,out] Struct for Boost mode. |
Definition at line 55 of file xsetmem.c.
References BoostList::arrayJ, PhysList::charge_real_cor, DefineList::CisAjt, DefineList::CisAjtCkuAlvDC, DefineList::CoulombInter, DefineList::CoulombIntra, BindStruct::Def, DefineList::EDChemi, DefineList::EDGeneralTransfer, DefineList::EDNChemi, DefineList::EDParaChemi, DefineList::EDParaGeneralTransfer, DefineList::EDSpinChemi, DefineList::ExchangeCoupling, DefineList::GeneralTransfer, DefineList::HundCoupling, DefineList::iCalcType, DefineList::InterAll, DefineList::InterAll_Diagonal, DefineList::InterAll_OffDiagonal, BoostList::list_6spin_pair, BoostList::list_6spin_star, PhysList::loc_spin_z, DefineList::LocSpn, DefineList::NCisAjt, DefineList::NCisAjtCkuAlvDC, DefineList::NCoulombInter, DefineList::NCoulombIntra, DefineList::NExchangeCoupling, DefineList::NHundCoupling, DefineList::NInterAll, DefineList::NIsingCoupling, DefineList::NLaser, DefineList::NPairExcitationOperator, DefineList::NPairHopping, DefineList::NPairLiftCoupling, DefineList::NSingleExcitationOperator, DefineList::Nsite, DefineList::NTEChemi, DefineList::NTEInterAll, DefineList::NTEInterAllDiagonal, DefineList::NTEInterAllMax, DefineList::NTEInterAllOffDiagonal, DefineList::NTETimeSteps, DefineList::NTETransfer, DefineList::NTETransferDiagonal, DefineList::NTETransferMax, DefineList::NTransfer, BoostList::num_pivot, BoostList::NumarrayJ, DefineList::OrgTpow, DefineList::PairExcitationOperator, DefineList::PairHopping, DefineList::PairLiftCoupling, DefineList::ParaCoulombInter, DefineList::ParaCoulombIntra, DefineList::ParaExchangeCoupling, DefineList::ParaGeneralTransfer, DefineList::ParaHundCoupling, DefineList::ParaInterAll, DefineList::ParaInterAll_Diagonal, DefineList::ParaInterAll_OffDiagonal, DefineList::ParaLaser, DefineList::ParaPairExcitationOperator, DefineList::ParaPairHopping, DefineList::ParaPairLiftCoupling, DefineList::ParaSingleExcitationOperator, DefineList::ParaTEChemi, DefineList::ParaTEInterAll, DefineList::ParaTEInterAllDiagonal, DefineList::ParaTEInterAllOffDiagonal, DefineList::ParaTETransfer, DefineList::ParaTETransferDiagonal, BindStruct::Phys, BoostList::R0, setmem_large(), DefineList::SingleExcitationOperator, DefineList::SiteToBit, PhysList::spin_real_cor, DefineList::SpinTEChemi, DefineList::TEChemi, DefineList::TEInterAll, DefineList::TEInterAllDiagonal, DefineList::TEInterAllOffDiagonal, DefineList::TETime, DefineList::TETransfer, DefineList::TETransferDiagonal, and DefineList::Tpow.
Referenced by main(), and setmem_HEAD().
void setmem_HEAD | ( | struct BindStruct * | X | ) |
Set size of memories headers of output files.
X | [out] BindStruct to get headers of files. Output: CDataFileHead, CParaFileHead |
Definition at line 41 of file xsetmem.c.
References DefineList::CDataFileHead, DefineList::CParaFileHead, D_FileNameMax, BindStruct::Def, and setmem_def().
Referenced by main().
void setmem_IntAll_Diagonal | ( | int ** | InterAllOffDiagonal, |
double complex * | ParaInterAllOffDiagonal, | ||
int ** | InterAllDiagonal, | ||
double * | ParaInterAllDiagonal, | ||
const int | NInterAll | ||
) |
Set the size of memories for InterAllDiagonal and InterAllOffDiagonal arrays.
InterAllOffDiagonal | [in,out] Arrays of cites and spin indexes of off-diagonal parts of InterAll interactions. |
ParaInterAllOffDiagonal | [in,out] Arrays of parameters of off-diagonal parts of InterAll interactions. |
InterAllDiagonal | [in,out] Arrays of cites and spin indexes of diagonal parts of InterAll interactions. |
ParaInterAllDiagonal | [in,out] Arrays of parameters of diagonal parts of InterAll interactions. |
NInterAll | [in] Total number of InterAll interactions. |
Definition at line 264 of file xsetmem.c.
References GetlistSize().
Referenced by setmem_large().
int setmem_large | ( | struct BindStruct * | X | ) |
Set size of memories for Hamiltonian (Ham, L_vec), 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.
X | [in,out] BindStruct to give information and give size of memories for Hamiltonian, vectors, lists and Phys struct in the case of Full Diag mode. |
-1 | Fail to set memories. |
0 | Normal to set memories. |
Definition at line 157 of file xsetmem.c.
References PhysList::all_doublon, PhysList::all_energy, PhysList::all_num_down, PhysList::all_num_up, PhysList::all_s2, PhysList::all_sz, alpha, beta, BindStruct::Check, cProFinishAlloc, BindStruct::Def, GetlistSize(), Ham, DefineList::iCalcType, CheckList::idim_max, DefineList::iFlgCalcSpec, DefineList::k_exct, L_vec, DefineList::Lanczos_max, DefineList::LanczosTarget, BindStruct::Large, list_1, list_1buf, list_2_1, list_2_2, list_Diagonal, MaxMPI_li(), DefineList::nvec, BindStruct::Phys, setmem_IntAll_Diagonal(), LargeList::SizeOflist_2_1, LargeList::SizeOflist_2_2, stdoutMPI, TRUE, v0, v1, v1buf, v2, vec, and vg.
Referenced by main(), MakeExcitedList(), and setmem_def().
|
static |
Definition at line 33 of file xsetmem.c.
Referenced by check(), and Lanczos_EigenValue().