リビジョン | 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
@@ -360,6 +360,13 @@ void Cndo2::DoesSCF(bool requiresGuess){ | ||
360 | 360 | double** oldOrbitalElectronPopulation = MallocerFreer::GetInstance()->MallocDoubleMatrix2d |
361 | 361 | (this->molecule->GetTotalNumberAOs(), this->molecule->GetTotalNumberAOs()); |
362 | 362 | |
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 | + | |
363 | 370 | // malloc temporary matrices for diis |
364 | 371 | double*** diisStoredDensityMatrix = NULL; |
365 | 372 | double*** diisStoredErrorVect = NULL; |