@@ -156,8 +156,8 @@ TEST_F(PWTEST,test1_4)
156156 {
157157 EXPECT_NEAR (tmp[ixy * nz + startiz + iz].real (),rhor[ixy*nplane+iz].real (),1e-6 );
158158 EXPECT_NEAR (tmp[ixy * nz + startiz + iz].imag (),rhor[ixy*nplane+iz].imag (),1e-6 );
159- // EXPECT_NEAR(tmp[ixy * nz + startiz + iz].real(),rhogr[ixy*nplane+iz].real(),1e-6);
160- // EXPECT_NEAR(tmp[ixy * nz + startiz + iz].imag(),rhogr[ixy*nplane+iz].imag(),1e-6);
159+ EXPECT_NEAR (tmp[ixy * nz + startiz + iz].real (),rhogr[ixy*nplane+iz].real (),1e-6 );
160+ EXPECT_NEAR (tmp[ixy * nz + startiz + iz].imag (),rhogr[ixy*nplane+iz].imag (),1e-6 );
161161#ifdef __ENABLE_FLOAT_FFTW
162162 EXPECT_NEAR (tmp[ixy * nz + startiz + iz].real (),rhofr[ixy*nplane+iz].real (),1e-4 );
163163 EXPECT_NEAR (tmp[ixy * nz + startiz + iz].imag (),rhofr[ixy*nplane+iz].imag (),1e-4 );
@@ -178,10 +178,10 @@ TEST_F(PWTEST,test1_4)
178178
179179 for (int ig = 0 ; ig < npwk ; ++ig)
180180 {
181- // EXPECT_NEAR(rhog[ig].real(),rhogout[ig].real(),1e-6);
182- // EXPECT_NEAR(rhog[ig].imag(),rhogout[ig].imag(),1e-6);
183- // EXPECT_NEAR(rhog[ig].real(),rhogr[ig].real(),1e-6);
184- // EXPECT_NEAR(rhog[ig].imag(),rhogr[ig].imag(),1e-6);
181+ EXPECT_NEAR (rhog[ig].real (),rhogout[ig].real (),1e-6 );
182+ EXPECT_NEAR (rhog[ig].imag (),rhogout[ig].imag (),1e-6 );
183+ EXPECT_NEAR (rhog[ig].real (),rhogr[ig].real (),1e-6 );
184+ EXPECT_NEAR (rhog[ig].imag (),rhogr[ig].imag (),1e-6 );
185185#ifdef __ENABLE_FLOAT_FFTW
186186 EXPECT_NEAR (rhofg[ig].real (),rhofgout[ig].real (),1e-4 );
187187 EXPECT_NEAR (rhofg[ig].imag (),rhofgout[ig].imag (),1e-4 );
0 commit comments