Skip to content

Commit e0fcc85

Browse files
committed
change func name
1 parent 6da1f14 commit e0fcc85

File tree

4 files changed

+26
-26
lines changed

4 files changed

+26
-26
lines changed

source/source_basis/module_pw/test/test-other.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,26 +76,26 @@ TEST_F(PWTEST,test_other)
7676
}
7777
#endif
7878

79-
pwktest.recip_to_real(ctx, rhog1, rhor1, ik);
79+
pwktest.recip2real_impl(ctx, rhog1, rhor1, ik);
8080
pwktest.recip2real(rhog2, rhor2, ik);
8181
for(int ir = 0 ; ir < nrxx; ++ir)
8282
{
8383
EXPECT_NEAR(std::abs(rhor1[ir]),std::abs(rhor2[ir]),1e-8);
8484
}
85-
pwktest.real_to_recip(ctx, rhor1, rhog1, ik);
85+
pwktest.real2recip_impl(ctx, rhor1, rhog1, ik);
8686
pwktest.real2recip(rhor2, rhog2, ik);
8787
for(int ig = 0 ; ig < npwk; ++ig)
8888
{
8989
EXPECT_NEAR(std::abs(rhog1[ig]),std::abs(rhog2[ig]),1e-8);
9090
}
9191
#ifdef __ENABLE_FLOAT_FFTW
92-
pwktest.recip_to_real(ctx, rhofg1, rhofr1, ik);
92+
pwktest.recip2real_impl(ctx, rhofg1, rhofr1, ik);
9393
pwktest.recip2real(rhofg2, rhofr2, ik);
9494
for(int ir = 0 ; ir < nrxx; ++ir)
9595
{
9696
EXPECT_NEAR(std::abs(rhofr1[ir]),std::abs(rhofr2[ir]),1e-6);
9797
}
98-
pwktest.real_to_recip(ctx, rhofr1, rhofg1, ik);
98+
pwktest.real2recip_impl(ctx, rhofr1, rhofg1, ik);
9999
pwktest.real2recip(rhofr2, rhofg2, ik);
100100
for(int ig = 0 ; ig < npwk; ++ig)
101101
{

source/source_hamilt/module_xc/test/xc3_mock.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ namespace ModulePW
7878

7979

8080
template <typename FPTYPE, typename Device>
81-
void PW_Basis_K::real_to_recip(const Device* ctx,
81+
void PW_Basis_K::real2recip_impl(const Device* ctx,
8282
const std::complex<FPTYPE>* in,
8383
std::complex<FPTYPE>* out,
8484
const int ik,
@@ -91,7 +91,7 @@ namespace ModulePW
9191
}
9292
}
9393
template <typename FPTYPE, typename Device>
94-
void PW_Basis_K::recip_to_real(const Device* ctx,
94+
void PW_Basis_K::recip2real_impl(const Device* ctx,
9595
const std::complex<FPTYPE>* in,
9696
std::complex<FPTYPE>* out,
9797
const int ik,
@@ -104,27 +104,27 @@ namespace ModulePW
104104
}
105105
}
106106

107-
template void PW_Basis_K::real_to_recip<double, base_device::DEVICE_CPU>(const base_device::DEVICE_CPU* ctx,
107+
template void PW_Basis_K::real2recip_impl<double, base_device::DEVICE_CPU>(const base_device::DEVICE_CPU* ctx,
108108
const std::complex<double>* in,
109109
std::complex<double>* out,
110110
const int ik,
111111
const bool add,
112112
const double factor) const;
113-
template void PW_Basis_K::recip_to_real<double, base_device::DEVICE_CPU>(const base_device::DEVICE_CPU* ctx,
113+
template void PW_Basis_K::recip2real_impl<double, base_device::DEVICE_CPU>(const base_device::DEVICE_CPU* ctx,
114114
const std::complex<double>* in,
115115
std::complex<double>* out,
116116
const int ik,
117117
const bool add,
118118
const double factor) const;
119119
#if __CUDA || __ROCM
120-
template void PW_Basis_K::real_to_recip<double, base_device::DEVICE_GPU>(const base_device::DEVICE_GPU* ctx,
120+
template void PW_Basis_K::real2recip_impl<double, base_device::DEVICE_GPU>(const base_device::DEVICE_GPU* ctx,
121121
const std::complex<double>* in,
122122
std::complex<double>* out,
123123
const int ik,
124124
const bool add,
125125
const double factor) const;
126126

127-
template void PW_Basis_K::recip_to_real<double, base_device::DEVICE_GPU>(const base_device::DEVICE_GPU* ctx,
127+
template void PW_Basis_K::recip2real_impl<double, base_device::DEVICE_GPU>(const base_device::DEVICE_GPU* ctx,
128128
const std::complex<double>* in,
129129
std::complex<double>* out,
130130
const int ik,

source/source_hsolver/test/test_hsolver_pw.cpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717

1818
// Mock implementations for the template functions causing linking errors
1919
namespace ModulePW {
20-
// Mock implementation for recip_to_real
20+
// Mock implementation for recip2real_impl
2121
template<typename FPTYPE, typename Device>
22-
void PW_Basis_K::recip_to_real(const Device* ctx,
22+
void PW_Basis_K::recip2real_impl(const Device* ctx,
2323
const std::complex<FPTYPE>* in,
2424
std::complex<FPTYPE>* out,
2525
const int ik,
@@ -30,9 +30,9 @@ namespace ModulePW {
3030
// In a real test, you might want to implement behavior that simulates the actual function
3131
}
3232

33-
// Mock implementation for real_to_recip
33+
// Mock implementation for real2recip_impl
3434
template<typename FPTYPE, typename Device>
35-
void PW_Basis_K::real_to_recip(const Device* ctx,
35+
void PW_Basis_K::real2recip_impl(const Device* ctx,
3636
const std::complex<FPTYPE>* in,
3737
std::complex<FPTYPE>* out,
3838
const int ik,
@@ -43,31 +43,31 @@ namespace ModulePW {
4343
}
4444

4545
// Explicit template instantiations
46-
template void PW_Basis_K::recip_to_real<float, base_device::DEVICE_CPU>(
46+
template void PW_Basis_K::recip2real_impl<float, base_device::DEVICE_CPU>(
4747
const base_device::DEVICE_CPU* ctx,
4848
const std::complex<float>* in,
4949
std::complex<float>* out,
5050
const int ik,
5151
const bool add,
5252
const float factor) const;
5353

54-
template void PW_Basis_K::recip_to_real<double, base_device::DEVICE_CPU>(
54+
template void PW_Basis_K::recip2real_impl<double, base_device::DEVICE_CPU>(
5555
const base_device::DEVICE_CPU* ctx,
5656
const std::complex<double>* in,
5757
std::complex<double>* out,
5858
const int ik,
5959
const bool add,
6060
const double factor) const;
6161

62-
template void PW_Basis_K::real_to_recip<float, base_device::DEVICE_CPU>(
62+
template void PW_Basis_K::real2recip_impl<float, base_device::DEVICE_CPU>(
6363
const base_device::DEVICE_CPU* ctx,
6464
const std::complex<float>* in,
6565
std::complex<float>* out,
6666
const int ik,
6767
const bool add,
6868
const float factor) const;
6969

70-
template void PW_Basis_K::real_to_recip<double, base_device::DEVICE_CPU>(
70+
template void PW_Basis_K::real2recip_impl<double, base_device::DEVICE_CPU>(
7171
const base_device::DEVICE_CPU* ctx,
7272
const std::complex<double>* in,
7373
std::complex<double>* out,

source/source_hsolver/test/test_hsolver_sdft.cpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -188,9 +188,9 @@ Charge::~Charge(){};
188188

189189
// Mock implementations for the template functions causing linking errors
190190
namespace ModulePW {
191-
// Mock implementation for recip_to_real
191+
// Mock implementation for recip2real_impl
192192
template<typename FPTYPE, typename Device>
193-
void PW_Basis_K::recip_to_real(const Device* ctx,
193+
void PW_Basis_K::recip2real_impl(const Device* ctx,
194194
const std::complex<FPTYPE>* in,
195195
std::complex<FPTYPE>* out,
196196
const int ik,
@@ -201,9 +201,9 @@ namespace ModulePW {
201201
// In a real test, you might want to implement behavior that simulates the actual function
202202
}
203203

204-
// Mock implementation for real_to_recip
204+
// Mock implementation for real2recip_impl
205205
template<typename FPTYPE, typename Device>
206-
void PW_Basis_K::real_to_recip(const Device* ctx,
206+
void PW_Basis_K::real2recip_impl(const Device* ctx,
207207
const std::complex<FPTYPE>* in,
208208
std::complex<FPTYPE>* out,
209209
const int ik,
@@ -214,31 +214,31 @@ namespace ModulePW {
214214
}
215215

216216
// Explicit template instantiations
217-
template void PW_Basis_K::recip_to_real<float, base_device::DEVICE_CPU>(
217+
template void PW_Basis_K::recip2real_impl<float, base_device::DEVICE_CPU>(
218218
const base_device::DEVICE_CPU* ctx,
219219
const std::complex<float>* in,
220220
std::complex<float>* out,
221221
const int ik,
222222
const bool add,
223223
const float factor) const;
224224

225-
template void PW_Basis_K::recip_to_real<double, base_device::DEVICE_CPU>(
225+
template void PW_Basis_K::recip2real_impl<double, base_device::DEVICE_CPU>(
226226
const base_device::DEVICE_CPU* ctx,
227227
const std::complex<double>* in,
228228
std::complex<double>* out,
229229
const int ik,
230230
const bool add,
231231
const double factor) const;
232232

233-
template void PW_Basis_K::real_to_recip<float, base_device::DEVICE_CPU>(
233+
template void PW_Basis_K::real2recip_impl<float, base_device::DEVICE_CPU>(
234234
const base_device::DEVICE_CPU* ctx,
235235
const std::complex<float>* in,
236236
std::complex<float>* out,
237237
const int ik,
238238
const bool add,
239239
const float factor) const;
240240

241-
template void PW_Basis_K::real_to_recip<double, base_device::DEVICE_CPU>(
241+
template void PW_Basis_K::real2recip_impl<double, base_device::DEVICE_CPU>(
242242
const base_device::DEVICE_CPU* ctx,
243243
const std::complex<double>* in,
244244
std::complex<double>* out,

0 commit comments

Comments
 (0)