• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Keine Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

Revision818ce73c2dbee2a9d4abe90b95ef3851ad51457d (tree)
Zeit2014-02-20 09:22:22
AutorMikiya Fujii <mikiya.fujii@gmai...>
CommiterMikiya Fujii

Log Message

Mndo::CalcTwoElecsAtomEpcCores is omp-parallelized. #32469

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

Ändern Zusammenfassung

Diff

--- a/src/mndo/Mndo.cpp
+++ b/src/mndo/Mndo.cpp
@@ -3691,7 +3691,7 @@ void Mndo::CalcTwoElecsAtomEpcCores(double****** twoElecsAtomEpcCores,
36913691 for(int a=0; a<totalNumberAtoms; a++){
36923692 int calcRank = a%mpiSize;
36933693 if(mpiRank == calcRank){
3694-//#pragma omp parallel
3694+#pragma omp parallel
36953695 {
36963696 double**** diatomicTwoElecsTwoCores = NULL;
36973697 double* tmpDiatomicTwoElecsTwoCores = NULL;
@@ -3706,7 +3706,7 @@ void Mndo::CalcTwoElecsAtomEpcCores(double****** twoElecsAtomEpcCores,
37063706 MallocerFreer::GetInstance()->Malloc<double>(&tmpMatrixBC, dxy*dxy, dxy*dxy);
37073707 MallocerFreer::GetInstance()->Malloc<double>(&tmpVectorBC, dxy*dxy*dxy*dxy);
37083708 // 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)
37103710 for(int b=0; b<totalNumberEpcs; b++){
37113711 const Atom& epc = *molecule.GetEpcVect()[b];
37123712 this->CalcDiatomicTwoElecsTwoCores(diatomicTwoElecsTwoCores,