Skip to content

Commit 1f5dcbe

Browse files
author
wenfei-li
committed
deepks : attempt to fix search_radius error in 'unit' test
1 parent e2fc3ed commit 1f5dcbe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/module_deepks/test/LCAO_deepks_test_prep.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ void test_deepks::setup_cell()
128128

129129
void test_deepks::prep_neighbour()
130130
{
131-
GlobalV::SEARCH_RADIUS = atom_arrange::set_sr_NL(
131+
double search_radius = atom_arrange::set_sr_NL(
132132
GlobalV::ofs_running,
133133
GlobalV::OUT_LEVEL,
134134
ORB.get_rcutmax_Phi(),
@@ -140,7 +140,7 @@ void test_deepks::prep_neighbour()
140140
GlobalV::ofs_running,
141141
Test_Deepks::GridD,
142142
ucell,
143-
GlobalV::SEARCH_RADIUS,
143+
search_radius,
144144
GlobalV::test_atom_input);
145145
}
146146

0 commit comments

Comments
 (0)