• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

Revision8786e01e493253695280b6a170fb6d38dda4e14c (tree)
Time2011-11-09 02:56:09
AuthorMikiya Fujii <mikiya.fujii@gmai...>
CommiterMikiya Fujii

Log Message

Cndo::MoEnergy is renamed to Cndo::MoEnergyGap.

git-svn-id: https://svn.sourceforge.jp/svnroot/molds/MolDS/trunk@272 1136aad2-a195-0410-b898-f5ea1d11b9d8

Change Summary

Incremental Difference

--- a/src/cndo/Cndo2.h
+++ b/src/cndo/Cndo2.h
@@ -102,14 +102,14 @@ protected:
102102 void CalcRotatingMatrixFirstDerivatives(double*** rMatFirstDeri,
103103 Atom* atomA,
104104 Atom* atomB);
105- struct MoEnergy{
106- double energy;
105+ struct MoEnergyGap{
106+ double energyGap;
107107 int occIndex;
108108 int virIndex;
109109 int slaterIndex;
110110 };
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; } };
113113 private:
114114 string messageEnergiesMOs;
115115 string messageEnergiesMOsTitle;
--- a/src/input.in
+++ b/src/input.in
@@ -22,21 +22,21 @@ SCF
2222 diis_end_error 0.00000002
2323 SCF_END
2424
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
4040
4141 //INERTIA
4242 // origin 1.0 2.0 30.0
@@ -191,20 +191,20 @@ MD_END
191191 //GEOMETRY_END
192192
193193 // 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
208208
209209 // acetylene
210210 //GEOMETRY
@@ -223,12 +223,12 @@ MD_END
223223 //GEOMETRY_END
224224
225225 // 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
232232
233233 // C2Li2
234234 //GEOMETRY
--- a/src/zindo/ZindoS.h
+++ b/src/zindo/ZindoS.h
@@ -98,7 +98,7 @@ private:
9898 double* ritzVector,
9999 double* interactionEigenEnergies,
100100 int residualVectorIndex);
101- void SortSingleExcitationSlaterDeterminants(vector<MoEnergy>* moEnergies);
101+ void SortSingleExcitationSlaterDeterminants(vector<MoEnergyGap>* moEnergyGaps);
102102 void UpdateExpansionVectors(double** expansionVectors,
103103 double* interactionEigenEnergies,
104104 double* residualVector,
@@ -856,7 +856,7 @@ void ZindoS::DoesCIS(){
856856 cout << this->messageDoneCIS;
857857 }
858858
859-void ZindoS::SortSingleExcitationSlaterDeterminants(vector<MoEnergy>* moEnergies){
859+void ZindoS::SortSingleExcitationSlaterDeterminants(vector<MoEnergyGap>* moEnergyGaps){
860860
861861 int numberOcc = Parameters::GetInstance()->GetActiveOccCIS();
862862 int numberVir = Parameters::GetInstance()->GetActiveVirCIS();
@@ -865,10 +865,10 @@ void ZindoS::SortSingleExcitationSlaterDeterminants(vector<MoEnergy>* moEnergies
865865 int moI = this->molecule->GetTotalNumberValenceElectrons()/2 - (k/numberVir) -1;
866866 int moA = this->molecule->GetTotalNumberValenceElectrons()/2 + (k%numberVir);
867867
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);
870870 }
871- sort(moEnergies->begin(), moEnergies->end(), LessMoEnergy());
871+ sort(moEnergyGaps->begin(), moEnergyGaps->end(), LessMoEnergyGap());
872872 }
873873
874874 // This method is used for Davidson
@@ -985,12 +985,12 @@ void ZindoS::DoesCISDavidson(){
985985
986986 try{
987987 // sort single excitation slater determinants
988- vector<MoEnergy> moEnergies;
989- this->SortSingleExcitationSlaterDeterminants(&moEnergies);
988+ vector<MoEnergyGap> moEnergyGaps;
989+ this->SortSingleExcitationSlaterDeterminants(&moEnergyGaps);
990990
991991 // set initial expansion vectors and initial conveged vectors
992992 for(int k=0; k<numberExcitedStates; k++){
993- expansionVectors[moEnergies[k].slaterIndex][k] = 1.0;
993+ expansionVectors[moEnergyGaps[k].slaterIndex][k] = 1.0;
994994 convergeExcitedStates[k] = false;
995995 }
996996