• 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

Revisionf9c28e61c3feb5f9f5e1840859650dd9b8bb4af0 (tree)
Time2012-11-27 17:17:34
AuthorKatsuhiko Nishimra <ktns.87@gmai...>
CommiterKatsuhiko Nishimra

Log Message

Use std::numeric_limits::infinity instead of 1.0/0.0. #28915

git-svn-id: https://svn.sourceforge.jp/svnroot/molds/branches/gdiis@1142 1136aad2-a195-0410-b898-f5ea1d11b9d8

Change Summary

Incremental Difference

--- a/src/optimization/BFGS.cpp
+++ b/src/optimization/BFGS.cpp
@@ -168,7 +168,7 @@ void BFGS::SearchMinimum(boost::shared_ptr<ElectronicStructure> electronicStruct
168168 //Calculate reference RFO step
169169 MallocerFreer::GetInstance()->Malloc(&matrixStep, molecule.GetNumberAtoms(), CartesianType_end);
170170 vectorStep = &matrixStep[0][0];
171- static const double inifinity = 1.0/0.0;
171+ static const double inifinity = std::numeric_limits<double>::infinity();
172172 this->CalcRFOStep(vectorStep, matrixHessian, vectorForce, trustRadius, dimension);
173173
174174 // Store reference energy for calculating actual/expected ratio