HΦ  3.2.0
ErrorMessage.c
Go to the documentation of this file.
1 /* HPhi - Quantum Lattice Model Simulator */
2 /* Copyright (C) 2015 The University of Tokyo */
3 
4 /* This program is free software: you can redistribute it and/or modify */
5 /* it under the terms of the GNU General Public License as published by */
6 /* the Free Software Foundation, either version 3 of the License, or */
7 /* (at your option) any later version. */
8 
9 /* This program is distributed in the hope that it will be useful, */
10 /* but WITHOUT ANY WARRANTY; without even the implied warranty of */
11 /* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the */
12 /* GNU General Public License for more details. */
13 
14 /* You should have received a copy of the GNU General Public License */
15 /* along with this program. If not, see <http://www.gnu.org/licenses/>. */
16 
17 #include "ErrorMessage.h"
18 
21 
22 char *cErrNameList="Error: *.out(*.exe) NameListFile [OptParaFile]\n";
23 char *cErrOutput="Error: Fail to make output folder in current directory. \n";
24 char *cErrDefFile="Error: Definition files(*.def) are incomplete.\n";
25 char *cErrNvec="Error: nvec should be smaller than exct are incorrect.\n";
26 char *cErrnvec="Error: nvec should be smaller than exct are incorrect.\n";
27 char *cErrnvecShow="Error: nvec = %d, exct=%d.\n";
28 char *cErrIndices="Error: Indices and Parameters of Definition files(*.def) are incomplete.\n";
29 char *cErrArgv="Error: %s is incorrect. set '-e' or '-s'.\n";
30 
32 char *cErrTransfer="WarningOnTransfer.dat";
33 char *cErrDoubleCounting="double conuntings in transfers: i=%d j=%d spni %d spnj %d \n";
34 char *cErrChemicalPotential="possible error in chemical potentaial: usually, # of chemical potential = 2*(# of sites) \n";
35 char *cErrLargeMem="Error: Fail for memory allocation. see error code %d in user manual. \n";
36 
37 
39 char *cErrReadDefFile="Error: %s (Broken file or Not exist)\n";
40 char *cErrDefFileFormat="Error: incorrect format= %s. \n";
41 char *cErrNLoc ="Error: Ne=Nup+Ndown must be (Ne >= NLocalSpin).\n";
42 char *cErrDefFileParam="Error: In %s, wrong parameter name:%s \n";
43 char *cErrCalcType="Error in %s\n CalcType: 0: Lanczos Method, 1: Thermal Pure Quantum State Method, 2: Full Diagonalization Method, 3: Calculation Spectrum mode.\n";
44 char *cErrOutputMode="Error in %s\n OutputMode: \n 0: calc one body green function and two body green functions,\n 1: calc one body green function and two body green functions and correlatinos for charge and spin.\n";
45 char *cErrCalcEigenVec="Error in %s\n CalcEigenVec: \n 0: Lanczos+CG method,\n 1: Lanczos method.\n";
46 char *cErrOutputHam="Error in %s\n OutputHam: \n 0: not output Hamiltonian,\n 1: output Hamiltonian.\n";
47 char *cErrOutputHamForFullDiag="Error in %s\n OutputHam is only defined for FullDiag mode, CalcType=2.\n";
48 char *cErrInputHam="Error in %s\n InputHam: \n 0: not input Hamiltonian,\n 1: input Hamiltonian.\n";
49 char *cErrInputOutputHam="Error in %s\n OutputHam=1 and InputHam=1.\n";
50 char *cErrCalcModel="Error in %s\n CalcModel: \n 0: Hubbard, 1: Spin, 2: Kondo, 3: HubbardGC, 4: SpinGC, 5:KondoGC.\n";
51 char *cErrFiniteTemp="Error in %s\n FlgFiniteTemperature: Finite Temperature, 1: Zero Temperature.\n";
52 char *cErrSetIniVec="Error in %s\n InitialVecType: \n 0: complex type,\n 1: real type.\n";
53 char *cErrRestart="Error in %s\n Restart: \n 0: not restart (default).\n 1: output a restart vector.\n 2: input a restart vector and output a new restart vector.\n 3: input a restart vector.\n";
54 char *cErrCUDA="Error in %s\n NGPU: NGPU must be greater than 0.\n";
55 char *cErrScaLAPACK="Error in %s\n ScaLAPACK: \n 0: Use LAPACK for FullDiag mode,\n 1: Use ScaLAPACK for FullDiag mode.\n";
56 
57 char *cErrNcond= "Error in %s\n Ncond must be greater than 0.\n ";
58 char *cErrNsite= "Error in %s\n Nsite must be positive value.\n ";
59 char *cErrNumAve= "Error in %s\n NumAve must be positive value.\n ";
60 char *cErrExpecInterval= "Error in %s\n ExpecInterval must be positive value.\n ";
61 char *cErrLanczos_max="Error in %s\n Lanczos_max must be positive value.\n ";
62 char *cErrLanczos_eps="Error in %s\n Lanczos_eps must be positive value.\n ";
63 char *cErrLanczosExct="Error in %s\n exct=%d must be greater than 1 and smaller than nvec=%d.\n ";
64 char *cErrLanczosTarget="Error in %s\n LanczosTarget=%d must be greater than exct=%d.\n ";
65 
66 
67 char *cErrKW="Error: Wrong keywords '%s' in %s.\n";
68 char *cErrKW_ShowList="Choose Keywords as follows: \n";
69 char *cErrKW_Same="Error: Same keywords exist in %s.\n";
70 char *cErrKW_InCorPair="Error: keyword and filename must be set as a pair in %s.\n";
71 
72 char *cErrMakeDef="Error: Need to make a def file for %s.\n";
73 char *cErrIncorrectDef="Error: incorrect file.\n";
74 char *cErrNonHermiteTrans="Error: NonHermite (i, spni, j, spnj) = (%d, %d, %d, %d), trans_re= %lf, trans_im= %lf.\n";
75 char *cErrNonHermiteTransForAll= "Error: NonHermite Pair exists in transfer integral. \n";
76 char *cErrNonHermiteInterAll="Error: NonHermite (i, spni, j, spnj, k, spnk, l, spnl) = (%d, %d, %d, %d, %d, %d, %d, %d), InterAll_re= %lf, InterAll_im= %lf . \n";
77 char *cErrNonConservedInterAll="Error: This operator breaks Sz Symmetry (i, spni, j, spnj, k, spnk, l, spnl) = (%d, %d, %d, %d, %d, %d, %d, %d), InterAll_re= %lf, InterAll_im= %lf . \n";
78 char *cErrNonHermiteInterAllForAll= "Error: NonHermite Pair exists in InterAll. \n";
79 char *cErrIncorrectFormatForKondoInt= "Error: Site component of (i, j, k, l) =(%d, %d, %d, %d) is incorrect.\n";
80 char *cErrIncorrectFormatForKondoTrans= "Error: Site component of (i, j) =(%d, %d) is incorrect.\n";
81 
82 
83 char *cErrIncorrectFormatForSpinTrans= "Error: Site component of (i, j) =(%d, %d) is incorrect.\n";
84 char *cWarningIncorrectFormatForSpin= "Warning: Site component of (i, j, k, l) =(%d, %d, %d, %d) is not correct; i=j and k=l must be satisfied. \n";
85 char *cWarningIncorrectFormatForSpin2= "Warning: Site component of (i, j) =(%d, %d) is ignored.\n";
86 char *cErrIncorrectFormatInter= "Error: Use only InterAll for setteing interactions for general spin.\n";
87 char *cErrIncorrectSpinIndexForInter="Error: Spin index is incorrect for interactions defined in InterAll file.\n";
88 char *cErrIncorrectSpinIndexForTrans="Error: Spin index is incorrect for transfers defined in Trans file.\n";
89 
91 char *cErrNProcNumberHubbard = "Error ! The number of PROCESS should be 4-exponent !\n";
92 char *cErrNProcNumberSpin = "Error ! The number of PROCESS should be 2-exponent !\n";
93 char *cErrNProcNumberGneralSpin = "Error ! The number of PROCESS is wrong !\n";
94 char *cErrNProcNumber = " The number of PROCESS : %d\n";
95 char *cErrNProcNumberSet = " Set the number of PROCESS as %d or %d.\n";
96 
97 
99 char *cErrNoModel ="Error: CalcModel %d is incorrect.\n";
100 char *cErrNoHilbertSpace = "Error: There is no target of Hilbert space.\n";
101 
103 char *cErrSiteNumber = "Error: Total Site Number is incorrect.\n";
104 
105 
107 char *cErrMltiply="ERROR IN mltiply.c \n";
108 
109 
111 char *cErrFIOpen ="FileOpenError: %s.\n";
112 
114 char* cErrSz="Error: in sz. \n";
115 char* cErrSz_NoFile="No file. Please set READ=0.\n";
116 char* cErrSz_NoFile_Show=" %s does not exist. \n";
117 char* cErrSz_ShowDim="imax = %ld, Check.idim_max=%ld \n";
118 char* cErrSz_OutFile="Caution!! Error in sz !!!! idim_max is not correct \n";
char * cErrSz_NoFile
Definition: ErrorMessage.c:115
char * cErrDefFileFormat
Definition: ErrorMessage.c:40
char * cErrIncorrectFormatForKondoTrans
Definition: ErrorMessage.c:80
char * cErrIncorrectSpinIndexForInter
Definition: ErrorMessage.c:87
char * cErrNProcNumberGneralSpin
Definition: ErrorMessage.c:93
char * cErrReadDefFile
Error Message in readdef.c.
Definition: ErrorMessage.c:39
char * cErrNsite
Definition: ErrorMessage.c:58
char * cErrSz_ShowDim
Definition: ErrorMessage.c:117
char * cErrMltiply
Error Message in mltiply.c.
Definition: ErrorMessage.c:107
char * cErrTransfer
Error Message in HPhiTrans.c.
Definition: ErrorMessage.c:32
char * cErrnvec
Definition: ErrorMessage.c:26
char * cErrLanczosExct
Definition: ErrorMessage.c:63
char * cErrMakeDef
Definition: ErrorMessage.c:72
char * cErrDefFile
Definition: ErrorMessage.c:24
char * cErrIncorrectDef
Definition: ErrorMessage.c:73
char * cErrLanczos_max
Definition: ErrorMessage.c:61
char * cErrCalcModel
Definition: ErrorMessage.c:50
char * cErrKW_ShowList
Definition: ErrorMessage.c:68
char * cErrIncorrectFormatInter
Definition: ErrorMessage.c:86
char * cErrNProcNumberSet
Definition: ErrorMessage.c:95
char * cErrDoubleCounting
Definition: ErrorMessage.c:33
char * cErrSz_OutFile
Definition: ErrorMessage.c:118
char * cErrNvec
Definition: ErrorMessage.c:25
char * cErrNProcNumberSpin
Definition: ErrorMessage.c:92
char * cErrNProcNumber
Definition: ErrorMessage.c:94
char * cErrKW_Same
Definition: ErrorMessage.c:69
int iErrCodeMem
Error Message in HPhiMain.c.
Definition: ErrorMessage.c:20
char * cWarningIncorrectFormatForSpin
Definition: ErrorMessage.c:84
char * cErrLanczos_eps
Definition: ErrorMessage.c:62
char * cErrSetIniVec
Definition: ErrorMessage.c:52
char * cErrSz
Error Message in sz.c.
Definition: ErrorMessage.c:114
char * cErrDefFileParam
Definition: ErrorMessage.c:42
char * cErrNameList
Definition: ErrorMessage.c:22
char * cErrNumAve
Definition: ErrorMessage.c:59
char * cErrNoHilbertSpace
Definition: ErrorMessage.c:100
char * cErrCalcEigenVec
Definition: ErrorMessage.c:45
char * cErrNonConservedInterAll
Definition: ErrorMessage.c:77
char * cErrnvecShow
Definition: ErrorMessage.c:27
char * cErrOutputHamForFullDiag
Definition: ErrorMessage.c:47
char * cErrIncorrectFormatForKondoInt
Definition: ErrorMessage.c:79
char * cErrNonHermiteInterAll
Definition: ErrorMessage.c:76
char * cErrKW
Definition: ErrorMessage.c:67
char * cErrFiniteTemp
Definition: ErrorMessage.c:51
char * cErrNonHermiteTrans
Definition: ErrorMessage.c:74
char * cErrScaLAPACK
Definition: ErrorMessage.c:55
char * cErrLargeMem
Definition: ErrorMessage.c:35
char * cErrRestart
Definition: ErrorMessage.c:53
char * cErrOutput
Definition: ErrorMessage.c:23
char * cErrIncorrectSpinIndexForTrans
Definition: ErrorMessage.c:88
char * cErrInputHam
Definition: ErrorMessage.c:48
char * cErrCalcType
Definition: ErrorMessage.c:43
char * cErrNProcNumberHubbard
Error Message in CheckMPI.c.
Definition: ErrorMessage.c:91
char * cWarningIncorrectFormatForSpin2
Definition: ErrorMessage.c:85
char * cErrOutputMode
Definition: ErrorMessage.c:44
char * cErrInputOutputHam
Definition: ErrorMessage.c:49
char * cErrChemicalPotential
Definition: ErrorMessage.c:34
char * cErrNoModel
Error Message in diagonal calc.c.
Definition: ErrorMessage.c:99
char * cErrNonHermiteInterAllForAll
Definition: ErrorMessage.c:78
char * cErrIncorrectFormatForSpinTrans
Definition: ErrorMessage.c:83
char * cErrNonHermiteTransForAll
Definition: ErrorMessage.c:75
char * cErrExpecInterval
Definition: ErrorMessage.c:60
char * cErrOutputHam
Definition: ErrorMessage.c:46
char * cErrFIOpen
Error Message in FileIO.c.
Definition: ErrorMessage.c:111
char * cErrLanczosTarget
Definition: ErrorMessage.c:64
char * cErrKW_InCorPair
Definition: ErrorMessage.c:70
char * cErrCUDA
Definition: ErrorMessage.c:54
char * cErrSz_NoFile_Show
Definition: ErrorMessage.c:116
char * cErrIndices
Definition: ErrorMessage.c:28
char * cErrNcond
Definition: ErrorMessage.c:57
char * cErrNLoc
Definition: ErrorMessage.c:41
char * cErrSiteNumber
Error Message in bitcalc.c.
Definition: ErrorMessage.c:103
char * cErrArgv
Definition: ErrorMessage.c:29