• 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ãob58eeeaf003fc73cec5bb8143a4c8aacd91973ae (tree)
Hora2013-08-08 15:47:05
AutorMikiya Fujii <mikiya.fujii@gmai...>
CommiterMikiya Fujii

Mensagem de Log

Cndo2::CalcFockMatrix is more optimized with MPI. #31851

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

Mudança Sumário

Diff

--- a/src/cndo/Cndo2.cpp
+++ b/src/cndo/Cndo2.cpp
@@ -1448,7 +1448,7 @@ void Cndo2::CalcFockMatrix(double** fockMatrix,
14481448 if(mu%mpiSize == mpiHeadRank){continue;}
14491449 int source = mu%mpiSize;
14501450 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);
14521452 }
14531453 }
14541454 else{
@@ -1457,7 +1457,7 @@ void Cndo2::CalcFockMatrix(double** fockMatrix,
14571457 if(mu%mpiSize != mpiRank){continue;}
14581458 int dest = mpiHeadRank;
14591459 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);
14611461 }
14621462 }
14631463 // broadcast all matrix data to all rank