Skip to content

Commit 6dd0e6d

Browse files
committed
fix a not declare bug
1 parent 6353cf4 commit 6dd0e6d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/source_lcao/module_gint/temp_gint/gint_common.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ void transfer_dm_2d_to_gint(
235235
pv->set_atomic_trace(iat2iwt.data(), ucell->nat, mg);
236236
HContainer<T>* dm2d_tmp = new hamilt::HContainer<T>(pv, nullptr, &ijr_info);
237237
#else
238-
dm2d_tmp = new hamilt::HContainer<double>(ucell->nat);
238+
auto* dm2d_tmp = new hamilt::HContainer<double>(ucell->nat);
239239
dm2d_tmp -> insert_ijrs(gint_info.get_ijr_info(), *ucell);
240240
dm2d_tmp -> allocate(nullptr, true);
241241
#endif

0 commit comments

Comments
 (0)