Revision | 8786e01e493253695280b6a170fb6d38dda4e14c (tree) |
---|---|
Time | 2011-11-09 02:56:09 |
Author | Mikiya Fujii <mikiya.fujii@gmai...> |
Commiter | Mikiya Fujii |
Cndo::MoEnergy is renamed to Cndo::MoEnergyGap.
git-svn-id: https://svn.sourceforge.jp/svnroot/molds/MolDS/trunk@272 1136aad2-a195-0410-b898-f5ea1d11b9d8
@@ -102,14 +102,14 @@ protected: | ||
102 | 102 | void CalcRotatingMatrixFirstDerivatives(double*** rMatFirstDeri, |
103 | 103 | Atom* atomA, |
104 | 104 | Atom* atomB); |
105 | - struct MoEnergy{ | |
106 | - double energy; | |
105 | + struct MoEnergyGap{ | |
106 | + double energyGap; | |
107 | 107 | int occIndex; |
108 | 108 | int virIndex; |
109 | 109 | int slaterIndex; |
110 | 110 | }; |
111 | - struct LessMoEnergy { bool operator()(const MoEnergy& rLeft, const MoEnergy& rRight) | |
112 | - const { return rLeft.energy < rRight.energy; } }; | |
111 | + struct LessMoEnergyGap { bool operator()(const MoEnergyGap& rLeft, const MoEnergyGap& rRight) | |
112 | + const { return rLeft.energyGap < rRight.energyGap; } }; | |
113 | 113 | private: |
114 | 114 | string messageEnergiesMOs; |
115 | 115 | string messageEnergiesMOsTitle; |
@@ -22,21 +22,21 @@ SCF | ||
22 | 22 | diis_end_error 0.00000002 |
23 | 23 | SCF_END |
24 | 24 | |
25 | -//CIS | |
26 | -// davidson yes | |
27 | -// active_occ 100 | |
28 | -// active_vir 100 | |
29 | -// nstates 10 | |
30 | -// max_iter 200 | |
31 | -// max_dim 1000 | |
32 | -// norm_tol 0.000001 | |
33 | -//CIS_END | |
34 | - | |
35 | -MD | |
36 | - total_steps 20000 | |
37 | - electronic_state 0 | |
38 | - dt 0.05 | |
39 | -MD_END | |
25 | +CIS | |
26 | + davidson yes | |
27 | + active_occ 100 | |
28 | + active_vir 100 | |
29 | + nstates 10 | |
30 | + max_iter 200 | |
31 | + max_dim 1000 | |
32 | + norm_tol 0.000001 | |
33 | +CIS_END | |
34 | + | |
35 | +//MD | |
36 | +// total_steps 20000 | |
37 | +// electronic_state 0 | |
38 | +// dt 0.05 | |
39 | +//MD_END | |
40 | 40 | |
41 | 41 | //INERTIA |
42 | 42 | // origin 1.0 2.0 30.0 |
@@ -191,20 +191,20 @@ MD_END | ||
191 | 191 | //GEOMETRY_END |
192 | 192 | |
193 | 193 | // benzene |
194 | -//GEOMETRY | |
195 | -// C -0.505391 0.552561 0.000000 | |
196 | -// C 0.889769 0.552561 0.000000 | |
197 | -// C 1.587307 1.760312 0.000000 | |
198 | -// C 0.889653 2.968821 -0.001199 | |
199 | -// C -0.505172 2.968743 -0.001678 | |
200 | -// C -1.202773 1.760537 -0.000682 | |
201 | -// H -1.055150 -0.399756 0.000450 | |
202 | -// H 1.439277 -0.399952 0.001315 | |
203 | -// H 2.686987 1.760392 0.000634 | |
204 | -// H 1.439853 3.920964 -0.001258 | |
205 | -// H -1.055294 3.921024 -0.002631 | |
206 | -// H -2.302377 1.760720 -0.000862 | |
207 | -//GEOMETRY_END | |
194 | +GEOMETRY | |
195 | + C -0.505391 0.552561 0.000000 | |
196 | + C 0.889769 0.552561 0.000000 | |
197 | + C 1.587307 1.760312 0.000000 | |
198 | + C 0.889653 2.968821 -0.001199 | |
199 | + C -0.505172 2.968743 -0.001678 | |
200 | + C -1.202773 1.760537 -0.000682 | |
201 | + H -1.055150 -0.399756 0.000450 | |
202 | + H 1.439277 -0.399952 0.001315 | |
203 | + H 2.686987 1.760392 0.000634 | |
204 | + H 1.439853 3.920964 -0.001258 | |
205 | + H -1.055294 3.921024 -0.002631 | |
206 | + H -2.302377 1.760720 -0.000862 | |
207 | +GEOMETRY_END | |
208 | 208 | |
209 | 209 | // acetylene |
210 | 210 | //GEOMETRY |
@@ -223,12 +223,12 @@ MD_END | ||
223 | 223 | //GEOMETRY_END |
224 | 224 | |
225 | 225 | // acetylene3 |
226 | -GEOMETRY | |
227 | - C 0.24933 0.01 -0.01 | |
228 | - C 1.45053 0.0 0.20 | |
229 | - H -0.82067 0.02 -0.050 | |
230 | - H 2.52053 -0.10 0.0 | |
231 | -GEOMETRY_END | |
226 | +//GEOMETRY | |
227 | +// C 0.24933 0.01 -0.01 | |
228 | +// C 1.45053 0.0 0.20 | |
229 | +// H -0.82067 0.02 -0.050 | |
230 | +// H 2.52053 -0.10 0.0 | |
231 | +//GEOMETRY_END | |
232 | 232 | |
233 | 233 | // C2Li2 |
234 | 234 | //GEOMETRY |
@@ -98,7 +98,7 @@ private: | ||
98 | 98 | double* ritzVector, |
99 | 99 | double* interactionEigenEnergies, |
100 | 100 | int residualVectorIndex); |
101 | - void SortSingleExcitationSlaterDeterminants(vector<MoEnergy>* moEnergies); | |
101 | + void SortSingleExcitationSlaterDeterminants(vector<MoEnergyGap>* moEnergyGaps); | |
102 | 102 | void UpdateExpansionVectors(double** expansionVectors, |
103 | 103 | double* interactionEigenEnergies, |
104 | 104 | double* residualVector, |
@@ -856,7 +856,7 @@ void ZindoS::DoesCIS(){ | ||
856 | 856 | cout << this->messageDoneCIS; |
857 | 857 | } |
858 | 858 | |
859 | -void ZindoS::SortSingleExcitationSlaterDeterminants(vector<MoEnergy>* moEnergies){ | |
859 | +void ZindoS::SortSingleExcitationSlaterDeterminants(vector<MoEnergyGap>* moEnergyGaps){ | |
860 | 860 | |
861 | 861 | int numberOcc = Parameters::GetInstance()->GetActiveOccCIS(); |
862 | 862 | int numberVir = Parameters::GetInstance()->GetActiveVirCIS(); |
@@ -865,10 +865,10 @@ void ZindoS::SortSingleExcitationSlaterDeterminants(vector<MoEnergy>* moEnergies | ||
865 | 865 | int moI = this->molecule->GetTotalNumberValenceElectrons()/2 - (k/numberVir) -1; |
866 | 866 | int moA = this->molecule->GetTotalNumberValenceElectrons()/2 + (k%numberVir); |
867 | 867 | |
868 | - MoEnergy moEnergy = {this->energiesMO[moA] - this->energiesMO[moI], moI, moA, k}; | |
869 | - moEnergies->push_back(moEnergy); | |
868 | + MoEnergyGap moEnergyGap = {this->energiesMO[moA] - this->energiesMO[moI], moI, moA, k}; | |
869 | + moEnergyGaps->push_back(moEnergyGap); | |
870 | 870 | } |
871 | - sort(moEnergies->begin(), moEnergies->end(), LessMoEnergy()); | |
871 | + sort(moEnergyGaps->begin(), moEnergyGaps->end(), LessMoEnergyGap()); | |
872 | 872 | } |
873 | 873 | |
874 | 874 | // This method is used for Davidson |
@@ -985,12 +985,12 @@ void ZindoS::DoesCISDavidson(){ | ||
985 | 985 | |
986 | 986 | try{ |
987 | 987 | // sort single excitation slater determinants |
988 | - vector<MoEnergy> moEnergies; | |
989 | - this->SortSingleExcitationSlaterDeterminants(&moEnergies); | |
988 | + vector<MoEnergyGap> moEnergyGaps; | |
989 | + this->SortSingleExcitationSlaterDeterminants(&moEnergyGaps); | |
990 | 990 | |
991 | 991 | // set initial expansion vectors and initial conveged vectors |
992 | 992 | for(int k=0; k<numberExcitedStates; k++){ |
993 | - expansionVectors[moEnergies[k].slaterIndex][k] = 1.0; | |
993 | + expansionVectors[moEnergyGaps[k].slaterIndex][k] = 1.0; | |
994 | 994 | convergeExcitedStates[k] = false; |
995 | 995 | } |
996 | 996 |