• 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

Revisão1909a6c0f20e2421af5baf0291286b170b319b73 (tree)
Hora2011-09-29 18:51:21
AutorMikiya Fujii <mikiya.fujii@gmai...>
CommiterMikiya Fujii

Mensagem de Log

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

Mudança Sumário

Diff

--- 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;