Revisión | 63a3add06fecfa3492dd88c4357b0a1db46ba6ae (tree) |
---|---|
Tiempo | 2013-08-12 17:48:46 |
Autor | Katsuhiko Nishimra <ktns.87@gmai...> |
Commiter | Katsuhiko Nishimra |
Move OutputLog for Hill climbing. #31856
git-svn-id: https://svn.sourceforge.jp/svnroot/molds/trunk@1472 1136aad2-a195-0410-b898-f5ea1d11b9d8
@@ -191,6 +191,7 @@ void BFGS::SearchMinimum(boost::shared_ptr<ElectronicStructure> electronicStruct | ||
191 | 191 | } |
192 | 192 | |
193 | 193 | if(lineSearchCurrentEnergy > lineSearchInitialEnergy){ |
194 | + this->OutputLog(this->messageHillClimbing); | |
194 | 195 | this->RollbackMolecularGeometry(molecule, matrixOldCoordinates); |
195 | 196 | lineSearchCurrentEnergy = lineSearchInitialEnergy; |
196 | 197 | } |
@@ -543,7 +544,6 @@ void BFGS::RollbackMolecularGeometry(MolDS_base::Molecule& molecule, | ||
543 | 544 | bool tempCanOutputLogs = molecule.CanOutputLogs(); |
544 | 545 | bool rollbackCanOutputLogs = true; |
545 | 546 | molecule.SetCanOutputLogs(rollbackCanOutputLogs); |
546 | - this->OutputLog(this->messageHillClimbing); | |
547 | 547 | for(int i=0;i<molecule.GetNumberAtoms();i++){ |
548 | 548 | const Atom* atom = molecule.GetAtom(i); |
549 | 549 | double* xyz = atom->GetXyz(); |