Revision | b1954b38788fc09db272f2513b60c53d3952ad17 (tree) |
---|---|
Time | 2013-09-01 22:55:26 |
Author | Mikiya Fujii <mikiya.fujii@gmai...> |
Commiter | Mikiya Fujii |
CNDO2 is refactored. #31814
git-svn-id: https://svn.sourceforge.jp/svnroot/molds/trunk@1516 1136aad2-a195-0410-b898-f5ea1d11b9d8
@@ -1377,7 +1377,7 @@ void Cndo2::CalcFockMatrix(double** fockMatrix, | ||
1377 | 1377 | mPassingTimes) ); |
1378 | 1378 | |
1379 | 1379 | MallocerFreer::GetInstance()->Initialize<double>(fockMatrix, totalNumberAOs, totalNumberAOs); |
1380 | - for(int A=0; A<totalNumberAtoms; A++){ | |
1380 | + for(int A=totalNumberAtoms-1; 0<=A; A--){ | |
1381 | 1381 | const Atom& atomA = *molecule.GetAtom(A); |
1382 | 1382 | int firstAOIndexA = atomA.GetFirstAOIndex(); |
1383 | 1383 | int lastAOIndexA = atomA.GetLastAOIndex(); |
@@ -3918,7 +3918,7 @@ void Cndo2::CalcOverlapAOs(double** overlapAOs, const Molecule& molecule) const{ | ||
3918 | 3918 | totalAONumber); |
3919 | 3919 | |
3920 | 3920 | // This loop A is parallelized with MPI |
3921 | - for(int A=0; A<totalAtomNumber; A++){ | |
3921 | + for(int A=totalAtomNumber-1; 0<=A; A--){ | |
3922 | 3922 | const Atom& atomA = *molecule.GetAtom(A); |
3923 | 3923 | int firstAOIndexA = atomA.GetFirstAOIndex(); |
3924 | 3924 | int numValenceAOs = atomA.GetValenceSize(); |