Skip to content

Commit 29c44c6

Browse files
committed
fix compile bug in deepks test
1 parent b811a7e commit 29c44c6

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

source/module_hamilt_lcao/module_deepks/test/LCAO_deepks_test_prep.cpp

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ void test_deepks::set_orbs()
171171
ORB.init(GlobalV::ofs_running,
172172
ucell.ntype,
173173
PARAM.inp.orbital_dir,
174-
ucell.orbital_fn,
174+
ucell.orbital_fn.data(),
175175
ucell.descriptor_file,
176176
ucell.lmax,
177177
lcao_ecut,
@@ -185,11 +185,7 @@ void test_deepks::set_orbs()
185185

186186
ucell.infoNL.setupNonlocal(ucell.ntype, ucell.atoms, GlobalV::ofs_running, ORB);
187187

188-
std::vector<std::string> file_orb(ntype);
189-
std::transform(ucell.orbital_fn, ucell.orbital_fn + ntype, file_orb.begin(), [](const std::string& file) {
190-
return PARAM.inp.orbital_dir + file;
191-
});
192-
orb_.build(ntype, file_orb.data());
188+
orb_.build(ntype, ucell.orbital_fn.data());
193189

194190
std::string file_alpha = PARAM.inp.orbital_dir + ucell.descriptor_file;
195191
alpha_.build(1, &file_alpha);

0 commit comments

Comments
 (0)