• R/O
  • HTTP
  • SSH
  • HTTPS

コミット

タグ
未設定

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

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

コミットメタ情報

リビジョンb3cb13030cd4177920ca9a30ddc185a61de1b866 (tree)
日時2011-09-29 17:45:16
作者Mikiya Fujii <mikiya.fujii@gmai...>
コミッターMikiya Fujii

ログメッセージ

Cndo2::DoesSCF() is overloaded with Cndo2::DoesSCF(bool requiresGuess).

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

変更サマリ

差分

--- a/src/cndo/Cndo2.h
+++ b/src/cndo/Cndo2.h
@@ -29,6 +29,7 @@ public:
2929 ~Cndo2();
3030 void SetMolecule(Molecule* molecule);
3131 void DoesSCF();
32+ void DoesSCF(bool requiresGuess);
3233 protected:
3334 string errorMessageAtomA;
3435 string errorMessageAtomB;
@@ -336,7 +337,7 @@ void Cndo2::CheckEnableAtomType(Molecule* molecule){
336337 * before this function is called.
337338 *
338339 *****/
339-void Cndo2::DoesSCF(){
340+void Cndo2::DoesSCF(bool requiresGuess){
340341
341342 cout << this->messageStartSCF;
342343
@@ -379,7 +380,7 @@ void Cndo2::DoesSCF(){
379380 bool isGuess=true;
380381 for(int i=0; i<maxIterationsSCF; i++){
381382
382- i==0 ? isGuess = true : isGuess = false;
383+ (i==0 && requiresGuess) ? isGuess = true : isGuess = false;
383384 this->CalcFockMatrix(this->fockMatrix,
384385 this->molecule,
385386 this->overlap,
@@ -469,6 +470,11 @@ void Cndo2::DoesSCF(){
469470
470471 }
471472
473+void Cndo2::DoesSCF(){
474+ bool requiresGuess = true;
475+ this->DoesSCF(requiresGuess);
476+}
477+
472478 void Cndo2::FreeSCFTemporaryMatrices(double*** oldOrbitalElectronPopulation,
473479 double**** diisStoredDensityMatrix,
474480 double**** diisStoredErrorVect,