• R/O
  • HTTP
  • SSH
  • HTTPS

コミット

タグ
未設定

よく使われているワード(クリックで追加)

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

コミットメタ情報

リビジョン0fbc267e9e9e9340be255164711cc587d9ed0646 (tree)
日時2014-01-12 16:11:25
作者Katsuhiko Nishimra <ktns.87@gmai...>
コミッターKatsuhiko Nishimra

ログメッセージ

Use current force to check convergence. #32906

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

変更サマリ

差分

--- a/src/optimization/BFGS.cpp
+++ b/src/optimization/BFGS.cpp
@@ -185,6 +185,9 @@ void BFGS::SearchMinimum(boost::shared_ptr<ElectronicStructure> electronicStruct
185185
186186 this->UpdateTrustRadius(trustRadius, approximateChange, lineSearchInitialEnergy, lineSearchCurrentEnergy);
187187
188+ matrixForce = electronicStructure->GetForce(elecState);
189+ vectorForce = &matrixForce[0][0];
190+
188191 // check convergence
189192 if(this->SatisfiesConvergenceCriterion(matrixForce,
190193 molecule,
@@ -207,9 +210,6 @@ void BFGS::SearchMinimum(boost::shared_ptr<ElectronicStructure> electronicStruct
207210 lineSearchCurrentEnergy = lineSearchInitialEnergy;
208211 }
209212
210- matrixForce = electronicStructure->GetForce(elecState);
211- vectorForce = &matrixForce[0][0];
212-
213213 // Update Hessian
214214 this->UpdateHessian(matrixHessian, dimension, vectorForce, vectorOldForce, &matrixDisplacement[0][0]);
215215
--- a/test/c2h6_pm3pddg_opt_bfgs.dat
+++ b/test/c2h6_pm3pddg_opt_bfgs.dat
@@ -1,6 +1,6 @@
11
22
3- >>>>> Welcome to the MolDS world at 2013/2/12(Thu.) 4:55:3 <<<<<
3+ >>>>> Welcome to the MolDS world at 2014/1/12(Sun.) 16:9:3 <<<<<
44
55
66 ********** START: Parse input **********
@@ -45,6 +45,8 @@
4545 Rms gradient: 0.000300
4646 Initial trust radius: 0.300000
4747 Max size of the optimization step: 0.300000
48+ Initial trust radius: 0.300000
49+ Max size of the optimization step: 0.300000
4850
4951 Input terms:
5052 theory | pm3/pddg | theory_end | scf | max_iter | 50 | rms_density | 0.000001 | damping_thresh | 1.0 |
@@ -120,7 +122,7 @@ h | 1.7519 | -1.0401 | -0.1000 | geometry_end |
120122 Mulliken charge(SCF): 0 6 H 1.000000e+00 9.775077e-02
121123 Mulliken charge(SCF): 0 7 H 1.000000e+00 1.088939e-01
122124
123- Elapsed time(omp) for the SCF = 0.101077[s].
125+ Elapsed time(omp) for the SCF = 0.150620[s].
124126 ********** DONE: PM3/PDDG-SCF **********
125127
126128
@@ -197,8 +199,8 @@ actual/expected energy change = 1.509575
197199
198200 ====== Optimization Logs ======
199201 Energy difference: -3.136514e-02 [a.u.]
200- Max gradient: 1.235168e-01 [a.u.]
201- Rms gradient: 4.246652e-02 [a.u.]
202+ Max gradient: 9.653856e-02 [a.u.]
203+ Rms gradient: 2.687443e-02 [a.u.]
202204
203205
204206
@@ -274,8 +276,8 @@ actual/expected energy change = 0.970080
274276
275277 ====== Optimization Logs ======
276278 Energy difference: -1.802074e-02 [a.u.]
277- Max gradient: 9.653856e-02 [a.u.]
278- Rms gradient: 2.687443e-02 [a.u.]
279+ Max gradient: 3.011362e-02 [a.u.]
280+ Rms gradient: 1.379044e-02 [a.u.]
279281
280282
281283
@@ -351,8 +353,8 @@ actual/expected energy change = 1.350483
351353
352354 ====== Optimization Logs ======
353355 Energy difference: -2.222913e-03 [a.u.]
354- Max gradient: 3.011362e-02 [a.u.]
355- Rms gradient: 1.379044e-02 [a.u.]
356+ Max gradient: 1.802741e-02 [a.u.]
357+ Rms gradient: 9.797423e-03 [a.u.]
356358
357359
358360
@@ -428,8 +430,8 @@ actual/expected energy change = 1.437281
428430
429431 ====== Optimization Logs ======
430432 Energy difference: -2.499199e-03 [a.u.]
431- Max gradient: 1.802741e-02 [a.u.]
432- Rms gradient: 9.797423e-03 [a.u.]
433+ Max gradient: 1.211386e-02 [a.u.]
434+ Rms gradient: 6.016376e-03 [a.u.]
433435
434436
435437
@@ -505,8 +507,8 @@ actual/expected energy change = 1.229143
505507
506508 ====== Optimization Logs ======
507509 Energy difference: -1.329674e-03 [a.u.]
508- Max gradient: 1.211386e-02 [a.u.]
509- Rms gradient: 6.016376e-03 [a.u.]
510+ Max gradient: 1.183922e-02 [a.u.]
511+ Rms gradient: 5.151528e-03 [a.u.]
510512
511513
512514
@@ -582,8 +584,8 @@ actual/expected energy change = 1.587160
582584
583585 ====== Optimization Logs ======
584586 Energy difference: -4.952496e-04 [a.u.]
585- Max gradient: 1.183922e-02 [a.u.]
586- Rms gradient: 5.151528e-03 [a.u.]
587+ Max gradient: 1.029066e-02 [a.u.]
588+ Rms gradient: 4.923371e-03 [a.u.]
587589
588590
589591
@@ -659,8 +661,8 @@ actual/expected energy change = 1.379916
659661
660662 ====== Optimization Logs ======
661663 Energy difference: -7.687431e-04 [a.u.]
662- Max gradient: 1.029066e-02 [a.u.]
663- Rms gradient: 4.923371e-03 [a.u.]
664+ Max gradient: 1.108484e-02 [a.u.]
665+ Rms gradient: 4.301842e-03 [a.u.]
664666
665667
666668
@@ -736,8 +738,8 @@ actual/expected energy change = 1.375035
736738
737739 ====== Optimization Logs ======
738740 Energy difference: -4.400268e-04 [a.u.]
739- Max gradient: 1.108484e-02 [a.u.]
740- Rms gradient: 4.301842e-03 [a.u.]
741+ Max gradient: 8.945952e-03 [a.u.]
742+ Rms gradient: 3.004880e-03 [a.u.]
741743
742744
743745
@@ -813,8 +815,8 @@ actual/expected energy change = 1.320710
813815
814816 ====== Optimization Logs ======
815817 Energy difference: -2.107817e-04 [a.u.]
816- Max gradient: 8.945952e-03 [a.u.]
817- Rms gradient: 3.004880e-03 [a.u.]
818+ Max gradient: 3.914513e-03 [a.u.]
819+ Rms gradient: 1.806713e-03 [a.u.]
818820
819821
820822
@@ -890,8 +892,8 @@ actual/expected energy change = 1.334492
890892
891893 ====== Optimization Logs ======
892894 Energy difference: -7.789505e-05 [a.u.]
893- Max gradient: 3.914513e-03 [a.u.]
894- Rms gradient: 1.806713e-03 [a.u.]
895+ Max gradient: 2.348107e-03 [a.u.]
896+ Rms gradient: 1.224477e-03 [a.u.]
895897
896898
897899
@@ -967,8 +969,8 @@ actual/expected energy change = 1.345586
967969
968970 ====== Optimization Logs ======
969971 Energy difference: -3.013499e-05 [a.u.]
970- Max gradient: 2.348107e-03 [a.u.]
971- Rms gradient: 1.224477e-03 [a.u.]
972+ Max gradient: 2.466850e-03 [a.u.]
973+ Rms gradient: 9.633209e-04 [a.u.]
972974
973975
974976
@@ -1044,8 +1046,8 @@ actual/expected energy change = 1.467251
10441046
10451047 ====== Optimization Logs ======
10461048 Energy difference: -1.590690e-05 [a.u.]
1047- Max gradient: 2.466850e-03 [a.u.]
1048- Rms gradient: 9.633209e-04 [a.u.]
1049+ Max gradient: 2.510158e-03 [a.u.]
1050+ Rms gradient: 8.512001e-04 [a.u.]
10491051
10501052
10511053
@@ -1121,8 +1123,8 @@ actual/expected energy change = 1.459857
11211123
11221124 ====== Optimization Logs ======
11231125 Energy difference: -1.578546e-05 [a.u.]
1124- Max gradient: 2.510158e-03 [a.u.]
1125- Rms gradient: 8.512001e-04 [a.u.]
1126+ Max gradient: 2.162986e-03 [a.u.]
1127+ Rms gradient: 8.142333e-04 [a.u.]
11261128
11271129
11281130
@@ -1198,8 +1200,8 @@ actual/expected energy change = 1.449004
11981200
11991201 ====== Optimization Logs ======
12001202 Energy difference: -1.521316e-05 [a.u.]
1201- Max gradient: 2.162986e-03 [a.u.]
1202- Rms gradient: 8.142333e-04 [a.u.]
1203+ Max gradient: 1.710260e-03 [a.u.]
1204+ Rms gradient: 7.745775e-04 [a.u.]
12031205
12041206
12051207
@@ -1275,8 +1277,8 @@ actual/expected energy change = 1.393714
12751277
12761278 ====== Optimization Logs ======
12771279 Energy difference: -1.272556e-05 [a.u.]
1278- Max gradient: 1.710260e-03 [a.u.]
1279- Rms gradient: 7.745775e-04 [a.u.]
1280+ Max gradient: 1.492191e-03 [a.u.]
1281+ Rms gradient: 6.115859e-04 [a.u.]
12801282
12811283
12821284
@@ -1352,8 +1354,8 @@ actual/expected energy change = 1.359431
13521354
13531355 ====== Optimization Logs ======
13541356 Energy difference: -7.530672e-06 [a.u.]
1355- Max gradient: 1.492191e-03 [a.u.]
1356- Rms gradient: 6.115859e-04 [a.u.]
1357+ Max gradient: 1.182928e-03 [a.u.]
1358+ Rms gradient: 3.801578e-04 [a.u.]
13571359
13581360
13591361
@@ -1429,8 +1431,8 @@ actual/expected energy change = 1.384690
14291431
14301432 ====== Optimization Logs ======
14311433 Energy difference: -3.787475e-06 [a.u.]
1432- Max gradient: 1.182928e-03 [a.u.]
1433- Rms gradient: 3.801578e-04 [a.u.]
1434+ Max gradient: 6.399565e-04 [a.u.]
1435+ Rms gradient: 2.601308e-04 [a.u.]
14341436
14351437
14361438
@@ -1506,8 +1508,8 @@ actual/expected energy change = 1.435986
15061508
15071509 ====== Optimization Logs ======
15081510 Energy difference: -2.404721e-06 [a.u.]
1509- Max gradient: 6.399565e-04 [a.u.]
1510- Rms gradient: 2.601308e-04 [a.u.]
1511+ Max gradient: 5.021458e-04 [a.u.]
1512+ Rms gradient: 2.523271e-04 [a.u.]
15111513
15121514
15131515
@@ -1583,8 +1585,8 @@ actual/expected energy change = 1.426738
15831585
15841586 ====== Optimization Logs ======
15851587 Energy difference: -1.972818e-06 [a.u.]
1586- Max gradient: 5.021458e-04 [a.u.]
1587- Rms gradient: 2.523271e-04 [a.u.]
1588+ Max gradient: 5.193113e-04 [a.u.]
1589+ Rms gradient: 2.500944e-04 [a.u.]
15881590
15891591
15901592
@@ -1660,8 +1662,8 @@ actual/expected energy change = 1.407551
16601662
16611663 ====== Optimization Logs ======
16621664 Energy difference: -1.505934e-06 [a.u.]
1663- Max gradient: 5.193113e-04 [a.u.]
1664- Rms gradient: 2.500944e-04 [a.u.]
1665+ Max gradient: 4.522702e-04 [a.u.]
1666+ Rms gradient: 2.104509e-04 [a.u.]
16651667
16661668
16671669
@@ -1737,83 +1739,6 @@ actual/expected energy change = 1.391970
17371739
17381740 ====== Optimization Logs ======
17391741 Energy difference: -1.011309e-06 [a.u.]
1740- Max gradient: 4.522702e-04 [a.u.]
1741- Rms gradient: 2.104509e-04 [a.u.]
1742-
1743-
1744-
1745-========== START: BFGS step 22
1746-
1747-Lowest eigenvalue of the augmented Hessian = -0.000001
1748-2nd lowest eigenvalue of the augmented Hessian = 0.043287
1749-3rd lowest eigenvalue of the augmented Hessian = 0.089778
1750-Calculated RFO step size = 0.002218
1751-Trust radius is 0.300000
1752- | i-th | atom type | x[a.u.] | y[a.u.] | z[a.u.] | | x[angst.] | y[angst.] | z[angst.] |
1753- Atom coordinates: 0 C 2.145595e-02 9.983076e-02 -9.199526e-02 1.135400e-02 5.282816e-02 -4.868179e-02
1754- Atom coordinates: 1 C 2.873812e+00 2.387958e-02 -9.697962e-02 1.520756e+00 1.263653e-02 -5.131940e-02
1755- Atom coordinates: 2 H -6.960428e-01 2.041507e+00 -9.268236e-02 -3.683300e-01 1.080319e+00 -4.904539e-02
1756- Atom coordinates: 3 H -7.679994e-01 -8.436859e-01 -1.755560e+00 -4.064078e-01 -4.464593e-01 -9.290022e-01
1757- Atom coordinates: 4 H -7.619906e-01 -8.421400e-01 1.575439e+00 -4.032281e-01 -4.456413e-01 8.336865e-01
1758- Atom coordinates: 5 H 3.663427e+00 9.949986e-01 -1.744246e+00 1.938602e+00 5.265306e-01 -9.230152e-01
1759- Atom coordinates: 6 H 3.668032e+00 9.317891e-01 1.584399e+00 1.941039e+00 4.930816e-01 8.384277e-01
1760- Atom coordinates: 7 H 3.587673e+00 -1.918630e+00 -1.342655e-01 1.898515e+00 -1.015295e+00 -7.105023e-02
1761-
1762- | x[a.u.] | y[a.u.] | z[a.u.] | | x[angst.] | y[angst.] | z[angst.] |
1763- Center of Mass: 1.447879e+00 6.161074e-02 -9.448714e-02 7.661844e-01 3.260300e-02 -5.000044e-02
1764-
1765- | x[a.u.] | y[a.u.] | z[a.u.] | | x[angst.] | y[angst.] | z[angst.] |
1766- Center of Core: 1.447879e+00 6.161081e-02 -9.448714e-02 7.661843e-01 3.260303e-02 -5.000044e-02
1767-
1768- | i-th | occ/unocc | e[a.u.] | e[eV] |
1769- Energy of MO: 0 occ -1.289005e+00 -3.507588e+01
1770- Energy of MO: 1 occ -8.690247e-01 -2.364755e+01
1771- Energy of MO: 2 occ -5.575282e-01 -1.517124e+01
1772- Energy of MO: 3 occ -5.573856e-01 -1.516735e+01
1773- Energy of MO: 4 occ -5.073051e-01 -1.380458e+01
1774- Energy of MO: 5 occ -4.362141e-01 -1.187008e+01
1775- Energy of MO: 6 occ -4.361427e-01 -1.186814e+01
1776- Energy of MO: 7 unocc 1.366557e-01 3.718622e+00
1777- Energy of MO: 8 unocc 1.573044e-01 4.280505e+00
1778- Energy of MO: 9 unocc 1.638606e-01 4.458909e+00
1779- Energy of MO: 10 unocc 1.639624e-01 4.461679e+00
1780- Energy of MO: 11 unocc 1.844616e-01 5.019494e+00
1781- Energy of MO: 12 unocc 1.934591e-01 5.264332e+00
1782- Energy of MO: 13 unocc 1.935232e-01 5.266075e+00
1783-
1784- | [a.u.] | [eV] |
1785- Electronic energy(SCF): -1.230266e+01 -3.347751e+02
1786- Note that this electronic energy includes core-repulsions.
1787-
1788- | [a.u.] | [eV] |
1789- Core repulsion energy: 2.177680e+01 5.925818e+02
1790-
1791- | x[a.u.] | y[a.u.] | z[a.u.] | magnitude[a.u.] | | x[debye] | y[debye] | z[debye] | magnitude[debye] |
1792- Total Dipole moment(SCF): -2.651745e-03 2.628576e-03 4.911031e-04 3.765945e-03 -6.740065e-03 6.681174e-03 1.248260e-03 9.572080e-03
1793-
1794- | x[a.u.] | y[a.u.] | z[a.u.] | magnitude[a.u.] | | x[debye] | y[debye] | z[debye] | magnitude[debye] |
1795- Electronic Dipole moment(SCF): -6.524292e-03 6.499504e-03 4.863049e-04 9.222062e-03 -1.658310e-02 1.652009e-02 1.236064e-03 2.344015e-02
1796-
1797- | x[a.u.] | y[a.u.] | z[a.u.] | magnitude[a.u.] | | x[debye] | y[debye] | z[debye] | magnitude[debye] |
1798- Core Dipole moment: 3.872547e-03 -3.870928e-03 4.798208e-06 5.475466e-03 9.843034e-03 -9.838921e-03 1.219583e-05 1.391725e-02
1799-
1800- | k-th eigenstate | i-th atom | atom type | core charge[a.u.] | Mulliken charge[a.u.]|
1801- Mulliken charge(SCF): 0 0 C 4.000000e+00 -2.559578e-01
1802- Mulliken charge(SCF): 0 1 C 4.000000e+00 -2.563503e-01
1803- Mulliken charge(SCF): 0 2 H 1.000000e+00 8.559830e-02
1804- Mulliken charge(SCF): 0 3 H 1.000000e+00 8.532453e-02
1805- Mulliken charge(SCF): 0 4 H 1.000000e+00 8.538347e-02
1806- Mulliken charge(SCF): 0 5 H 1.000000e+00 8.534452e-02
1807- Mulliken charge(SCF): 0 6 H 1.000000e+00 8.531996e-02
1808- Mulliken charge(SCF): 0 7 H 1.000000e+00 8.533725e-02
1809-
1810-
1811-actual energy change = -6.340346e-07
1812-expected energy change = -4.515859e-07
1813-actual/expected energy change = 1.404018
1814-
1815- ====== Optimization Logs ======
1816- Energy difference: -6.340346e-07 [a.u.]
18171742 Max gradient: 3.002884e-04 [a.u.]
18181743 Rms gradient: 1.551034e-04 [a.u.]
18191744
@@ -1823,14 +1748,14 @@ actual/expected energy change = 1.404018
18231748
18241749 ********** DONE: Geometry optimization **********
18251750 Summary for memory usage:
1826- Max Heap: 0.220496[MB].
1751+ Max Heap: 0.440928[MB].
18271752 Current Heap(Leaked): 0.000000[MB].
18281753
18291754
18301755 >>>>> The MolDS finished normally! <<<<<
1831- >>>>> CPU time: 12.76[s]. <<<<<
1832- >>>>> Elapsed time: 13[s]. <<<<<
1833- >>>>> Elapsed time(OMP): 12.916[s]. <<<<<
1756+ >>>>> CPU time: 5.2[s]. <<<<<
1757+ >>>>> Elapsed time: 1[s]. <<<<<
1758+ >>>>> Elapsed time(OMP): 1.15049[s]. <<<<<
18341759 >>>>> See you. <<<<<
18351760
18361761