Skip to content

Commit 64ce8d5

Browse files
authored
Merge pull request #501 from dyzheng/ABACUS_2.2.0_beta
< fix > sometimes multi core test will fail. Temporary solvation for that from Qianruipku
2 parents 90c994d + 0bf054b commit 64ce8d5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

source/src_pw/pw_basis.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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.

0 commit comments

Comments
 (0)