Skip to content

Commit 3fe9aed

Browse files
committed
fix structure factor
1 parent 8029f27 commit 3fe9aed

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

source/source_pw/module_pwdft/test/structure_factor_test.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ TEST_F(StructureFactorTest, set)
7575
TEST_F(StructureFactorTest, setup_structure_factor_double)
7676
{
7777
rho_basis->npw = 10;
78-
SF.setup_structure_factor(ucell,*pgrid,rho_basis);
78+
SF.setup(ucell,*pgrid,rho_basis);
7979

8080
for (int i=0;i< ucell->nat * (2 * rho_basis->nx + 1);i++)
8181
{
@@ -100,7 +100,7 @@ TEST_F(StructureFactorTest, setup_structure_factor_float)
100100
{
101101
PARAM.sys.has_float_data = true;
102102
rho_basis->npw = 10;
103-
SF.setup_structure_factor(ucell,*pgrid,rho_basis);
103+
SF.setup(ucell,*pgrid,rho_basis);
104104

105105
for (int i=0;i< ucell->nat * (2 * rho_basis->nx + 1);i++)
106106
{
@@ -125,4 +125,4 @@ int main()
125125
{
126126
testing::InitGoogleTest();
127127
return RUN_ALL_TESTS();
128-
}
128+
}

0 commit comments

Comments
 (0)