| HΦ
    3.1.0
    | 
Read Input file and write files for Expert mode. Initialize variables. Check parameters. More...
#include <stdlib.h>#include <stdio.h>#include <string.h>#include <ctype.h>#include <math.h>#include "StdFace_vals.h"#include "StdFace_ModelUtil.h"#include <complex.h>Go to the source code of this file.
| Functions | |
| static void | StdFace_LargeValue (struct StdIntList *StdI) | 
| Set Largevalue (StdIntList::LargeValue) for TPQ. Sum absolute-value of all one- and two- body terms.  More... | |
| static void | PrintCalcMod (struct StdIntList *StdI) | 
| Print calcmod.def.  More... | |
| static void | PrintExcitation (struct StdIntList *StdI) | 
| Print single.def or pair.def.  More... | |
| static void | VectorPotential (struct StdIntList *StdI) | 
| static void | PrintPump (struct StdIntList *StdI) | 
| Print single.def or pair.def.  More... | |
| static void | StdFace_ResetVals (struct StdIntList *StdI) | 
| Clear grobal variables in the standard mode All variables refered in this function is modified.  More... | |
| static void | Text2Lower (char *value) | 
| static void | TrimSpaceQuote (char *value) | 
| Remove : space etc. from keyword and value in an iput file.  More... | |
| static void | StoreWithCheckDup_s (char *keyword, char *valuestring, char *value) | 
| Store an input value into the valiable (string) If duplicated, HPhi will stop.  More... | |
| static void | StoreWithCheckDup_sl (char *keyword, char *valuestring, char *value) | 
| Store an input value into the valiable (string) Force string lower. If duplicated, HPhi will stop.  More... | |
| static void | StoreWithCheckDup_i (char *keyword, char *valuestring, int *value) | 
| Store an input value into the valiable (integer) If duplicated, HPhi will stop.  More... | |
| static void | StoreWithCheckDup_d (char *keyword, char *valuestring, double *value) | 
| Store an input value into the valiable (double) If duplicated, HPhi will stop.  More... | |
| static void | StoreWithCheckDup_c (char *keyword, char *valuestring, double complex *value) | 
| Store an input value into the valiable (Double complex) If duplicated, HPhi will stop.  More... | |
| static void | PrintLocSpin (struct StdIntList *StdI) | 
| Print the locspin file.  More... | |
| static void | PrintTrans (struct StdIntList *StdI) | 
| Print the transfer file.  More... | |
| static void | PrintNamelist (struct StdIntList *StdI) | 
| Print namelist.def More... | |
| static void | PrintModPara (struct StdIntList *StdI) | 
| Print modpara.def.  More... | |
| static void | Print1Green (struct StdIntList *StdI) | 
| Print greenone.def.  More... | |
| static void | Print2Green (struct StdIntList *StdI) | 
| Print greentwo.def.  More... | |
| static void | UnsupportedSystem (char *model, char *lattice) | 
| Stop HPhi if unsupported model is read.  More... | |
| static void | CheckOutputMode (struct StdIntList *StdI) | 
| Verify outputmode.  More... | |
| static void | CheckModPara (struct StdIntList *StdI) | 
| Summary numerical parameter check the combination of the number of sites, total spin, the number of electrons.  More... | |
| static void | PrintInteractions (struct StdIntList *StdI) | 
| Output .def file for Specific interaction.  More... | |
| void | StdFace_main (char *fname) | 
| Main routine for the standard mode.  More... | |
Read Input file and write files for Expert mode. Initialize variables. Check parameters.
The following lattices are supported:
Definition in file StdFace_main.c.
| 
 | static | 
Summary numerical parameter check the combination of the number of sites, total spin, the number of electrons.
Definition at line 1658 of file StdFace_main.c.
References StdIntList::AntiPeriod, StdIntList::exct, StdIntList::ExpecInterval, StdIntList::initial_iv, StdIntList::Lanczos_max, StdIntList::LanczosEps, StdIntList::LanczosTarget, StdIntList::LargeValue, StdIntList::lGC, StdIntList::model, StdIntList::NaN_i, StdIntList::nelec, StdIntList::Nomega, StdIntList::nsite, StdIntList::NumAve, StdIntList::OmegaIm, StdIntList::OmegaMax, StdIntList::OmegaMin, StdFace_NotUsed_i(), StdFace_PrintVal_d(), StdFace_PrintVal_i(), StdFace_RequiredVal_i(), and StdIntList::Sz2.
Referenced by StdFace_main().
| 
 | static | 
Verify outputmode.
Definition at line 1621 of file StdFace_main.c.
References StdIntList::ioutputmode, StdIntList::outputmode, and StdFace_exit().
Referenced by StdFace_main().
| 
 | static | 
Print greenone.def.
Definition at line 1320 of file StdFace_main.c.
References StdIntList::ioutputmode, StdIntList::locspinflag, StdIntList::model, StdIntList::nsite, and StdIntList::NsiteUC.
Referenced by StdFace_main().
| 
 | static | 
Print greentwo.def.
Definition at line 1436 of file StdFace_main.c.
References StdIntList::ioutputmode, StdIntList::locspinflag, StdIntList::model, StdIntList::nsite, and StdIntList::NsiteUC.
Referenced by StdFace_main().
| 
 | static | 
Print calcmod.def.
Definition at line 82 of file StdFace_main.c.
References StdIntList::CalcSpec, StdIntList::EigenVecIO, StdIntList::InitialVecType, StdIntList::lGC, StdIntList::method, StdIntList::model, StdIntList::PumpBody, StdIntList::Restart, and StdFace_exit().
Referenced by StdFace_main().
| 
 | static | 
Print single.def or pair.def.
Definition at line 234 of file StdFace_main.c.
References StdIntList::Cell, StdIntList::model, StdIntList::NCell, StdIntList::nsite, StdIntList::NsiteUC, StdIntList::pi, StdIntList::S2, StdIntList::SpectrumBody, StdIntList::SpectrumQ, StdIntList::SpectrumType, StdFace_exit(), StdFace_PrintVal_d(), and StdIntList::tau.
Referenced by StdFace_main().
| 
 | static | 
Output .def file for Specific interaction.
Definition at line 1771 of file StdFace_main.c.
References StdIntList::Cinter, StdIntList::CinterIndx, StdIntList::Cintra, StdIntList::CintraIndx, StdIntList::Ex, StdIntList::ExIndx, StdIntList::Hund, StdIntList::HundIndx, StdIntList::intr, StdIntList::intrindx, StdIntList::lBoost, StdIntList::LCinter, StdIntList::LCintra, StdIntList::LEx, StdIntList::LHund, StdIntList::Lintr, StdIntList::LPairHopp, StdIntList::LPairLift, StdIntList::NCinter, StdIntList::NCintra, StdIntList::NEx, StdIntList::NHund, StdIntList::nintr, StdIntList::NPairHopp, StdIntList::NPairLift, StdIntList::PairHopp, StdIntList::PairLift, StdIntList::PHIndx, and StdIntList::PLIndx.
Referenced by StdFace_main().
| 
 | static | 
Print the locspin file.
Definition at line 1124 of file StdFace_main.c.
References StdIntList::locspinflag, and StdIntList::nsite.
Referenced by StdFace_main().
| 
 | static | 
Print modpara.def.
Definition at line 1244 of file StdFace_main.c.
References StdIntList::CDataFileHead, StdIntList::exct, StdIntList::ExpandCoef, StdIntList::ExpecInterval, StdIntList::initial_iv, StdIntList::Lanczos_max, StdIntList::LanczosEps, StdIntList::LanczosTarget, StdIntList::LargeValue, StdIntList::method, StdIntList::NaN_i, StdIntList::nelec, StdIntList::Nomega, StdIntList::nsite, StdIntList::NumAve, StdIntList::nvec, StdIntList::OmegaIm, StdIntList::OmegaMax, StdIntList::OmegaMin, and StdIntList::Sz2.
Referenced by StdFace_main().
| 
 | static | 
Print namelist.def 
 
Definition at line 1195 of file StdFace_main.c.
References StdIntList::CDataFileHead, StdIntList::ioutputmode, StdIntList::lBoost, StdIntList::LCinter, StdIntList::LCintra, StdIntList::LEx, StdIntList::lGC, StdIntList::LHund, StdIntList::Lintr, StdIntList::LPairHopp, StdIntList::LPairLift, StdIntList::method, StdIntList::NaN_i, StdIntList::PumpBody, StdIntList::SpectrumBody, and StdIntList::Sz2.
Referenced by StdFace_main().
| 
 | static | 
Print single.def or pair.def.
Definition at line 526 of file StdFace_main.c.
References StdIntList::dt, StdIntList::Lanczos_max, StdIntList::npump, StdIntList::nsite, StdIntList::pump, StdIntList::PumpBody, StdIntList::pumpindx, and StdIntList::Uquench.
Referenced by StdFace_main().
| 
 | static | 
Print the transfer file.
Definition at line 1150 of file StdFace_main.c.
References StdIntList::ntrans, StdIntList::trans, and StdIntList::transindx.
Referenced by StdFace_main().
| 
 | static | 
Set Largevalue (StdIntList::LargeValue) for TPQ. Sum absolute-value of all one- and two- body terms.
Definition at line 49 of file StdFace_main.c.
References StdIntList::Cinter, StdIntList::Cintra, StdIntList::Ex, StdIntList::Hund, StdIntList::intr, StdIntList::LargeValue, StdIntList::NCinter, StdIntList::NCintra, StdIntList::NEx, StdIntList::NHund, StdIntList::nintr, StdIntList::NPairLift, StdIntList::nsite, StdIntList::ntrans, StdIntList::PairLift, StdFace_PrintVal_d(), and StdIntList::trans.
Referenced by StdFace_main().
| void StdFace_main | ( | char * | fname | ) | 
Main routine for the standard mode.
| [in] | fname | Input file name for the standard mode | 
Definition at line 2177 of file StdFace_main.c.
References StdIntList::a, StdIntList::box, StdIntList::CalcSpec, StdIntList::CDataFileHead, CheckModPara(), CheckOutputMode(), StdIntList::cutoff_j, StdIntList::cutoff_t, StdIntList::cutoff_u, StdIntList::D, StdIntList::direct, StdIntList::dt, StdIntList::EigenVecIO, StdIntList::exct, StdIntList::ExpandCoef, StdIntList::ExpecInterval, StdIntList::FlgTemp, StdIntList::freq, StdIntList::Gamma, StdIntList::h, StdIntList::Height, StdIntList::initial_iv, StdIntList::InitialVecType, StdIntList::intr, StdIntList::intrindx, StdIntList::J, StdIntList::J0, StdIntList::J0All, StdIntList::J0p, StdIntList::J0pAll, StdIntList::J1, StdIntList::J1All, StdIntList::J1p, StdIntList::J1pAll, StdIntList::J2, StdIntList::J2All, StdIntList::J2p, StdIntList::J2pAll, StdIntList::JAll, StdIntList::Jp, StdIntList::JpAll, StdIntList::Jpp, StdIntList::JppAll, StdIntList::K, StdIntList::L, StdIntList::Lanczos_max, StdIntList::LanczosEps, StdIntList::LanczosTarget, StdIntList::LargeValue, StdIntList::lattice, StdIntList::lBoost, StdIntList::length, StdIntList::lGC, StdIntList::locspinflag, StdIntList::method, StdIntList::model, StdIntList::mu, StdIntList::NaN_i, StdIntList::nelec, StdIntList::nintr, StdIntList::Nomega, StdIntList::ntrans, StdIntList::NumAve, StdIntList::nvec, StdIntList::OmegaIm, StdIntList::OmegaMax, StdIntList::OmegaMin, StdIntList::outputmode, StdIntList::phase, Print1Green(), Print2Green(), PrintCalcMod(), PrintExcitation(), PrintInteractions(), PrintLocSpin(), PrintModPara(), PrintNamelist(), PrintPump(), PrintTrans(), StdIntList::PumpType, StdIntList::Restart, StdIntList::S2, StdIntList::SpectrumQ, StdIntList::SpectrumType, StdFace_Chain(), StdFace_Chain_Boost(), StdFace_exit(), StdFace_FCOrtho(), StdFace_Honeycomb(), StdFace_Honeycomb_Boost(), StdFace_Kagome(), StdFace_Kagome_Boost(), StdFace_Ladder(), StdFace_Ladder_Boost(), StdFace_LargeValue(), StdFace_Orthorhombic(), StdFace_PrintVal_i(), StdFace_Pyrochlore(), StdFace_ResetVals(), StdFace_Tetragonal(), StdFace_Triangular(), StdFace_Wannier90(), StoreWithCheckDup_c(), StoreWithCheckDup_d(), StoreWithCheckDup_i(), StoreWithCheckDup_s(), StoreWithCheckDup_sl(), StdIntList::Sz2, StdIntList::t, StdIntList::t0, StdIntList::t0p, StdIntList::t1, StdIntList::t1p, StdIntList::t2, StdIntList::t2p, StdIntList::tdump, Text2Lower(), StdIntList::tp, StdIntList::tpp, StdIntList::trans, StdIntList::transindx, TrimSpaceQuote(), StdIntList::tshift, StdIntList::U, UnsupportedSystem(), StdIntList::Uquench, StdIntList::V, StdIntList::V0, StdIntList::V0p, StdIntList::V1, StdIntList::V1p, StdIntList::V2, StdIntList::VecPot, VectorPotential(), StdIntList::Vp, StdIntList::Vpp, and StdIntList::W.
Referenced by main().
| 
 | static | 
Clear grobal variables in the standard mode All variables refered in this function is modified.
Definition at line 805 of file StdFace_main.c.
References StdIntList::a, StdIntList::box, StdIntList::CalcSpec, StdIntList::CDataFileHead, StdIntList::cutoff_j, StdIntList::cutoff_t, StdIntList::cutoff_u, StdIntList::D, StdIntList::direct, StdIntList::dt, StdIntList::EigenVecIO, StdIntList::exct, StdIntList::ExpandCoef, StdIntList::ExpecInterval, StdIntList::FlgTemp, StdIntList::freq, StdIntList::Gamma, StdIntList::h, StdIntList::Height, StdIntList::initial_iv, StdIntList::InitialVecType, StdIntList::J, StdIntList::J0, StdIntList::J0All, StdIntList::J0p, StdIntList::J0pAll, StdIntList::J1, StdIntList::J1All, StdIntList::J1p, StdIntList::J1pAll, StdIntList::J2, StdIntList::J2All, StdIntList::J2p, StdIntList::J2pAll, StdIntList::JAll, StdIntList::Jp, StdIntList::JpAll, StdIntList::Jpp, StdIntList::JppAll, StdIntList::K, StdIntList::L, StdIntList::Lanczos_max, StdIntList::LanczosEps, StdIntList::LanczosTarget, StdIntList::LargeValue, StdIntList::lattice, StdIntList::length, StdIntList::method, StdIntList::model, StdIntList::mu, StdIntList::NaN_i, StdIntList::nelec, StdIntList::Nomega, StdIntList::NumAve, StdIntList::nvec, StdIntList::OmegaIm, StdIntList::OmegaMax, StdIntList::OmegaMin, StdIntList::outputmode, StdIntList::phase, StdIntList::pi, StdIntList::pi180, StdIntList::PumpType, StdIntList::Restart, StdIntList::S2, StdIntList::SpectrumQ, StdIntList::SpectrumType, StdIntList::Sz2, StdIntList::t, StdIntList::t0, StdIntList::t0p, StdIntList::t1, StdIntList::t1p, StdIntList::t2, StdIntList::t2p, StdIntList::tdump, StdIntList::tp, StdIntList::tpp, StdIntList::tshift, StdIntList::U, StdIntList::Uquench, StdIntList::V, StdIntList::V0, StdIntList::V0p, StdIntList::V1, StdIntList::V1p, StdIntList::V2, StdIntList::V2p, StdIntList::VecPot, StdIntList::Vp, StdIntList::Vpp, and StdIntList::W.
Referenced by StdFace_main().
| 
 | static | 
Store an input value into the valiable (Double complex) If duplicated, HPhi will stop.
| [in] | keyword | keyword read from the input file | 
| [in] | valuestring | value read from the input file | 
| [out] | value | 
Definition at line 1076 of file StdFace_main.c.
References StdFace_exit().
Referenced by StdFace_main().
| 
 | static | 
Store an input value into the valiable (double) If duplicated, HPhi will stop.
| [in] | keyword | keyword read from the input file | 
| [in] | valuestring | value read from the input file | 
| [out] | value | 
Definition at line 1057 of file StdFace_main.c.
References StdFace_exit().
Referenced by StdFace_main().
| 
 | static | 
Store an input value into the valiable (integer) If duplicated, HPhi will stop.
| [in] | keyword | keyword read from the input file | 
| [in] | valuestring | value read from the input file | 
| [out] | value | 
Definition at line 1036 of file StdFace_main.c.
References StdFace_exit().
Referenced by StdFace_main().
| 
 | static | 
Store an input value into the valiable (string) If duplicated, HPhi will stop.
| [in] | keyword | keyword read from the input file | 
| [in] | valuestring | value read from the input file | 
| [out] | value | 
Definition at line 997 of file StdFace_main.c.
References StdFace_exit().
Referenced by StdFace_main().
| 
 | static | 
Store an input value into the valiable (string) Force string lower. If duplicated, HPhi will stop.
| [in] | keyword | keyword read from the input file | 
| [in] | valuestring | value read from the input file | 
| [out] | value | 
Definition at line 1016 of file StdFace_main.c.
References StdFace_exit(), and Text2Lower().
Referenced by StdFace_main().
| 
 | static | 
| [in,out] | value | 
Definition at line 951 of file StdFace_main.c.
Referenced by StdFace_main(), and StoreWithCheckDup_sl().
| 
 | static | 
Remove : space etc. from keyword and value in an iput file.
| [in,out] | value | 
Definition at line 966 of file StdFace_main.c.
Referenced by StdFace_main().
| 
 | static | 
Stop HPhi if unsupported model is read.
| [in] | model | |
| [in] | lattice | 
Definition at line 1605 of file StdFace_main.c.
References StdFace_exit().
Referenced by StdFace_main().
| 
 | static | 
Definition at line 429 of file StdFace_main.c.
References StdIntList::At, StdIntList::dt, StdIntList::ExpandCoef, StdIntList::freq, StdIntList::Lanczos_max, StdIntList::PumpBody, StdIntList::PumpType, StdFace_exit(), StdFace_PrintVal_d(), StdFace_PrintVal_i(), StdIntList::tdump, StdIntList::tshift, StdIntList::Uquench, and StdIntList::VecPot.
Referenced by StdFace_main().