Revision | 4dc76eb8c30fb76f63c0c69a780a4a0792e31d7e (tree) |
---|---|
Time | 2012-07-07 22:47:04 |
Author | Katsuhiko Nishimra <ktns.87@gmai...> |
Commiter | Katsuhiko Nishimra |
Fix a bug on ConjugateGradient::SearchMinimum. #28775
git-svn-id: https://svn.sourceforge.jp/svnroot/molds/trunk@871 1136aad2-a195-0410-b898-f5ea1d11b9d8
@@ -99,7 +99,7 @@ void ConjugateGradient::SearchMinimum(boost::shared_ptr<ElectronicStructure> ele | ||
99 | 99 | lineSearchInitialEnergy = lineSearchCurrentEnergy; |
100 | 100 | |
101 | 101 | // do line search |
102 | - this->LineSearch(electronicStructure, molecule, lineSearchCurrentEnergy, matrixForce, elecState, dt); | |
102 | + this->LineSearch(electronicStructure, molecule, lineSearchCurrentEnergy, matrixSearchDirection, elecState, dt); | |
103 | 103 | |
104 | 104 | // update matrixSearchDirection |
105 | 105 | this->UpdateSearchDirection(&matrixForce, oldMatrixForce, matrixSearchDirection, electronicStructure, molecule, elecState); |