HPhi++
3.1.0
|
File to define functions of reading input files. More...
#include "Common.hpp"
#include "readdef.hpp"
#include <cctype>
#include "wrapperMPI.hpp"
#include "common/setmemory.hpp"
#include <iostream>
#include "version_major.hpp"
#include "version_miner.hpp"
#include "version_patch.hpp"
Go to the source code of this file.
Functions | |
int | CheckInterAllCondition (int iCalcModel, int Nsite, int iFlgGeneralSpin, int *iLocInfo, int isite1, int isigma1, int isite2, int isigma2, int isite3, int isigma3, int isite4, int isigma4) |
Check InterAll condition. More... | |
int | InputInterAllInfo (int *icnt_interall, int **iInterAllInfo, std::complex< double > *cInterAllValue, int isite1, int isigma1, int isite2, int isigma2, int isite3, int isigma3, int isite4, int isigma4, double dvalue_re, double dvalue_im) |
Input InterAll Interactions (Operators of the same kinds are grouped together). More... | |
int | ReadDefFileError (const char *defname) |
Error Function of reading def files. More... | |
int | ValidateValue (const int icheckValue, const int ilowestValue, const int iHighestValue) |
Function of Validating value. More... | |
int | CheckKW (const char *cKW, char cKWList[][D_CharTmpReadDef], int iSizeOfKWidx, int *iKWidx) |
Function of Checking keyword in NameList file. More... | |
int | GetKWWithIdx (char *ctmpLine, char *ctmp, int *itmp) |
Function of Getting keyword and it's variable from characters. More... | |
int | ReadcalcmodFile (const char *defname, struct DefineList *X) |
Function of Reading calcmod file. More... | |
int | GetFileName (const char *cFileListNameFile, char **cFileNameList) |
Function of Fitting FileName. More... | |
int | ReadDefFileNInt (char *xNameListFile, struct DefineList *X, struct BoostList *xBoost) |
Function of reading information about "ModPara" file and total number of parameters from other def files. More... | |
static int | CheckInterAllHermite (int **InterAll, std::complex< double > *ParaInterAll, int **InterAllOffDiagonal, std::complex< double > *ParaInterAllOffDiagonal, const int NInterAllOffDiagonal, const int iCalcModel) |
function of checking hermite conditions about interall interactions More... | |
int | GetDiagonalInterAll (int **InterAll, std::complex< double > *ParaInterAll, const int NInterAll, int **InterAllDiagonal, double *ParaInterAllDiagonal, int **InterAllOffDiagonal, std::complex< double > *ParaInterAllOffDiagonal, int *Chemi, int *SpinChemi, double *ParaChemi, int *NChemi, const int iCalcModel) |
function of getting diagonal components More... | |
static int | CheckTETransferHermite (struct DefineList *X, const int NTETransfer, const int idx) |
Check Hermite for TETransfer integrals. More... | |
int | ReadDefFileIdxPara (struct DefineList *X, struct BoostList *xBoost) |
function of reading def files to get keyword index More... | |
int | CheckSite (const int iSite, const int iMaxNum) |
Check Site Number. More... | |
int | CheckPairSite (const int iSite1, const int iSite2, const int iMaxNum) |
Check Site Number for a pair -> (siteA, siteB). More... | |
int | CheckQuadSite (const int iSite1, const int iSite2, const int iSite3, const int iSite4, const int iMaxNum) |
Check Site Number for a quad -> (siteA, siteB, siteC, siteD). More... | |
int | CheckTransferHermite (struct DefineList *X) |
Check Hermite for Transfer integrals. More... | |
int | JudgeDefType (const int argc, char *argv[], int *mode) |
function of judging a type of define files. More... | |
int | CheckFormatForSpinInt (const int site1, const int site2, const int site3, const int site4) |
function of checking format of spin interactions More... | |
int | CheckFormatForKondoInt (const int isite1, const int isite2, const int isite3, const int isite4, int *iLocInfo) |
function of checking format of Kondo interactions More... | |
void | SetConvergenceFactor (struct DefineList *X) |
function to set convergence factors More... | |
int | CheckLocSpin (struct DefineList *X) |
function of checking indexies of localized spin More... | |
void | ResetInteractionNum (struct DefineList *X) |
function of resetting number of interactions More... | |
void | InitializeInteractionNum (struct DefineList *X) |
function of initializing interactions More... | |
int | CheckGeneralSpinIndexForInterAll (const int isite1, const int isigma1, const int isite2, const int isigma2, const int isite3, const int isigma3, const int isite4, const int isigma4, int *iLocInfo) |
function of checking spin index for all interactions More... | |
int | CheckSpinIndexForTrans (struct DefineList *X) |
function of checking spin index for transfers More... | |
int | CheckTotal2Sz (struct DefineList *X) |
function of checking an input data of total2Sz More... | |
int | CheckWords (const char *ctmp, const char *cKeyWord) |
function of checking whether ctmp is same as cKeyWord or not More... | |
int | GetFileNameByKW (int iKWidx, char **FileName) |
function of getting file name labeled by the keyword More... | |
Variables | |
static char | cKWListOfFileNameList [][D_CharTmpReadDef] |
Keyword List in NameListFile. More... | |
int | D_iKWNumDef = sizeof(cKWListOfFileNameList)/sizeof(cKWListOfFileNameList[0]) |
static char ** | cFileNameListFile |
File to define functions of reading input files.
Definition in file readdef.cpp.
int CheckFormatForKondoInt | ( | const int | isite1, |
const int | isite2, | ||
const int | isite3, | ||
const int | isite4, | ||
int * | iLocInfo | ||
) |
function of checking format of Kondo interactions
isite1 | a site number on site1 |
isite2 | a site number on site2 |
isite3 | a site number on site3 |
isite4 | a site number on site4 |
iLocInfo | An array with the value of S at each site. |
0 | format is correct |
-1 | format is incorrect |
Definition at line 2554 of file readdef.cpp.
References SetConvergenceFactor(), and stdoutMPI.
Referenced by CheckFormatForSpinInt(), and CheckInterAllCondition().
int CheckFormatForSpinInt | ( | const int | site1, |
const int | site2, | ||
const int | site3, | ||
const int | site4 | ||
) |
function of checking format of spin interactions
[in] | site1 | a site number on site1. |
[in] | site2 | a site number on site2. |
[in] | site3 | a site number on site3. |
[in] | site4 | a site number on site4. |
0 | format is correct |
-1 | format is incorrect |
Definition at line 2524 of file readdef.cpp.
References CheckFormatForKondoInt(), and stdoutMPI.
Referenced by CheckInterAllCondition(), JudgeDefType(), and ReadDefFileIdxPara().
int CheckGeneralSpinIndexForInterAll | ( | const int | isite1, |
const int | isigma1, | ||
const int | isite2, | ||
const int | isigma2, | ||
const int | isite3, | ||
const int | isigma3, | ||
const int | isite4, | ||
const int | isigma4, | ||
int * | iLocInfo | ||
) |
function of checking spin index for all interactions
isite1 | a site number on site1 |
isigma1 | a spin index on site1 |
isite2 | a site number on site2 |
isigma2 | a spin index on site2 |
isite3 | a site number on site3 |
isigma3 | a spin index on site3 |
isite4 | a site number on site4 |
isigma4 | a spin index on site4 |
iLocInfo | An array with the value of S at each site. |
TRUE | spin index is correct |
FALSE | spin index is incorrect |
Definition at line 2737 of file readdef.cpp.
References CheckSpinIndexForTrans(), and stdoutMPI.
Referenced by CheckInterAllCondition(), and InitializeInteractionNum().
int CheckInterAllCondition | ( | int | iCalcModel, |
int | Nsite, | ||
int | iFlgGeneralSpin, | ||
int * | iLocInfo, | ||
int | isite1, | ||
int | isigma1, | ||
int | isite2, | ||
int | isigma2, | ||
int | isite3, | ||
int | isigma3, | ||
int | isite4, | ||
int | isigma4 | ||
) |
Check InterAll condition.
[in] | iCalcModel | Target Model defined in CalcMod file (ex. Spin, SpinGC etc.). |
[in] | Nsite | A total number of site. |
[in] | iFlgGeneralSpin | Flag for general spin (TRUE: General Spin, FALSE: Spin-1/2). |
[in] | iLocInfo | An array with the value of S at each site |
[in] | isite1 | a site number on the site A. |
[in] | isigma1 | a spin index on the site A. |
[in] | isite2 | a site number on the site B. |
[in] | isigma2 | a spin index on the site B. |
[in] | isite3 | a site number on the site C. |
[in] | isigma3 | a spin index on the site C. |
[in] | isite4 | a site number on the site D. |
[in] | isigma4 | a spin index on the site D. |
0 | normally finished reading file. |
-1 | unnormally finished reading file. |
Definition at line 2884 of file readdef.cpp.
References CheckFormatForKondoInt(), CheckFormatForSpinInt(), CheckGeneralSpinIndexForInterAll(), and CheckQuadSite().
Referenced by ReadDefFileIdxPara().
|
static |
function of checking hermite conditions about interall interactions
InterAll | arrays of information of interall interactions |
ParaInterAll | arrays of values of interall interactions |
InterAllOffDiagonal | arrays of information of off-diagonal part of interall interactions |
ParaInterAllOffDiagonal | arrays of values of off-diagonal part of interall interactions |
NInterAllOffDiagonal | total number of off-diagonal part of interall interactions |
iCalcModel | Target Model defined in CalcMod file (ex. Spin, SpinGC etc.) |
0 | Hermite condition is satisfied |
-1 | Hermite condition is not satisfied |
rearray a InterAll_OffDiagonal array to satisfy a condition of hermite conjugation between 2*i and 2*i+1 components.
Definition at line 982 of file readdef.cpp.
References eps_CheckImag0, GetDiagonalInterAll(), and stdoutMPI.
Referenced by ReadDefFileIdxPara(), and ReadDefFileNInt().
int CheckKW | ( | const char * | cKW, |
char | cKWList[][D_CharTmpReadDef], | ||
int | iSizeOfKWidx, | ||
int * | iKWidx | ||
) |
Function of Checking keyword in NameList file.
[in] | cKW | keyword candidate |
[in] | cKWList | Reffercnce of keyword List |
[in] | iSizeOfKWidx | number of keyword |
[out] | iKWidx | index of keyword |
0 | keyword is correct. |
-1 | keyword is incorrect. |
Definition at line 139 of file readdef.cpp.
References CheckWords().
Referenced by GetFileName().
int CheckLocSpin | ( | struct DefineList * | X | ) |
function of checking indexies of localized spin
[in,out] | X | Define list to get and put information of localized spin |
Definition at line 2610 of file readdef.cpp.
References CheckTotal2Sz(), DefineList::iCalcModel, DefineList::iFlgGeneralSpin, DefineList::LocSpn, DefineList::Nsite, and ResetInteractionNum().
Referenced by ReadDefFileIdxPara(), and SetConvergenceFactor().
int CheckPairSite | ( | const int | iSite1, |
const int | iSite2, | ||
const int | iMaxNum | ||
) |
Check Site Number for a pair -> (siteA, siteB).
[in] | iSite1 | a site number on a site A. |
[in] | iSite2 | a site number on a site B. |
[in] | iMaxNum | Max site number. |
0 | normally finished reading file. |
-1 | unnormally finished reading file. |
Definition at line 2282 of file readdef.cpp.
References CheckSite().
Referenced by CheckQuadSite(), and ReadDefFileIdxPara().
int CheckQuadSite | ( | const int | iSite1, |
const int | iSite2, | ||
const int | iSite3, | ||
const int | iSite4, | ||
const int | iMaxNum | ||
) |
Check Site Number for a quad -> (siteA, siteB, siteC, siteD).
[in] | iSite1 | a site number on site A. |
[in] | iSite2 | a site number on site B. |
[in] | iSite3 | a site number on site C. |
[in] | iSite4 | a site number on site D. |
[in] | iMaxNum | Max site number. |
0 | normally finished reading file. |
-1 | unnormally finished reading file. |
Definition at line 2310 of file readdef.cpp.
References CheckPairSite(), and CheckTransferHermite().
Referenced by CheckInterAllCondition(), and ReadDefFileIdxPara().
int CheckSite | ( | const int | iSite, |
const int | iMaxNum | ||
) |
Check Site Number.
[in] | iSite | a site number. |
[in] | iMaxNum | Max site number. |
0 | normally finished reading file. |
-1 | unnormally finished reading file. |
Definition at line 2263 of file readdef.cpp.
Referenced by CheckPairSite(), and ReadDefFileIdxPara().
int CheckSpinIndexForTrans | ( | struct DefineList * | X | ) |
function of checking spin index for transfers
[in] | X | Define list to get informations of transfers |
TRUE | spin index is correct |
FALSE | spin index is incorrect |
Definition at line 2764 of file readdef.cpp.
References CheckTotal2Sz(), DefineList::GeneralTransfer, DefineList::iFlgGeneralSpin, DefineList::LocSpn, DefineList::NTransfer, and stdoutMPI.
Referenced by CheckGeneralSpinIndexForInterAll(), and ReadDefFileIdxPara().
|
static |
Check Hermite for TETransfer integrals.
[in] | X | Define List for getting transfer integrals. |
[in] | NTETransfer | total number of transfer integrals |
[in] | idx | index for time step. |
0 | Hermite. |
-1 | NonHermite. |
Definition at line 1269 of file readdef.cpp.
References eps_CheckImag0, DefineList::NTETransfer, DefineList::NTETransferDiagonal, DefineList::ParaTETransfer, DefineList::ParaTETransferDiagonal, stdoutMPI, DefineList::TETransfer, and DefineList::TETransferDiagonal.
Referenced by GetDiagonalInterAll(), and ReadDefFileIdxPara().
int CheckTotal2Sz | ( | struct DefineList * | X | ) |
function of checking an input data of total2Sz
[in] | X | Define list to get informations of transfers |
TRUE | spin index is correct |
FALSE | spin index is incorrect |
Definition at line 2797 of file readdef.cpp.
References DefineList::iFlgGeneralSpin, DefineList::iFlgSzConserved, DefineList::NCond, DefineList::Ndown, DefineList::NLocSpn, DefineList::Nup, stdoutMPI, and DefineList::Total2Sz.
Referenced by CheckLocSpin(), and CheckSpinIndexForTrans().
int CheckTransferHermite | ( | struct DefineList * | X | ) |
Check Hermite for Transfer integrals.
[in] | X | Define List for getting transfer integrals. |
0 | Hermite. |
-1 | NonHermite. |
rearray a GeneralTransfer array to satisfy a condition of hermite conjugation between 2*i and 2*i+1 components.
Definition at line 2339 of file readdef.cpp.
References DefineList::EDChemi, DefineList::EDGeneralTransfer, DefineList::EDNChemi, DefineList::EDNTransfer, DefineList::EDParaChemi, DefineList::EDParaGeneralTransfer, DefineList::EDSpinChemi, eps_CheckImag0, DefineList::GeneralTransfer, JudgeDefType(), DefineList::NTransfer, DefineList::ParaGeneralTransfer, and stdoutMPI.
Referenced by CheckQuadSite(), and ReadDefFileIdxPara().
int CheckWords | ( | const char * | ctmp, |
const char * | cKeyWord | ||
) |
function of checking whether ctmp is same as cKeyWord or not
[in] | ctmp | A word to be checked whether it matches the registerd keyword or not. |
[in] | cKeyWord | Registered keyword name |
Definition at line 2824 of file readdef.cpp.
Referenced by CheckKW(), JudgeDefType(), ReadcalcmodFile(), and ReadDefFileNInt().
int GetDiagonalInterAll | ( | int ** | InterAll, |
std::complex< double > * | ParaInterAll, | ||
const int | NInterAll, | ||
int ** | InterAllDiagonal, | ||
double * | ParaInterAllDiagonal, | ||
int ** | InterAllOffDiagonal, | ||
std::complex< double > * | ParaInterAllOffDiagonal, | ||
int * | Chemi, | ||
int * | SpinChemi, | ||
double * | ParaChemi, | ||
int * | NChemi, | ||
const int | iCalcModel | ||
) |
function of getting diagonal components
InterAll | arrays of information of interall interactions |
ParaInterAll | arrays of values of interall interactions |
NInterAll | total number of interall interactions |
InterAllDiagonal | arrays of information of diagonal part of interall interactions |
ParaInterAllDiagonal | arrays of values of diagonal part of interall interactions |
InterAllOffDiagonal | arrays of information of off-diagonal part of interall interactions |
ParaInterAllOffDiagonal | arrays of values of off-diagonal part of interall interactions |
Chemi | arrays of the site of chemical potential |
SpinChemi | arrays of the spin of chemical potential |
ParaChemi | arrays of the value of chemical potential |
NChemi | total number of chemical potential |
iCalcModel | Target Model defined in CalcMod file (ex. Spin, SpinGC etc.) |
0 | succeed to get diagonal interactions. |
-1 | format of interall interactions is incorrect. |
Definition at line 1125 of file readdef.cpp.
References CheckTETransferHermite(), and stdoutMPI.
Referenced by CheckInterAllHermite(), and ReadDefFileIdxPara().
int GetFileName | ( | const char * | cFileListNameFile, |
char ** | cFileNameList | ||
) |
Function of Fitting FileName.
[in] | cFileListNameFile | file for getting names of input files. |
[out] | cFileNameList | arrays for getting names of input files. |
0 | normally finished reading file. |
-1 | unnormally finished reading file. |
Definition at line 389 of file readdef.cpp.
References CheckKW(), cKWListOfFileNameList, D_iKWNumDef, fgetsMPI(), fopenMPI(), ReadDefFileError(), and stdoutMPI.
Referenced by ReadDefFileNInt().
int GetFileNameByKW | ( | int | iKWidx, |
char ** | FileName | ||
) |
function of getting file name labeled by the keyword
iKWidx | index of keyword |
FileName | filename |
0 | normally finished getting file name. |
-1 | unnormally finished getting file name. |
Definition at line 2853 of file readdef.cpp.
Referenced by CalcByTEM(), and CalcSpectrum().
int GetKWWithIdx | ( | char * | ctmpLine, |
char * | ctmp, | ||
int * | itmp | ||
) |
Function of Getting keyword and it's variable from characters.
[in] | ctmpLine | characters including keyword and it's variable |
[out] | ctmp | keyword |
[out] | itmp | variable for a keyword |
0 | keyword and it's variable are obtained. |
1 | ctmpLine is a comment line. |
-1 | format of ctmpLine is incorrect. |
Definition at line 172 of file readdef.cpp.
References stdoutMPI.
Referenced by ReadcalcmodFile().
void InitializeInteractionNum | ( | struct DefineList * | X | ) |
function of initializing interactions
[out] | X | Define list to initialize number of interactions |
Definition at line 2691 of file readdef.cpp.
References CheckGeneralSpinIndexForInterAll(), DefineList::NCisAjt, DefineList::NCisAjtCkuAlvDC, DefineList::NCoulombInter, DefineList::NCoulombIntra, DefineList::NExchangeCoupling, DefineList::NHundCoupling, DefineList::NInterAll, DefineList::NInterAll_Diagonal, DefineList::NInterAll_OffDiagonal, DefineList::NIsingCoupling, DefineList::NLaser, DefineList::NNPairExcitationOperator, DefineList::NNSingleExcitationOperator, DefineList::NPairHopping, DefineList::NPairLiftCoupling, DefineList::NTEInterAll, DefineList::NTETimeSteps, DefineList::NTETransfer, and DefineList::NTransfer.
Referenced by ReadDefFileNInt(), and ResetInteractionNum().
int InputInterAllInfo | ( | int * | icnt_interall, |
int ** | iInterAllInfo, | ||
std::complex< double > * | cInterAllValue, | ||
int | isite1, | ||
int | isigma1, | ||
int | isite2, | ||
int | isigma2, | ||
int | isite3, | ||
int | isigma3, | ||
int | isite4, | ||
int | isigma4, | ||
double | dvalue_re, | ||
double | dvalue_im | ||
) |
Input InterAll Interactions (Operators of the same kinds are grouped together).
icnt_interall | total number of interall interactions | |
iInterAllInfo | arrays of information of interall interactions | |
cInterAllValue | arrays of values of interall interactions | |
[in] | isite1 | a site number on the site 1. |
[in] | isigma1 | a spin index on the site 1. |
[in] | isite2 | a site number on the site 2. |
[in] | isigma2 | a spin index on the site 2. |
[in] | isite3 | a site number on the site 3. |
[in] | isigma3 | a spin index on the site 3. |
[in] | isite4 | a site number on the site 4. |
[in] | isigma4 | a spin index on the site 4. |
dvalue_re | ||
dvalue_im |
Definition at line 2942 of file readdef.cpp.
References I().
Referenced by ReadDefFileIdxPara().
int JudgeDefType | ( | const int | argc, |
char * | argv[], | ||
int * | mode | ||
) |
function of judging a type of define files.
[in] | argc | argument count |
[in] | argv | argument vector |
[out] | mode | a number to show a type of a define file |
0 | format is correct |
-1 | format is incorrect |
Definition at line 2453 of file readdef.cpp.
References CheckFormatForSpinInt(), CheckWords(), and stdoutMPI.
Referenced by CheckTransferHermite(), and main().
int ReadcalcmodFile | ( | const char * | defname, |
struct DefineList * | X | ||
) |
Function of Reading calcmod file.
[in] | defname | file name to read. |
[out] | X | Define List for getting flags of calc-mode. |
0 | normally finished reading file. |
-1 | unnormally finished reading file. |
Definition at line 215 of file readdef.cpp.
References CheckWords(), fgetsMPI(), fopenMPI(), GetKWWithIdx(), DefineList::iCalcEigenVec, DefineList::iCalcModel, DefineList::iCalcType, DefineList::iFlgCalcSpec, DefineList::iFlgFiniteTemperature, DefineList::iFlgMPI, DefineList::iFlgScaLAPACK, DefineList::iInitialVecType, DefineList::iInputEigenVec, DefineList::iInputHam, DefineList::iNGPU, DefineList::iOutputEigenVec, DefineList::iOutputExVec, DefineList::iOutputHam, DefineList::iOutputMode, DefineList::iReStart, ReadDefFileError(), stdoutMPI, and ValidateValue().
Referenced by ReadDefFileNInt().
int ReadDefFileError | ( | const char * | defname | ) |
Error Function of reading def files.
[in] | defname | name of def file. |
Definition at line 97 of file readdef.cpp.
References stdoutMPI.
Referenced by GetFileName(), ReadcalcmodFile(), ReadDefFileIdxPara(), and ReadDefFileNInt().
int ReadDefFileIdxPara | ( | struct DefineList * | X, |
struct BoostList * | xBoost | ||
) |
function of reading def files to get keyword index
X | define list to get and put informations for calcuation |
xBoost | list to get and put informations for Boost (CMA) calcuation |
0 | normally finished reading file. |
-1 | unnormally finished reading file. |
Definition at line 1399 of file readdef.cpp.
References BoostList::arrayJ, CheckFormatForSpinInt(), CheckInterAllCondition(), CheckInterAllHermite(), CheckLocSpin(), CheckPairSite(), CheckQuadSite(), CheckSite(), CheckSpinIndexForTrans(), CheckTETransferHermite(), CheckTransferHermite(), DefineList::CisAjt, DefineList::CisAjtCkuAlvDC, DefineList::CoulombInter, DefineList::CoulombIntra, D_iKWNumDef, DefineList::EDChemi, DefineList::EDNChemi, DefineList::EDParaChemi, DefineList::EDSpinChemi, eps_CheckImag0, DefineList::ExchangeCoupling, exitMPI(), fgetsMPI(), fopenMPI(), DefineList::GeneralTransfer, GetDiagonalInterAll(), DefineList::HundCoupling, I(), DefineList::iCalcModel, DefineList::iFlgGeneralSpin, InputInterAllInfo(), DefineList::InterAll, DefineList::InterAll_Diagonal, DefineList::InterAll_OffDiagonal, BoostList::list_6spin_pair, BoostList::list_6spin_star, DefineList::LocSpn, DefineList::NCisAjt, DefineList::NCisAjtCkuAlvDC, DefineList::NCoulombInter, DefineList::NCoulombIntra, DefineList::NExchangeCoupling, DefineList::NHundCoupling, DefineList::NInterAll, DefineList::NInterAll_Diagonal, DefineList::NInterAll_OffDiagonal, 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::NTEInterAllOffDiagonal, DefineList::NTETimeSteps, DefineList::NTETransfer, DefineList::NTransfer, BoostList::num_pivot, BoostList::NumarrayJ, 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, BoostList::R0, ReadDefFileError(), ResetInteractionNum(), DefineList::SingleExcitationOperator, DefineList::SiteToBit, DefineList::SpinTEChemi, stdoutMPI, DefineList::TEChemi, DefineList::TEInterAll, DefineList::TEInterAllDiagonal, DefineList::TEInterAllOffDiagonal, DefineList::TETime, DefineList::TETransfer, and BoostList::vecB.
Referenced by main().
int ReadDefFileNInt | ( | char * | xNameListFile, |
struct DefineList * | X, | ||
struct BoostList * | xBoost | ||
) |
Function of reading information about "ModPara" file and total number of parameters from other def files.
[in] | xNameListFile | List of Input File names. |
[out] | X | Define List for getting flags of calc-mode. |
[out] | xBoost | Define List for getting flags of Boost calc-mode. |
0 | normally finished reading file. |
-1 | unnormally finished reading file. |
Read Header (5 lines).
Read header name for files about data
Read header name for files about parameters
Read header (1 line).
Read lines.
Definition at line 456 of file readdef.cpp.
References DefineList::CDataFileHead, CheckInterAllHermite(), CheckWords(), cKWListOfFileNameList, DefineList::CParaFileHead, D_iKWNumDef, DefineList::dcOmegaMax, DefineList::dcOmegaMin, DefineList::dcOmegaOrg, ParamList::ExpandCoef, ParamList::ExpecInterval, fgetsMPI(), DefineList::fidx, BoostList::flgBoost, fopenMPI(), GetFileName(), I(), DefineList::iCalcModel, DefineList::iCalcType, DefineList::iFlgGeneralSpin, DefineList::iFlgSpecOmegaMax, DefineList::iFlgSpecOmegaMin, DefineList::iFlgSpecOmegaOrg, DefineList::iFlgSzConserved, DefineList::initial_iv, InitializeInteractionNum(), DefineList::iNOmega, DefineList::irand, BoostList::ishift_nspin, DefineList::k_exct, DefineList::Lanczos_max, DefineList::LanczosEps, DefineList::LanczosTarget, LargeValue, DefineList::NCisAjt, DefineList::NCisAjtCkuAlvDC, DefineList::NCond, DefineList::NCoulombInter, DefineList::NCoulombIntra, DefineList::Ndown, DefineList::NdownMPI, DefineList::NdownOrg, DefineList::Ne, DefineList::NeMPI, DefineList::NExchangeCoupling, DefineList::NHundCoupling, DefineList::NInterAll, DefineList::NIsingCoupling, DefineList::NLaser, DefineList::NLocSpn, DefineList::NNPairExcitationOperator, DefineList::NNSingleExcitationOperator, DefineList::NPairHopping, DefineList::NPairLiftCoupling, DefineList::Nsite, DefineList::NTEInterAllMax, DefineList::NTETimeSteps, DefineList::NTETransferMax, DefineList::NTransfer, BoostList::num_pivot, BoostList::NumarrayJ, NumAve, DefineList::Nup, DefineList::NupMPI, DefineList::NupOrg, DefineList::nvec, ParamList::OutputInterval, DefineList::Param, BoostList::R0, DefineList::READ, DefineList::read_hacker, ReadcalcmodFile(), ReadDefFileError(), stdoutMPI, ParamList::TimeSlice, ParamList::Tinit, DefineList::Total2Sz, ValidateValue(), BoostList::W0, and DefineList::WRITE.
Referenced by main().
void ResetInteractionNum | ( | struct DefineList * | X | ) |
function of resetting number of interactions
[out] | X | Define list to add number of ising coulomnb interactions |
Definition at line 2674 of file readdef.cpp.
References InitializeInteractionNum(), DefineList::NCoulombInter, DefineList::NHundCoupling, and DefineList::NIsingCoupling.
Referenced by CheckLocSpin(), and ReadDefFileIdxPara().
void SetConvergenceFactor | ( | struct DefineList * | X | ) |
function to set convergence factors
[in] | X | Define list to get Lanczos eps. |
Definition at line 2584 of file readdef.cpp.
References CheckLocSpin(), eps, eps_CG, eps_Energy, eps_Lanczos, and DefineList::LanczosEps.
Referenced by CheckFormatForKondoInt(), and main().
int ValidateValue | ( | const int | icheckValue, |
const int | ilowestValue, | ||
const int | iHighestValue | ||
) |
Function of Validating value.
[in] | icheckValue | value to validate. |
[in] | ilowestValue | lowest value which icheckValue can be set. |
[in] | iHighestValue | heighest value which icheckValue can be set. |
0 | value is correct. |
-1 | value is incorrect. |
Definition at line 115 of file readdef.cpp.
Referenced by ReadcalcmodFile(), and ReadDefFileNInt().
|
static |
File Name List in NameListFile.
Definition at line 65 of file readdef.cpp.
|
static |
Keyword List in NameListFile.
Definition at line 36 of file readdef.cpp.
Referenced by GetFileName(), and ReadDefFileNInt().
int D_iKWNumDef = sizeof(cKWListOfFileNameList)/sizeof(cKWListOfFileNameList[0]) |
Definition at line 60 of file readdef.cpp.
Referenced by GetFileName(), ReadDefFileIdxPara(), and ReadDefFileNInt().