Révision | 21046823d8869b997086ba28919472a6d2d62eba (tree) |
---|---|
l'heure | 2011-07-15 14:34:43 |
Auteur | Mikiya Fujii <mikiya.fujii@gmai...> |
Commiter | Mikiya Fujii |
Elapsed time (omp) is output for calc. of CIS matrix.
git-svn-id: https://svn.sourceforge.jp/svnroot/molds/MolDS/trunk@113 1136aad2-a195-0410-b898-f5ea1d11b9d8
@@ -75,6 +75,9 @@ private: | ||
75 | 75 | string errorMessageDavidsonNotConverged; |
76 | 76 | string errorMessageDavidsonMaxIter; |
77 | 77 | string errorMessageDavidsonMaxDim; |
78 | + string messageStartCalcCISMatrix; | |
79 | + string messageConsumedCalcCISMatrix; | |
80 | + string messageDoneCalcCISMatrix; | |
78 | 81 | string messageStartCIS; |
79 | 82 | string messageDoneCIS; |
80 | 83 | string messageStartDirectCIS; |
@@ -134,6 +137,9 @@ void ZindoS::SetMessages(){ | ||
134 | 137 | this->messageDoneSCF = "********** DONE: ZINDO/S-SCF **********\n\n\n"; |
135 | 138 | this->messageStartCIS = "********** START: ZINDO/S-CIS **********\n"; |
136 | 139 | this->messageDoneCIS = "********** DONE: ZINDO/S-CIS **********\n\n\n"; |
140 | + this->messageConsumedCalcCISMatrix = "\tElapsed time(omp) of the calc. of the CIS matrix = "; | |
141 | + this->messageStartCalcCISMatrix = "----------- START: Calculation of the CIS matrix -----------\n"; | |
142 | + this->messageDoneCalcCISMatrix = "----------- DONE: Calculation of the CIS matrix -----------\n\n"; | |
137 | 143 | this->messageStartDirectCIS = "\t====== START: Direct-CIS =====\n\n"; |
138 | 144 | this->messageDoneDirectCIS = "\t====== DONE: Direct-CIS =====\n\n\n"; |
139 | 145 | this->messageStartDavidsonCIS = "\t====== START: Davidson-CIS =====\n"; |
@@ -1029,6 +1035,8 @@ void ZindoS::DoesCISDirect(){ | ||
1029 | 1035 | } |
1030 | 1036 | |
1031 | 1037 | void ZindoS::CalcCISMatrix(double** matrixCIS, int numberOcc, int numberVir){ |
1038 | + cout << this->messageStartCalcCISMatrix; | |
1039 | + double ompStartTime = omp_get_wtime(); | |
1032 | 1040 | |
1033 | 1041 | #pragma omp parallel for schedule(auto) |
1034 | 1042 | for(int k=0; k<numberOcc*numberVir; k++){ |
@@ -1062,6 +1070,9 @@ void ZindoS::CalcCISMatrix(double** matrixCIS, int numberOcc, int numberVir){ | ||
1062 | 1070 | matrixCIS[k][l] = value; |
1063 | 1071 | } |
1064 | 1072 | } |
1073 | + double ompEndTime = omp_get_wtime(); | |
1074 | + cout << this->messageConsumedCalcCISMatrix << ompEndTime - ompStartTime << "[s]." << endl; | |
1075 | + cout << this->messageDoneCalcCISMatrix; | |
1065 | 1076 | } |
1066 | 1077 | |
1067 | 1078 | } |