Révision | 818ce73c2dbee2a9d4abe90b95ef3851ad51457d (tree) |
---|---|
l'heure | 2014-02-20 09:22:22 |
Auteur | Mikiya Fujii <mikiya.fujii@gmai...> |
Commiter | Mikiya Fujii |
Mndo::CalcTwoElecsAtomEpcCores is omp-parallelized. #32469
git-svn-id: https://svn.sourceforge.jp/svnroot/molds/trunk@1662 1136aad2-a195-0410-b898-f5ea1d11b9d8
@@ -3691,7 +3691,7 @@ void Mndo::CalcTwoElecsAtomEpcCores(double****** twoElecsAtomEpcCores, | ||
3691 | 3691 | for(int a=0; a<totalNumberAtoms; a++){ |
3692 | 3692 | int calcRank = a%mpiSize; |
3693 | 3693 | if(mpiRank == calcRank){ |
3694 | -//#pragma omp parallel | |
3694 | +#pragma omp parallel | |
3695 | 3695 | { |
3696 | 3696 | double**** diatomicTwoElecsTwoCores = NULL; |
3697 | 3697 | double* tmpDiatomicTwoElecsTwoCores = NULL; |
@@ -3706,7 +3706,7 @@ void Mndo::CalcTwoElecsAtomEpcCores(double****** twoElecsAtomEpcCores, | ||
3706 | 3706 | MallocerFreer::GetInstance()->Malloc<double>(&tmpMatrixBC, dxy*dxy, dxy*dxy); |
3707 | 3707 | MallocerFreer::GetInstance()->Malloc<double>(&tmpVectorBC, dxy*dxy*dxy*dxy); |
3708 | 3708 | // note that terms with condition a==b are not needed to calculate. |
3709 | -//#pragma omp for schedule(dynamic, MOLDS_OMP_DYNAMIC_CHUNK_SIZE) | |
3709 | +#pragma omp for schedule(dynamic, MOLDS_OMP_DYNAMIC_CHUNK_SIZE) | |
3710 | 3710 | for(int b=0; b<totalNumberEpcs; b++){ |
3711 | 3711 | const Atom& epc = *molecule.GetEpcVect()[b]; |
3712 | 3712 | this->CalcDiatomicTwoElecsTwoCores(diatomicTwoElecsTwoCores, |