Revisão | 61085940822cbfa8f97f9f7d14bfbbe12f714d9a (tree) |
---|---|
Hora | 2013-08-08 19:43:44 |
Autor | Katsuhiko Nishimra <ktns.87@gmai...> |
Commiter | Katsuhiko Nishimra |
Use Blas::Dcopy in BFGS::SearchMinimum. #31856
git-svn-id: https://svn.sourceforge.jp/svnroot/molds/trunk@1470 1136aad2-a195-0410-b898-f5ea1d11b9d8
@@ -141,9 +141,7 @@ void BFGS::SearchMinimum(boost::shared_ptr<ElectronicStructure> electronicStruct | ||
141 | 141 | |
142 | 142 | // Store old Force data |
143 | 143 | MallocerFreer::GetInstance()->Malloc(&vectorOldForce, dimension); |
144 | - for(int i =0;i < dimension; i++){ | |
145 | - vectorOldForce[i] = vectorForce[i]; | |
146 | - } | |
144 | + MolDS_wrappers::Blas::GetInstance()->Dcopy(dimension, vectorForce, vectorOldForce); | |
147 | 145 | |
148 | 146 | this->StoreMolecularGeometry(matrixOldCoordinates, molecule); |
149 | 147 |