Skip to content

Commit f5c1fc1

Browse files
committed
fix error
1 parent 16cb172 commit f5c1fc1

File tree

10 files changed

+22
-7
lines changed

10 files changed

+22
-7
lines changed

source/module_base/test/math_chebyshev_test.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -625,6 +625,8 @@ TEST_F(MathChebyshevTest, tracepolyA_float)
625625

626626
TEST_F(MathChebyshevTest, checkconverge_float)
627627
{
628+
#ifdef __MPI
629+
#undef __MPI
628630
const int norder = 100;
629631
p_fchetest = new ModuleBase::Chebyshev<float>(norder);
630632

@@ -648,5 +650,7 @@ TEST_F(MathChebyshevTest, checkconverge_float)
648650

649651
delete[] v;
650652
delete p_fchetest;
653+
#define __MPI
654+
#endif
651655
}
652656
#endif

source/module_basis/module_pw/test/pw_test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ int main(int argc, char **argv)
4040
int kpar;
4141
kpar = 1;
4242
#ifdef __ENABLE_FLOAT_FFTW
43-
precision_flag = "single";
43+
precision_flag = "mixing";
4444
#else
4545
precision_flag = "double";
4646
#endif

tests/integrate/102_PW_CG/README

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ This test for:
44
*old upf pseudopotential
55
*smearing_method default
66
*ks_solver cg
7-
*precison float
7+
*precison double
88
!!!!!!!WRONG!!!!!!!
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
etotref -4869.7470519303351466
22
etotperatomref -2434.8735259652
33
totalforceref 5.195370
4-
totalstressref 37242.031490
4+
totalstressref 37240.09221900
55
pointgroupref C_1
66
spacegroupref C_1
77
nksibzref 8
8-
totaltimeref 4.13
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Float type has different eneygy with the double type
2+
# this intergate is to test the function of
3+
# the float type of the pw basis
4+
threshold 0.00001
5+
fatal_threshold 1

tests/integrate/102_PW_DA_davidson_GPU_float/result.ref

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,3 @@ totalstressref 37241.467259
55
pointgroupref C_1
66
spacegroupref C_1
77
nksibzref 8
8-
totaltimeref 4.79

tests/integrate/102_PW_DA_davidson_float/result.ref

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,3 @@ etotperatomref -99.1119148104
33
pointgroupref T_d
44
spacegroupref O_h
55
nksibzref 1
6-
totaltimeref
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Float type has different eneygy with the double type
2+
# this intergate is to test the function of
3+
# the float type of the pw basis
4+
threshold 0.00001
5+
fatal_threshold 1

tests/integrate/102_PW_DS_davsubspace_float/result.ref

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,3 @@ etotperatomref -99.1119148104
33
pointgroupref T_d
44
spacegroupref O_h
55
nksibzref 1
6-
totaltimeref
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Float type has different eneygy with the double type
2+
# this intergate is to test the function of
3+
# the float type of the pw basis
4+
threshold 0.00001
5+
fatal_threshold 1

0 commit comments

Comments
 (0)