• R/O
  • HTTP
  • SSH
  • HTTPS

コミット

タグ
未設定

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

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

コミットメタ情報

リビジョン1909a6c0f20e2421af5baf0291286b170b319b73 (tree)
日時2011-09-29 18:51:21
作者Mikiya Fujii <mikiya.fujii@gmai...>
コミッターMikiya Fujii

ログメッセージ

Initial values of oldOrbitalElectronPopulation in Cndo2::DoesSCF are set for repeating Cndo2::DoesSCF such as MD.

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

変更サマリ

差分

--- a/src/cndo/Cndo2.h
+++ b/src/cndo/Cndo2.h
@@ -360,6 +360,13 @@ void Cndo2::DoesSCF(bool requiresGuess){
360360 double** oldOrbitalElectronPopulation = MallocerFreer::GetInstance()->MallocDoubleMatrix2d
361361 (this->molecule->GetTotalNumberAOs(), this->molecule->GetTotalNumberAOs());
362362
363+ // Following copy is necessary for repeating SCF-procedure for such as MD and MC!
364+ for(int i=0; i<this->molecule->GetTotalNumberAOs(); i++){
365+ for(int j=0; j<this->molecule->GetTotalNumberAOs(); j++){
366+ oldOrbitalElectronPopulation[i][j] = this->orbitalElectronPopulation[i][j];
367+ }
368+ }
369+
363370 // malloc temporary matrices for diis
364371 double*** diisStoredDensityMatrix = NULL;
365372 double*** diisStoredErrorVect = NULL;