Revisão | b58eeeaf003fc73cec5bb8143a4c8aacd91973ae (tree) |
---|---|
Hora | 2013-08-08 15:47:05 |
Autor | Mikiya Fujii <mikiya.fujii@gmai...> |
Commiter | Mikiya Fujii |
Cndo2::CalcFockMatrix is more optimized with MPI. #31851
git-svn-id: https://svn.sourceforge.jp/svnroot/molds/trunk@1463 1136aad2-a195-0410-b898-f5ea1d11b9d8
@@ -1448,7 +1448,7 @@ void Cndo2::CalcFockMatrix(double** fockMatrix, | ||
1448 | 1448 | if(mu%mpiSize == mpiHeadRank){continue;} |
1449 | 1449 | int source = mu%mpiSize; |
1450 | 1450 | int tag = mu; |
1451 | - MolDS_mpi::MpiProcess::GetInstance()->Recv(source, tag, fockMatrix[mu], totalNumberAOs); | |
1451 | + MolDS_mpi::MpiProcess::GetInstance()->Recv(source, tag, &fockMatrix[mu][mu], totalNumberAOs-mu); | |
1452 | 1452 | } |
1453 | 1453 | } |
1454 | 1454 | else{ |
@@ -1457,7 +1457,7 @@ void Cndo2::CalcFockMatrix(double** fockMatrix, | ||
1457 | 1457 | if(mu%mpiSize != mpiRank){continue;} |
1458 | 1458 | int dest = mpiHeadRank; |
1459 | 1459 | int tag = mu; |
1460 | - MolDS_mpi::MpiProcess::GetInstance()->Send(dest, tag, fockMatrix[mu], totalNumberAOs); | |
1460 | + MolDS_mpi::MpiProcess::GetInstance()->Send(dest, tag, &fockMatrix[mu][mu], totalNumberAOs-mu); | |
1461 | 1461 | } |
1462 | 1462 | } |
1463 | 1463 | // broadcast all matrix data to all rank |