@@ -331,28 +331,28 @@ TEST_F(TestPsi, band_first)
331331 EXPECT_EQ (std::get<0 >(psi_band_32->to_range (illegal_range1)), nullptr );
332332 EXPECT_EQ (std::get<1 >(psi_band_32->to_range (illegal_range2)), 0 );
333333
334- // pointer constructor
335- // band-first to k-first
336- psi::Psi<float > psi_band_32_k (psi_band_32->get_pointer (), psi_band_32->get_nk (), psi_band_32->get_nbands (), psi_band_32->get_nbasis (), psi_band_32->get_ngk_pointer (), true );
337- // k-first to band-first
338- psi::Psi<float > psi_band_32_b (psi_band_32_k.get_pointer (), psi_band_32_k.get_nk (), psi_band_32_k.get_nbands (), psi_band_32_k.get_nbasis (), psi_band_32_k.get_ngk_pointer (), false );
339- EXPECT_EQ (psi_band_32_k.get_nk (), ink);
340- EXPECT_EQ (psi_band_32_k.get_nbands (), inbands);
341- EXPECT_EQ (psi_band_32_k.get_nbasis (), inbasis);
342- EXPECT_EQ (psi_band_32_b.get_nk (), ink);
343- EXPECT_EQ (psi_band_32_b.get_nbands (), inbands);
344- EXPECT_EQ (psi_band_32_b.get_nbasis (), inbasis);
345- for (int ik = 0 ;ik < ink;++ik) {
346- for (int ib = 0 ;ib < inbands;++ib)
347- {
348- psi_band_32->fix_kb (ik, ib);
349- psi_band_32_k.fix_kb (ik, ib);
350- psi_band_32_b.fix_kb (ik, ib);
351- EXPECT_EQ (psi_band_32->get_psi_bias (), (ib * ink + ik) * inbasis);
352- EXPECT_EQ (psi_band_32_k.get_psi_bias (), (ik * inbands + ib) * inbasis);
353- EXPECT_EQ (psi_band_32_b.get_psi_bias (), (ib * ink + ik) * inbasis);
354- }
355- }
334+ // // pointer constructor
335+ // // band-first to k-first
336+ // psi::Psi<float> psi_band_32_k(psi_band_32->get_pointer(), psi_band_32->get_nk(), psi_band_32->get_nbands(), psi_band_32->get_nbasis(), psi_band_32->get_ngk_pointer(), true);
337+ // // k-first to band-first
338+ // psi::Psi<float> psi_band_32_b(psi_band_32_k.get_pointer(), psi_band_32_k.get_nk(), psi_band_32_k.get_nbands(), psi_band_32_k.get_nbasis(), psi_band_32_k.get_ngk_pointer(), false);
339+ // EXPECT_EQ(psi_band_32_k.get_nk(), ink);
340+ // EXPECT_EQ(psi_band_32_k.get_nbands(), inbands);
341+ // EXPECT_EQ(psi_band_32_k.get_nbasis(), inbasis);
342+ // EXPECT_EQ(psi_band_32_b.get_nk(), ink);
343+ // EXPECT_EQ(psi_band_32_b.get_nbands(), inbands);
344+ // EXPECT_EQ(psi_band_32_b.get_nbasis(), inbasis);
345+ // for (int ik = 0;ik < ink;++ik) {
346+ // for (int ib = 0;ib < inbands;++ib)
347+ // {
348+ // psi_band_32->fix_kb(ik, ib);
349+ // psi_band_32_k.fix_kb(ik, ib);
350+ // psi_band_32_b.fix_kb(ik, ib);
351+ // EXPECT_EQ(psi_band_32->get_psi_bias(), (ib * ink + ik) * inbasis);
352+ // EXPECT_EQ(psi_band_32_k.get_psi_bias(), (ik * inbands + ib) * inbasis);
353+ // EXPECT_EQ(psi_band_32_b.get_psi_bias(), (ib * ink + ik) * inbasis);
354+ // }
355+ // }
356356
357357 delete psi_band_c64;
358358 delete psi_band_64;
0 commit comments