HPhi++
3.1.0
|
File for calculating total spin. More...
#include <bitcalc.hpp>
#include "mltplyCommon.hpp"
#include "mltplySpinCore.hpp"
#include "wrapperMPI.hpp"
#include "mltplyMPISpin.hpp"
#include "mltplyMPISpinCore.hpp"
#include "expec_totalspin.hpp"
Go to the source code of this file.
Functions | |
void | totalspin_Hubbard (struct BindStruct *X, int nstate, std::complex< double > **vec) |
function of calculating totalspin for Hubbard model More... | |
void | totalspin_HubbardGC (struct BindStruct *X, int nstate, std::complex< double > **vec) |
function of calculating totalspin for Hubbard model in grand canonical ensemble More... | |
void | totalspin_Spin (struct BindStruct *X, int nstate, std::complex< double > **vec) |
function of calculating totalspin for spin model More... | |
void | totalspin_SpinGC (struct BindStruct *X, int nstate, std::complex< double > **vec) |
function of calculating totalspin for spin model in grand canonical ensemble More... | |
int | expec_totalspin (struct BindStruct *X, int nstate, std::complex< double > **vec) |
Parent function of calculation of total spin. More... | |
File for calculating total spin.
modify to treat the case of general spin
Definition in file expec_totalspin.cpp.
int expec_totalspin | ( | struct BindStruct * | X, |
int | nstate, | ||
std::complex< double > ** | vec | ||
) |
Parent function of calculation of total spin.
[in,out] | X | data list of calculation parameters |
[in] | vec | eigenvector |
0 | calculation is normally finished |
Definition at line 619 of file expec_totalspin.cpp.
References BindStruct::Def, DefineList::iCalcModel, BindStruct::Large, LargeList::mode, BindStruct::Phys, PhysList::s2, PhysList::Sz, DefineList::Total2SzMPI, totalspin_Hubbard(), totalspin_HubbardGC(), totalspin_Spin(), and totalspin_SpinGC().
Referenced by phys(), and totalspin_SpinGC().
void totalspin_Hubbard | ( | struct BindStruct * | X, |
int | nstate, | ||
std::complex< double > ** | vec | ||
) |
function of calculating totalspin for Hubbard model
[in,out] | X | data list of calculation parameters |
vec | eigenvector |
Definition at line 45 of file expec_totalspin.cpp.
References BindStruct::Check, BindStruct::Def, GetOffComp(), GetSplitBitByModel(), DefineList::iCalcModel, CheckList::idim_max, list_1, list_2_1, list_2_2, DefineList::Nsite, DefineList::NsiteMPI, BindStruct::Phys, PhysList::s2, SumMPI_dv(), PhysList::Sz, and DefineList::Tpow.
Referenced by expec_totalspin().
void totalspin_HubbardGC | ( | struct BindStruct * | X, |
int | nstate, | ||
std::complex< double > ** | vec | ||
) |
function of calculating totalspin for Hubbard model in grand canonical ensemble
[in,out] | X | data list of calculation parameters |
vec | eigenvector |
Definition at line 127 of file expec_totalspin.cpp.
References BindStruct::Check, BindStruct::Def, CheckList::idim_max, DefineList::NsiteMPI, BindStruct::Phys, PhysList::s2, SumMPI_dv(), PhysList::Sz, and DefineList::Tpow.
Referenced by expec_totalspin().
void totalspin_Spin | ( | struct BindStruct * | X, |
int | nstate, | ||
std::complex< double > ** | vec | ||
) |
function of calculating totalspin for spin model
[in,out] | X | data list of calculation parameters |
vec | eigenvector |
modify for hybrid parallel
Definition at line 207 of file expec_totalspin.cpp.
References BindStruct::Check, ConvertToList1GeneralSpin(), BindStruct::Def, GetBitGeneral(), GetLocal2Sz(), GetOffComp(), GetOffCompGeneralSpin(), GetSplitBitByModel(), DefineList::iCalcModel, CheckList::idim_max, DefineList::iFlgGeneralSpin, list_1, list_2_1, list_2_2, myrank, DefineList::Nsite, DefineList::NsiteMPI, BindStruct::Phys, PhysList::s2, CheckList::sdim, DefineList::SiteToBit, SumMPI_dv(), PhysList::Sz, DefineList::Tpow, and X_SpinGC_CisAis().
Referenced by expec_totalspin().
void totalspin_SpinGC | ( | struct BindStruct * | X, |
int | nstate, | ||
std::complex< double > ** | vec | ||
) |
function of calculating totalspin for spin model in grand canonical ensemble
[in,out] | X | data list of calculation parameters |
vec | eigenvector |
add function to treat a calculation of total spin for general spin
Definition at line 405 of file expec_totalspin.cpp.
References BindStruct::Check, BindStruct::Def, expec_totalspin(), GetBitGeneral(), GetLocal2Sz(), GetOffCompGeneralSpin(), CheckList::idim_max, DefineList::iFlgGeneralSpin, BindStruct::Large, LargeList::mode, myrank, DefineList::Nsite, DefineList::NsiteMPI, BindStruct::Phys, PhysList::s2, DefineList::SiteToBit, SumMPI_dv(), PhysList::Sz, DefineList::Tpow, and X_SpinGC_CisAis().
Referenced by expec_totalspin().