HΦ
3.2.0
|
File to define functions of reading input files. More...
#include "Common.h"
#include "readdef.h"
#include <ctype.h>
#include "LogMessage.h"
#include "wrapperMPI.h"
#include "common/setmemory.h"
#include "version_major.h"
#include "version_minor.h"
#include "version_patch.h"
Go to the source code of this file.
Functions | |
int | CheckTETransferHermite (struct DefineList *X, const int NTETransfer, const int idx) |
Check Hermite for TETransfer integrals. More... | |
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, double complex *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[][D_CharTmpReadDef]) |
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... | |
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 | CheckInterAllHermite (int **InterAll, double complex *ParaInterAll, int **InterAllOffDiagonal, double complex *ParaInterAllOffDiagonal, const int NInterAllOffDiagonal, const int iCalcModel) |
function of checking hermite conditions about interall interactions More... | |
int | GetDiagonalInterAll (int **InterAll, complex double *ParaInterAll, const int NInterAll, int **InterAllDiagonal, double *ParaInterAllDiagonal, int **InterAllOffDiagonal, complex double *ParaInterAllOffDiagonal, int *Chemi, int *SpinChemi, double *ParaChemi, unsigned int *NChemi, const int iCalcModel) |
function of getting diagonal components 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] |
int | D_iKWNumDef = sizeof(cKWListOfFileNameList)/sizeof(cKWListOfFileNameList[0]) |
static char(* | cFileNameListFile )[D_CharTmpReadDef] |
File to define functions of reading input files.
Definition in file readdef.c.
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 2416 of file readdef.c.
References cErrIncorrectFormatForKondoInt, ITINERANT, 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 2388 of file readdef.c.
References CheckFormatForKondoInt(), cWarningIncorrectFormatForSpin, 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 2597 of file readdef.c.
References cErrIncorrectSpinIndexForInter, CheckSpinIndexForTrans(), FALSE, stdoutMPI, and TRUE.
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 2746 of file readdef.c.
References CheckFormatForKondoInt(), CheckFormatForSpinInt(), CheckGeneralSpinIndexForInterAll(), CheckQuadSite(), and TRUE.
Referenced by ReadDefFileIdxPara().
int CheckInterAllHermite | ( | int ** | InterAll, |
double complex * | ParaInterAll, | ||
int ** | InterAllOffDiagonal, | ||
double complex * | ParaInterAllOffDiagonal, | ||
const int | NInterAllOffDiagonal, | ||
const int | iCalcModel | ||
) |
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 2023 of file readdef.c.
References cErrNonHermiteInterAll, eps_CheckImag0, FALSE, GetDiagonalInterAll(), stdoutMPI, and TRUE.
Referenced by CheckTransferHermite(), and ReadDefFileIdxPara().
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 154 of file readdef.c.
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 2475 of file readdef.c.
References CheckTotal2Sz(), FALSE, DefineList::iCalcModel, DefineList::iFlgGeneralSpin, ITINERANT, LOCSPIN, DefineList::LocSpn, DefineList::Nsite, ResetInteractionNum(), and TRUE.
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 1845 of file readdef.c.
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 1873 of file readdef.c.
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 1825 of file readdef.c.
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 2624 of file readdef.c.
References cErrIncorrectSpinIndexForTrans, CheckTotal2Sz(), FALSE, DefineList::GeneralTransfer, DefineList::iFlgGeneralSpin, DefineList::LocSpn, DefineList::NTransfer, stdoutMPI, and TRUE.
Referenced by CheckGeneralSpinIndexForInterAll(), and ReadDefFileIdxPara().
int CheckTETransferHermite | ( | struct DefineList * | X, |
const int | NTETransfer, | ||
const int | idx | ||
) |
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 2863 of file readdef.c.
References cErrNonHermiteTrans, eps_CheckImag0, FALSE, DefineList::NTETransfer, DefineList::NTETransferDiagonal, DefineList::ParaTETransfer, DefineList::ParaTETransferDiagonal, stdoutMPI, DefineList::TETransfer, DefineList::TETransferDiagonal, and TRUE.
Referenced by InputInterAllInfo(), 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 2657 of file readdef.c.
References FALSE, DefineList::iFlgGeneralSpin, DefineList::iFlgSzConserved, DefineList::NCond, DefineList::Ndown, DefineList::NLocSpn, DefineList::Nup, stdoutMPI, DefineList::Total2Sz, and TRUE.
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 1902 of file readdef.c.
References cErrNonHermiteTrans, CheckInterAllHermite(), DefineList::EDChemi, DefineList::EDGeneralTransfer, DefineList::EDNChemi, DefineList::EDNTransfer, DefineList::EDParaChemi, DefineList::EDParaGeneralTransfer, DefineList::EDSpinChemi, eps_CheckImag0, FALSE, DefineList::GeneralTransfer, DefineList::NTransfer, DefineList::ParaGeneralTransfer, stdoutMPI, and TRUE.
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 2684 of file readdef.c.
Referenced by CheckKW(), JudgeDefType(), ReadcalcmodFile(), and ReadDefFileNInt().
int GetDiagonalInterAll | ( | int ** | InterAll, |
complex double * | ParaInterAll, | ||
const int | NInterAll, | ||
int ** | InterAllDiagonal, | ||
double * | ParaInterAllDiagonal, | ||
int ** | InterAllOffDiagonal, | ||
complex double * | ParaInterAllOffDiagonal, | ||
int * | Chemi, | ||
int * | SpinChemi, | ||
double * | ParaChemi, | ||
unsigned 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 2166 of file readdef.c.
References cErrNonConservedInterAll, JudgeDefType(), and stdoutMPI.
Referenced by CheckInterAllHermite(), and ReadDefFileIdxPara().
int GetFileName | ( | const char * | cFileListNameFile, |
char | cFileNameList[][D_CharTmpReadDef] | ||
) |
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 395 of file readdef.c.
References cErrKW, cErrKW_InCorPair, cErrKW_Same, cErrKW_ShowList, 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 2715 of file readdef.c.
References cFileNameListFile.
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 187 of file readdef.c.
References cErrDefFileFormat, and 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 2556 of file readdef.c.
References CheckGeneralSpinIndexForInterAll(), DefineList::NCisAjt, DefineList::NCisAjtCkuAlvDC, DefineList::NCoulombInter, DefineList::NCoulombIntra, DefineList::NInterAll, DefineList::NIsingCoupling, DefineList::NLaser, DefineList::NPairExcitationOperator, DefineList::NPairLiftCoupling, DefineList::NSingleExcitationOperator, DefineList::NTEInterAll, DefineList::NTETimeSteps, DefineList::NTETransfer, and DefineList::NTransfer.
Referenced by ReadDefFileNInt(), and ResetInteractionNum().
int InputInterAllInfo | ( | int * | icnt_interall, |
int ** | iInterAllInfo, | ||
double complex * | 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 2804 of file readdef.c.
References CheckTETransferHermite().
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 2316 of file readdef.c.
References CheckFormatForSpinInt(), CheckWords(), and stdoutMPI.
Referenced by GetDiagonalInterAll(), 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 230 of file readdef.c.
References cErrCalcEigenVec, cErrCalcType, cErrCUDA, cErrDefFileParam, cErrFiniteTemp, cErrInputHam, cErrInputOutputHam, cErrOutputHam, cErrOutputHamForFullDiag, cErrOutputMode, cErrRestart, cErrSetIniVec, 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, TRUE, 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 112 of file readdef.c.
References cErrReadDefFile, and 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 980 of file readdef.c.
References BoostList::arrayJ, cErrIncorrectFormatForKondoTrans, cErrIncorrectFormatInter, cErrNonHermiteInterAllForAll, cErrNonHermiteTrans, cErrNonHermiteTransForAll, cFileNameListFile, CheckFormatForSpinInt(), CheckInterAllCondition(), CheckInterAllHermite(), CheckLocSpin(), CheckPairSite(), CheckQuadSite(), CheckSite(), CheckSpinIndexForTrans(), CheckTETransferHermite(), CheckTransferHermite(), DefineList::CisAjt, DefineList::CisAjtCkuAlvDC, DefineList::CoulombInter, DefineList::CoulombIntra, cReadFileNamelist, cWarningIncorrectFormatForSpin2, D_iKWNumDef, DefineList::EDChemi, DefineList::EDNChemi, DefineList::EDParaChemi, DefineList::EDSpinChemi, eps_CheckImag0, DefineList::ExchangeCoupling, exitMPI(), FALSE, fgetsMPI(), fopenMPI(), DefineList::GeneralTransfer, GetDiagonalInterAll(), DefineList::HundCoupling, DefineList::iCalcModel, DefineList::iFlgGeneralSpin, InputInterAllInfo(), DefineList::InterAll, DefineList::InterAll_Diagonal, DefineList::InterAll_OffDiagonal, ITINERANT, 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::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, TRUE, 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 460 of file readdef.c.
References DefineList::CDataFileHead, cErrExpecInterval, cErrIncorrectDef, cErrLanczos_eps, cErrLanczos_max, cErrLanczosExct, cErrLanczosTarget, cErrMakeDef, cErrNcond, cErrNLoc, cErrNsite, cErrNumAve, cFileNameListFile, CheckWords(), cKWListOfFileNameList, DefineList::CParaFileHead, cReadFile, cReadFileNamelist, D_iKWNumDef, DefineList::dcOmegaMax, DefineList::dcOmegaMin, DefineList::dcOmegaOrg, ParamList::ExpandCoef, ParamList::ExpecInterval, FALSE, fgetsMPI(), DefineList::fidx, BoostList::flgBoost, fopenMPI(), GetFileName(), 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::NPairExcitationOperator, DefineList::NPairHopping, DefineList::NPairLiftCoupling, DefineList::NSingleExcitationOperator, 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, TRUE, 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 2539 of file readdef.c.
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 2446 of file readdef.c.
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 130 of file readdef.c.
Referenced by ReadcalcmodFile(), and ReadDefFileNInt().
|
static |
File Name List in NameListFile.
Definition at line 75 of file readdef.c.
Referenced by GetFileNameByKW(), ReadDefFileIdxPara(), and ReadDefFileNInt().
|
static |
Keyword List in NameListFile.
Definition at line 46 of file readdef.c.
Referenced by GetFileName(), and ReadDefFileNInt().
int D_iKWNumDef = sizeof(cKWListOfFileNameList)/sizeof(cKWListOfFileNameList[0]) |
Definition at line 70 of file readdef.c.
Referenced by GetFileName(), ReadDefFileIdxPara(), and ReadDefFileNInt().