File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -887,7 +887,7 @@ void PW_Basis::columns_and_pw_distribution_2(void)
887887 // ------------------------------------------------------
888888 if (npw2 < npw1)
889889 {
890- if (non_zero_grid + nz < ngrid) // qianrui fix a bug 2021-5-20 to make sure non_zero_grid < ngrid after distributing pw
890+ if (non_zero_grid + nz <= ngrid) // qianrui fix a bug 2021-5-20 to make sure non_zero_grid < ngrid after distributing pw
891891 {
892892 // ip1 save the process number which has smallest number of plane wave
893893 // in this pool.
@@ -904,7 +904,7 @@ void PW_Basis::columns_and_pw_distribution_2(void)
904904 {
905905 if (nst2 < nst1)
906906 {
907- if (non_zero_grid + nz < ngrid) // qianrui add nz
907+ if (non_zero_grid + nz <= ngrid) // qianrui add nz
908908 {
909909 ip1=ip2;
910910 }
@@ -935,7 +935,7 @@ void PW_Basis::columns_and_pw_distribution_2(void)
935935 if (npw2 < pw_tmp)
936936 {
937937 pw_tmp = npw2;
938- if (non_zero_grid + nz < ngrid) // qianrui add nz
938+ if (non_zero_grid + nz <= ngrid) // qianrui add nz
939939 {
940940 // ip1 is the index of processor which
941941 // has smallest number of plane wave.
You can’t perform that action at this time.
0 commit comments