HPhi++
3.1.0
|
Set size of memories to be needed for calculation. More...
#include "Common.hpp"
#include "common/setmemory.hpp"
#include "xsetmem.hpp"
#include "wrapperMPI.hpp"
#include <iostream>
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 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... | |
int | GetlistSize (struct BindStruct *X) |
Set size of lists for the canonical ensemble. More... | |
Set size of memories to be needed for calculation.
Definition in file xsetmem.cpp.
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 220 of file xsetmem.cpp.
References BindStruct::Check, BindStruct::Def, DefineList::iCalcModel, DefineList::iFlgGeneralSpin, BindStruct::Large, DefineList::Nsite, CheckList::sdim, DefineList::SiteToBit, LargeList::SizeOflist_2_1, LargeList::SizeOflist_2_2, LargeList::SizeOflistjb, and DefineList::Tpow.
Referenced by CalcSpectrum(), MakeExcitedList(), 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 53 of file xsetmem.cpp.
References BoostList::arrayJ, PhysList::charge_real_cor, DefineList::CisAjt, DefineList::CisAjtCkuAlvDC, DefineList::CoulombInter, DefineList::CoulombIntra, BindStruct::Def, DefineList::EDChemi, DefineList::EDGeneralTransfer, 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::NNPairExcitationOperator, DefineList::NNSingleExcitationOperator, 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 39 of file xsetmem.cpp.
References DefineList::CDataFileHead, DefineList::CParaFileHead, BindStruct::Def, and setmem_def().
Referenced by main().
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.
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 154 of file xsetmem.cpp.
References BindStruct::Check, BindStruct::Def, PhysList::doublon, PhysList::doublon2, PhysList::energy, GetlistSize(), DefineList::iCalcType, CheckList::idim_max, DefineList::k_exct, BindStruct::Large, list_1, list_1buf, list_2_1, list_2_2, list_Diagonal, MaxMPI_li(), PhysList::num, PhysList::num2, PhysList::num_down, PhysList::num_up, NumAve, BindStruct::Phys, PhysList::s2, LargeList::SizeOflist_2_1, LargeList::SizeOflist_2_2, stdoutMPI, PhysList::Sz, PhysList::Sz2, v0, v1, v1buf, and PhysList::var.
Referenced by main(), MakeExcitedList(), and setmem_def().